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 389 of file MFEMProblem.C.

Referenced by MFEMProblem::addFunction().

390 {
391  if (parameters.isParamSetByUser("expression_z"))
392  return 3;
393  if (parameters.isParamSetByUser("expression_y") || type == "LevelSetOlssonVortex")
394  return 2;
395  if (parameters.isParamSetByUser("expression_x"))
396  return 1;
397 
398  return 3;
399 }
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 401 of file MFEMProblem.C.

Referenced by MFEMProblem::addFunction().

◆ VECTOR_FUNCS

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

Definition at line 438 of file MFEMProblem.C.

Referenced by MFEMProblem::addFunction().