25 params.
addClassDescription(
"Action that creates an empty mesh (in case one was not already " 26 "created) and also builds THMProblem (same).");
39 const std::string class_name =
"THMMesh";
42 params.
set<
unsigned int>(
"patch_size") = 1;
48 if (!
_mesh->hasMeshBase())
49 _mesh->setMeshBase(
_mesh->buildMeshBaseObject());
53 const std::string class_name =
"THMProblem";
71 _mesh->setUniformRefineLevel(level,
false);
registerMooseAction("ThermalHydraulicsApp", THMCreateMeshAction, "setup_mesh")
std::shared_ptr< MooseObject > create(const std::string &obj_name, const std::string &name, const InputParameters ¶meters, THREAD_ID tid=0, bool print_deprecated=true)
InputParameters getValidParams(const std::string &name) const
void extractParams(const std::string &prefix, InputParameters &p)
static InputParameters validParams()
Moose::Builder & builder()
const std::string & _current_task
static InputParameters validParams()
const T & getParam(const std::string &name)
std::shared_ptr< MooseMesh > & _mesh
THMCreateMeshAction(const InputParameters ¶ms)
const T * getActionByTask(const std::string &task)
std::shared_ptr< FEProblemBase > & _problem
bool isParamSetByUser(const std::string &nm) const