22 params.
addParam<std::string>(
"type",
"FEProblem",
"Problem type");
23 params.
addParam<std::string>(
"name",
"MOOSE Problem",
"The name the problem");
41 mooseError(
"Trying to build a problem but problem has already existed");
registerMooseAction("MooseApp", CreateProblemAction, "create_problem")
std::shared_ptr< MooseMesh > & _mesh
MooseApp & _app
The MOOSE application this is associated with.
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
CreateProblemAction(const InputParameters ¶meters)
static InputParameters validParams()
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
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)
bool & useNonlinear()
Returns a writable Boolean indicating whether this app will use a Nonlinear or Eigen System.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
const InputParameters & _pars
The object's parameters.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
InputParameters _moose_object_pars
The parameters for the object to be created.
static InputParameters validParams()
std::string _type
The Object type that is being created.
Factory & _factory
The Factory associated with the MooseApp.