0%

Nektar++求解物理方程一般框架

Create session reader

1
2
LibUtilities::SessionReaderSharedPtr session;
session = LibUtilities::SessionReader::CreateInstance(argc, argv);

Create MeshGraph

1
graph = SpatialDomains::MeshGraph::Read(session);

Create driver

1
2
session->LoadSolverInfo("Driver",vDriverModule, "Standard");
drv = GetDriverFactory().CreateInstance(vDriverModule,session,graph);

Execute driver

1
drv->Execute();

Finalise session

1
session->Finalise();