https://mooseframework.inl.gov
Functions | Variables
MFEMProblem.C File Reference

Go to the source code of this file.

Functions

 registerMooseObject ("MooseApp", MFEMProblem)
 
int vectorFunctionDim (const std::string &type, const InputParameters &parameters)
 

Variables

const std::vector< std::string > SCALAR_FUNCS
 
const std::vector< std::string > VECTOR_FUNCS = {"ParsedVectorFunction", "LevelSetOlssonVortex"}
 

Function Documentation

◆ registerMooseObject()

registerMooseObject ( "MooseApp"  ,
MFEMProblem   
)

◆ vectorFunctionDim()

int vectorFunctionDim ( const std::string &  type,
const InputParameters parameters 
)

Definition at line 398 of file MFEMProblem.C.

Referenced by MFEMProblem::addFunction().

399 {
400  if (parameters.isParamSetByUser("expression_z"))
401  return 3;
402  if (parameters.isParamSetByUser("expression_y") || type == "LevelSetOlssonVortex")
403  return 2;
404  if (parameters.isParamSetByUser("expression_x"))
405  return 1;
406 
407  return 3;
408 }
bool isParamSetByUser(const std::string &name) const
Method returns true if the parameter was set by the user.

Variable Documentation

◆ SCALAR_FUNCS

const std::vector<std::string> SCALAR_FUNCS

Definition at line 410 of file MFEMProblem.C.

Referenced by MFEMProblem::addFunction().

◆ VECTOR_FUNCS

const std::vector<std::string> VECTOR_FUNCS = {"ParsedVectorFunction", "LevelSetOlssonVortex"}

Definition at line 447 of file MFEMProblem.C.

Referenced by MFEMProblem::addFunction().