53#include <boost/format.hpp>
79 "Projection",
"Mixed_CG_Discontinuous",
113 : m_comm(pSession->GetComm()), m_session(pSession), m_graph(pGraph),
114 m_lambda(0), m_infosteps(10),
118 const vector<std::string> filenames =
m_session->GetFilenames();
120 for (
int i = 0; i < filenames.size(); ++i)
122 string sessionname =
"SessionName";
123 sessionname += std::to_string(i);
170 if (
m_session->DefinesSolverInfo(
"HOMOGENEOUS"))
172 std::string HomoStr =
m_session->GetSolverInfo(
"HOMOGENEOUS");
175 if ((HomoStr ==
"HOMOGENEOUS1D") || (HomoStr ==
"Homogeneous1D") ||
176 (HomoStr ==
"1D") || (HomoStr ==
"Homo1D"))
182 if (
m_session->DefinesSolverInfo(
"ModeType"))
184 m_session->MatchSolverInfo(
"ModeType",
"SingleMode",
188 m_session->MatchSolverInfo(
"ModeType",
"MultipleModes",
193 if (
m_session->DefinesSolverInfo(
"ModeType"))
209 ASSERTL0(
false,
"SolverInfo ModeType not valid");
218 if ((HomoStr ==
"HOMOGENEOUS2D") || (HomoStr ==
"Homogeneous2D") ||
219 (HomoStr ==
"2D") || (HomoStr ==
"Homo2D"))
229 if ((HomoStr ==
"HOMOGENEOUS3D") || (HomoStr ==
"Homogeneous3D") ||
230 (HomoStr ==
"3D") || (HomoStr ==
"Homo3D"))
252 m_session->MatchSolverInfo(
"SPECTRALHPDEALIASING",
"True",
256 m_session->MatchSolverInfo(
"SPECTRALHPDEALIASING",
"On",
262 if (
m_session->DefinesSolverInfo(
"PROJECTION"))
264 std::string ProjectStr =
m_session->GetSolverInfo(
"PROJECTION");
266 if ((ProjectStr ==
"Continuous") || (ProjectStr ==
"Galerkin") ||
267 (ProjectStr ==
"CONTINUOUS") || (ProjectStr ==
"GALERKIN"))
271 else if ((ProjectStr ==
"MixedCGDG") ||
272 (ProjectStr ==
"Mixed_CG_Discontinuous"))
276 else if (ProjectStr ==
"DisContinuous")
282 ASSERTL0(
false,
"PROJECTION value not recognised");
287 cerr <<
"Projection type not specified in SOLVERINFO,"
288 "defaulting to continuous Galerkin"
297 int nvariables =
m_session->GetVariables().size();
298 bool DeclareCoeffPhysArrays =
true;
326 for (i = 0; i <
m_fields.size(); i++)
330 AllocateSharedPtr(
m_session, BkeyY, BkeyZ,
338 for (i = 0; i <
m_fields.size(); i++)
364 for (i = 0; i <
m_fields.size(); i++)
390 for (i = 0; i <
m_fields.size(); i++)
392 if (
m_session->GetVariable(i).compare(
"w") == 0)
396 ContField3DHomogeneous1D>::
407 ContField3DHomogeneous1D>::
424 for (i = 0; i <
m_fields.size(); i++)
443 DeclareCoeffPhysArrays,
446 for (i = 1; i <
m_fields.size(); i++)
448 if (
m_graph->SameExpansionInfo(
457 DeclareCoeffPhysArrays,
467 DeclareCoeffPhysArrays,
498 DeclareCoeffPhysArrays,
502 for (i = 1; i <
m_fields.size(); i++)
504 if (
m_graph->SameExpansionInfo(
513 DeclareCoeffPhysArrays,
523 DeclareCoeffPhysArrays,
542 for (i = 1; i <
m_fields.size(); ++i)
550 ASSERTL0(
false,
"Expansion dimension not recognised");
573 for (i = 0; i <
m_fields.size(); i++)
577 AllocateSharedPtr(
m_session, BkeyY, BkeyZ,
585 for (i = 0; i <
m_fields.size(); i++)
606 for (i = 0; i <
m_fields.size(); i++)
624 for (i = 1; i <
m_fields.size(); i++)
626 if (
m_graph->SameExpansionInfo(
655 "3D fully periodic problems not implemented yet");
665 for (i = 1; i <
m_fields.size(); i++)
667 if (
m_graph->SameExpansionInfo(
690 ASSERTL0(
false,
"Expansion dimension not recognised");
722 "Only one of IO_CheckTime and IO_CheckSteps "
727 if (
m_comm->IsParallelInTime())
730 "Only specify NumSteps and TimeSteps for Parallel-in-Time. "
731 "FinTime should not be used! ");
779 for (
int i = 0; i < nvariables; ++i)
782 m_fields[i]->EvaluateBoundaryConditions(time, varName);
808 bool physwavetrans =
false;
814 physwavetrans =
true;
817 if (exactsoln.size())
822 else if (
m_session->DefinesFunction(
"ExactSolution"))
837 if (Normalised ==
true)
842 L2error =
sqrt(L2error * L2error / Vol);
846 if (physwavetrans ==
true)
851 physwavetrans =
false;
882 if (exactsoln.size())
887 else if (
m_session->DefinesFunction(
"ExactSolution"))
906 Linferror = L2INF[1];
926 LibUtilities::eGaussRadauMAlpha1Beta0);
949 Tkeys.push_back(BkeyT1);
950 Tkeys.push_back(BkeyT2);
953 Qkeys.push_back(BkeyQ1);
954 Qkeys.push_back(BkeyQ2);
962 int ErrorCoordim = ErrorExp->GetCoordim(0);
963 int ErrorNq = ErrorExp->GetTotPoints();
969 switch (ErrorCoordim)
972 ErrorExp->GetCoords(ErrorXc0);
975 ErrorExp->GetCoords(ErrorXc0, ErrorXc1);
978 ErrorExp->GetCoords(ErrorXc0, ErrorXc1, ErrorXc2);
987 exSol->Evaluate(ErrorXc0, ErrorXc1, ErrorXc2,
m_time, ErrorSol);
991 ErrorExp->BwdTrans(
m_fields[
field]->GetCoeffs(), ErrorExp->UpdatePhys());
993 L2INF[0] = ErrorExp->L2(ErrorExp->GetPhys(), ErrorSol);
994 L2INF[1] = ErrorExp->Linf(ErrorExp->GetPhys(), ErrorSol);
1006 [[maybe_unused]]
NekDouble initialtime,
bool dumpInitialConditions,
1009 if (
m_session->GetComm()->GetRank() == 0)
1011 cout <<
"Initial Conditions:" << endl;
1014 if (
m_session->DefinesFunction(
"InitialConditions"))
1022 for (
int i = 0; i <
m_fields.size(); ++i)
1031 if (
m_session->GetComm()->GetRank() == 0)
1033 for (
int i = 0; i <
m_fields.size(); ++i)
1035 std::string varName =
m_session->GetVariable(i);
1036 cout <<
" - Field " << varName <<
": "
1038 ->Describe(varName, domain)
1045 int nq =
m_fields[0]->GetNpoints();
1046 for (
int i = 0; i <
m_fields.size(); i++)
1052 if (
m_session->GetComm()->GetRank() == 0)
1054 cout <<
" - Field " <<
m_session->GetVariable(i)
1055 <<
": 0 (default)" << endl;
1061 !
m_comm->IsParallelInTime())
1065 else if (dumpInitialConditions &&
m_nchk == 0 &&
m_comm->IsParallelInTime())
1068 if (!fs::is_directory(newdir))
1070 fs::create_directory(newdir);
1072 if (
m_comm->GetTimeComm()->GetRank() == 0)
1088 "ExactSolution array size mismatch.");
1090 if (
m_session->DefinesFunction(
"ExactSolution"))
1147 if (!
m_comm->IsParallelInTime())
1156 if (!fs::is_directory(newdir))
1158 fs::create_directory(newdir);
1162 m_comm->GetTimeComm()->GetRank() + 1) +
1172 for (
int i = 0; i <
m_fields.size(); i++)
1183 for (
int i = 0; i <
m_fields.size(); i++)
1197 if (!
m_comm->IsParallelInTime())
1200 std::string outname =
m_sessionName +
"_" + std::to_string(n);
1208 std::string paradir =
1209 sessionName +
"_" + std::to_string(
m_iterPIT) +
".pit";
1210 if (!fs::is_directory(paradir))
1212 fs::create_directory(paradir);
1214 std::string outname = paradir +
"/" + sessionName +
"_timeLevel" +
1215 std::to_string(
m_session->GetTimeLevel()) +
"_" +
1228 std::vector<std::string> &variables)
1230 if (!
m_comm->IsParallelInTime())
1233 std::string outname =
m_sessionName +
"_" + std::to_string(n);
1238 ASSERTL0(
false,
"Not Implemented for Parallel-in-Time");
1248 std::string outname =
m_sessionName +
"_BaseFlow_" + std::to_string(n);
1259 std::vector<Array<OneD, NekDouble>> fieldcoeffs(
m_fields.size());
1260 std::vector<std::string> variables(
m_fields.size());
1262 for (
int i = 0; i <
m_fields.size(); ++i)
1266 fieldcoeffs[i] =
m_fields[i]->UpdateCoeffs();
1271 m_fields[0]->ExtractCoeffsToCoeffs(
1292 std::vector<std::string> &variables)
1294 std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef =
1295 field->GetFieldDefinitions();
1296 std::vector<std::vector<NekDouble>> FieldData(FieldDef.size());
1299 for (
int j = 0; j < fieldcoeffs.size(); ++j)
1301 for (
int i = 0; i < FieldDef.size(); ++i)
1304 FieldDef[i]->m_fields.push_back(variables[j]);
1305 field->AppendFieldData(FieldDef[i], FieldData[i], fieldcoeffs[j]);
1328 mapping->Output(fieldMetaDataMap, outname);
1345 m_fld->Write(outname, FieldDef, FieldData, fieldMetaDataMap,
1356 const std::string &infile,
1359 std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef;
1360 std::vector<std::vector<NekDouble>> FieldData;
1363 field_fld->Import(infile, FieldDef, FieldData);
1366 for (
int j = 0; j < pFields.size(); ++j)
1370 for (
int i = 0; i < FieldDef.size(); ++i)
1373 std::string(
"Order of ") + infile +
1374 std::string(
" data and that defined in "
1375 "m_boundaryconditions differs"));
1377 pFields[j]->ExtractDataToCoeffs(FieldDef[i], FieldData[i],
1379 pFields[j]->UpdateCoeffs());
1381 pFields[j]->BwdTrans(pFields[j]->GetCoeffs(), pFields[j]->UpdatePhys());
1394 const std::string &infile,
1397 std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef;
1398 std::vector<std::vector<NekDouble>> FieldData;
1405 ndomains * nvariables == pFields.size(),
1406 "Number of fields does not match the number of variables and domains");
1409 for (
int j = 0; j < ndomains; ++j)
1411 for (
int i = 0; i < nvariables; ++i)
1414 pFields[j * nvariables + i]->UpdateCoeffs(), 1);
1416 for (
int n = 0; n < FieldDef.size(); ++n)
1419 std::string(
"Order of ") + infile +
1420 std::string(
" data and that defined in "
1421 "m_boundaryconditions differs"));
1423 pFields[j * nvariables + i]->ExtractDataToCoeffs(
1424 FieldDef[n], FieldData[n], FieldDef[n]->
m_fields[i],
1425 pFields[j * nvariables + i]->UpdateCoeffs());
1427 pFields[j * nvariables + i]->BwdTrans(
1428 pFields[j * nvariables + i]->GetCoeffs(),
1429 pFields[j * nvariables + i]->UpdatePhys());
1441 std::string &pFieldName)
1443 std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef;
1444 std::vector<std::vector<NekDouble>> FieldData;
1448 field_fld->Import(infile, FieldDef, FieldData);
1451 Vmath::Zero(pField->GetNcoeffs(), pField->UpdateCoeffs(), 1);
1453 for (
int i = 0; i < FieldDef.size(); ++i)
1456 for (
int j = 0; j < FieldData.size(); ++j)
1458 if (FieldDef[i]->
m_fields[j] == pFieldName)
1463 ASSERTL1(idx >= 0,
"Field " + pFieldName +
" not found.");
1465 pField->ExtractDataToCoeffs(FieldDef[i], FieldData[i],
1467 pField->UpdateCoeffs());
1469 pField->BwdTrans(pField->GetCoeffs(), pField->UpdatePhys());
1480 std::vector<std::string> &fieldStr,
1484 ASSERTL0(fieldStr.size() <= coeffs.size(),
1485 "length of fieldstr should be the same as coeffs");
1487 std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef;
1488 std::vector<std::vector<NekDouble>> FieldData;
1492 field_fld->Import(infile, FieldDef, FieldData);
1495 for (
int j = 0; j < fieldStr.size(); ++j)
1498 for (
int i = 0; i < FieldDef.size(); ++i)
1500 m_fields[0]->ExtractDataToCoeffs(FieldDef[i], FieldData[i],
1501 fieldStr[j], coeffs[j]);
1512 if (
m_session->DefinesSolverInfo(
"EQTYPE"))
1519 m_fields[0]->EvalBasisNumModesMax());
1521 if (
m_session->GetComm()->GetSize() > 1)
1561 if (
m_session->DefinesSolverInfo(
"UpwindType"))
1564 m_session->GetSolverInfo(
"UpwindType"));
1567 if (
m_session->DefinesSolverInfo(
"AdvectionType"))
1569 std::string AdvectionType;
1570 AdvectionType =
m_session->GetSolverInfo(
"AdvectionType");
1572 s,
"Advection Type",
1576 if (
m_session->DefinesSolverInfo(
"DiffusionType"))
1578 std::string DiffusionType;
1579 DiffusionType =
m_session->GetSolverInfo(
"DiffusionType");
1581 s,
"Diffusion Type",
1596 "Mixed Continuous Galerkin and Discontinuous");
1613 ASSERTL0(
false,
"This function is not valid for the Base class");
1623 [[maybe_unused]] std::vector<std::string> &variables)
#define ASSERTL0(condition, msg)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
static GLOBAL_MAPPING_EXPORT MappingSharedPtr Load(const LibUtilities::SessionReaderSharedPtr &pSession, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields)
Return a pointer to the mapping, creating it on first call.
Describes the specification for a Basis.
static std::shared_ptr< FieldIO > CreateForFile(const LibUtilities::SessionReaderSharedPtr session, const std::string &filename)
Construct a FieldIO object for a given input filename.
static std::shared_ptr< FieldIO > CreateDefault(const LibUtilities::SessionReaderSharedPtr session)
Returns an object for the default FieldIO method.
Provides a generic Factory class.
Defines a specification for a set of points.
static std::string RegisterEnumValue(std::string pEnum, std::string pString, int pEnumValue)
Registers an enumeration value.
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
int m_spacedim
Spatial dimension (>= expansion dim).
SOLVER_UTILS_EXPORT int GetTraceNpoints()
SOLVER_UTILS_EXPORT void ExtraFldOutput(std::vector< Array< OneD, NekDouble > > &fieldcoeffs, std::vector< std::string > &variables)
bool m_useFFT
Flag to determine if FFT is used for homogeneous transform.
SOLVER_UTILS_EXPORT int GetNvariables()
int m_expdim
Expansion dimension.
LibUtilities::FieldIOSharedPtr m_fld
Field input/output.
SOLVER_UTILS_EXPORT void SessionSummary(SummaryList &vSummary)
Write out a session summary.
virtual SOLVER_UTILS_EXPORT void v_SetInitialConditions(NekDouble initialtime=0.0, bool dumpInitialConditions=true, const int domain=0)
virtual SOLVER_UTILS_EXPORT ~EquationSystem()
Destructor.
SpatialDomains::MeshGraphSharedPtr m_graph
Pointer to graph defining mesh.
LibUtilities::CommSharedPtr m_comm
Communicator.
NekDouble m_timestep
Time step size.
SOLVER_UTILS_EXPORT void ImportFld(const std::string &infile, Array< OneD, MultiRegions::ExpListSharedPtr > &pFields)
Input field data from the given file.
NekDouble m_time
Current time of simulation.
int m_iterPIT
Number of parallel-in-time time iteration.
bool m_multipleModes
Flag to determine if use multiple homogenenous modes are used.
Array< OneD, MultiRegions::ExpListSharedPtr > m_fields
Array holding all dependent variables.
int m_windowPIT
Index of windows for parallel-in-time time iteration.
virtual SOLVER_UTILS_EXPORT void v_TransPhysToCoeff()
Virtual function for transformation to coefficient space.
std::vector< std::string > m_strFrameData
variable name in m_movingFrameData
virtual SOLVER_UTILS_EXPORT bool v_NegatedOp(void)
Virtual function to identify if operator is negated in DoSolve.
NekDouble m_fintime
Finish time of the simulation.
virtual SOLVER_UTILS_EXPORT NekDouble v_L2Error(unsigned int field, const Array< OneD, NekDouble > &exactsoln=NullNekDouble1DArray, bool Normalised=false)
Virtual function for the L_2 error computation between fields and a given exact solution.
virtual SOLVER_UTILS_EXPORT MultiRegions::ExpListSharedPtr v_GetPressure(void)
static std::string projectionTypeLookupIds[]
int m_npointsZ
number of points in Z direction (if homogeneous)
SOLVER_UTILS_EXPORT void Checkpoint_Output(const int n)
Write checkpoint file of m_fields.
virtual SOLVER_UTILS_EXPORT void v_ExtraFldOutput(std::vector< Array< OneD, NekDouble > > &fieldcoeffs, std::vector< std::string > &variables)
std::map< std::string, SolverUtils::SessionFunctionSharedPtr > m_sessionFunctions
Map of known SessionFunctions.
NekDouble m_checktime
Time between checkpoints.
virtual SOLVER_UTILS_EXPORT void v_InitObject(bool DeclareFeld=true)
Initialisation object for EquationSystem.
virtual SOLVER_UTILS_EXPORT NekDouble v_LinfError(unsigned int field, const Array< OneD, NekDouble > &exactsoln=NullNekDouble1DArray)
Virtual function for the L_inf error computation between fields and a given exact solution.
static std::string equationSystemTypeLookupIds[]
virtual SOLVER_UTILS_EXPORT void v_EvaluateExactSolution(unsigned int field, Array< OneD, NekDouble > &outfield, const NekDouble time)
virtual SOLVER_UTILS_EXPORT void v_DoInitialise(bool dumpInitialConditions=true)
Virtual function for initialisation implementation.
SOLVER_UTILS_EXPORT void WriteFld(const std::string &outname)
Write field data to the given filename.
SOLVER_UTILS_EXPORT void ImportFldToMultiDomains(const std::string &infile, Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const int ndomains)
Input field data from the given file to multiple domains.
NekDouble m_LhomY
physical length in Y direction (if homogeneous)
int m_npointsY
number of points in Y direction (if homogeneous)
std::string m_sessionName
Name of the session.
SOLVER_UTILS_EXPORT void Checkpoint_BaseFlow(const int n)
Write base flow file of m_fields.
bool m_specHP_dealiasing
Flag to determine if dealisising is usde for the Spectral/hp element discretisation.
LibUtilities::SessionReaderSharedPtr m_session
The session reader.
bool m_singleMode
Flag to determine if single homogeneous mode is used.
SOLVER_UTILS_EXPORT void ZeroPhysFields()
int m_HomoDirec
number of homogenous directions
Array< OneD, Array< OneD, NekDouble > > m_traceNormals
Array holding trace normals for DG simulations in the forwards direction.
enum HomogeneousType m_HomogeneousType
SOLVER_UTILS_EXPORT Array< OneD, NekDouble > ErrorExtraPoints(unsigned int field)
Compute error (L2 and L_inf) over an larger set of quadrature points return [L2 Linf].
SOLVER_UTILS_EXPORT int GetNpoints()
Array< OneD, bool > m_checkIfSystemSingular
Flag to indicate if the fields should be checked for singularity.
bool m_homogen_dealiasing
Flag to determine if dealiasing is used for homogeneous simulations.
SOLVER_UTILS_EXPORT int GetNcoeffs()
int m_nchk
Number of checkpoints written so far.
enum MultiRegions::ProjectionType m_projectionType
Type of projection; e.g continuous or discontinuous.
NekDouble m_TimeIncrementFactor
virtual SOLVER_UTILS_EXPORT void v_DoSolve()
Virtual function for solve implementation.
virtual SOLVER_UTILS_EXPORT Array< OneD, bool > v_GetSystemSingularChecks()
int m_steps
Number of steps to take.
int m_NumQuadPointsError
Number of Quadrature points used to work out the error.
SOLVER_UTILS_EXPORT EquationSystem(const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph)
Initialises EquationSystem class members.
LibUtilities::FieldMetaDataMap m_fieldMetaDataMap
Map to identify relevant solver info to dump in output fields.
SOLVER_UTILS_EXPORT int GetNumExpModes()
SpatialDomains::BoundaryConditionsSharedPtr m_boundaryConditions
Pointer to boundary conditions object.
Array< OneD, NekDouble > m_movingFrameData
Moving reference frame status in the inertial frame X, Y, Z, Theta_x, Theta_y, Theta_z,...
SOLVER_UTILS_EXPORT void SetBoundaryConditions(NekDouble time)
Evaluates the boundary conditions at the given time.
NekDouble m_LhomZ
physical length in Z direction (if homogeneous)
virtual SOLVER_UTILS_EXPORT void v_GenerateSummary(SummaryList &l)
Virtual function for generating summary information.
bool m_halfMode
Flag to determine if half homogeneous mode is used.
SOLVER_UTILS_EXPORT void FwdTransFields()
int m_checksteps
Number of steps between checkpoints.
SOLVER_UTILS_EXPORT SessionFunctionSharedPtr GetFunction(std::string name, const MultiRegions::ExpListSharedPtr &field=MultiRegions::NullExpListSharedPtr, bool cache=false)
Get a SessionFunction by name.
SOLVER_UTILS_EXPORT int GetTotPoints()
virtual SOLVER_UTILS_EXPORT void v_Output(void)
virtual SOLVER_UTILS_EXPORT void v_TransCoeffToPhys()
Virtual function for transformation to physical space.
GLOBAL_MAPPING_EXPORT typedef std::shared_ptr< Mapping > MappingSharedPtr
A shared pointer to a Mapping object.
std::vector< BasisKey > BasisKeyVector
Name for a vector of BasisKeys.
void Import(const std::string &infilename, std::vector< FieldDefinitionsSharedPtr > &fielddefs, std::vector< std::vector< NekDouble > > &fielddata, FieldMetaDataMap &fieldinfomap, const Array< OneD, int > &ElementIDs)
This function allows for data to be imported from an FLD file when a session and/or communicator is n...
std::shared_ptr< FieldIO > FieldIOSharedPtr
std::map< std::string, std::string > FieldMetaDataMap
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< Equation > EquationSharedPtr
static FieldMetaDataMap NullFieldMetaDataMap
@ eFourierEvenlySpaced
1D Evenly-spaced points using Fourier Fit
@ eGaussLobattoLegendre
1D Gauss-Lobatto-Legendre quadrature points
@ eFourierSingleModeSpaced
1D Non Evenly-spaced points for Single Mode analysis
@ eModified_B
Principle Modified Functions .
@ eFourierSingleMode
Fourier ModifiedExpansion with just the first mode .
@ eModified_A
Principle Modified Functions .
@ eFourierHalfModeIm
Fourier Modified expansions with just the imaginary part of the first mode .
@ eFourierHalfModeRe
Fourier Modified expansions with just the real part of the first mode .
@ eFourier
Fourier Expansion .
@ eMixed_CG_Discontinuous
std::shared_ptr< DisContField > DisContFieldSharedPtr
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
std::shared_ptr< ContField > ContFieldSharedPtr
AdvectionFactory & GetAdvectionFactory()
Gets the factory for initialising advection objects.
std::vector< std::pair< std::string, std::string > > SummaryList
DiffusionFactory & GetDiffusionFactory()
EquationSystemFactory & GetEquationSystemFactory()
void AddSummaryItem(SummaryList &l, const std::string &name, const std::string &value)
Adds a summary item to the summary info list.
std::shared_ptr< SessionFunction > SessionFunctionSharedPtr
std::shared_ptr< ExpansionInfoMap > ExpansionInfoMapShPtr
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
std::map< int, ExpansionInfoShPtr > ExpansionInfoMap
NekMatrix< NekMatrix< NekMatrix< NekDouble, StandardMatrixTag >, ScaledMatrixTag >, BlockMatrixTag > DNekScalBlkMat
NekMatrix< NekMatrix< NekDouble, StandardMatrixTag >, ScaledMatrixTag > DNekScalMat
void Zero(int n, T *x, const int incx)
Zero vector.
scalarT< T > sqrt(scalarT< T > in)
Used to lookup the create function in NekManager.