Go to the documentation of this file.
44 bool use_nonlinear =
true;
45 bool use_eigenvalue =
false;
50 use_nonlinear = !(exparams.isParamValid(
"_eigen") && exparams.get<
bool>(
"_eigen"));
52 (exparams.isParamValid(
"_use_eigen_value") && exparams.get<
bool>(
"_use_eigen_value"));
61 if (
_mesh.get() != NULL)
68 type =
"EigenProblem";
77 params.applyParameters(p->getObjectParams());
82 params.set<
bool>(
"solve") = getParam<bool>(
"_solve");
90 mooseError(
"Problem has to be of a EigenProblem (or derived subclass) type when using "
MooseApp & _app
The MOOSE application this is associated with.
std::shared_ptr< MooseObject > create(const std::string &obj_name, const std::string &name, InputParameters ¶meters, THREAD_ID tid=0, bool print_deprecated=true)
Build an object (must be registered) - THIS METHOD IS DEPRECATED (Use create<T>())
InputParameters getValidParams(const std::string &name)
Get valid parameters for the object.
const std::string & _current_task
The current action (even though we have seperate instances for each action)
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
defineLegacyParams(CreateProblemDefaultAction)
bool & useEigenvalue()
Returns a writable Boolean indicating whether this app will use an eigenvalue executioner.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Factory & _factory
The Factory associated with the MooseApp.
static InputParameters validParams()
const T * getActionByTask(const std::string &task)
Retrieve the action on a specific task with its type.
const std::string & type() const
InputParameters _pars
Input parameters for the action.
bool & useNonlinear()
Returns a writable Boolean indicating whether this app will use a Nonlinear or Eigen System.
registerMooseAction("MooseApp", CreateProblemDefaultAction, "create_problem_default")
InputParameters & getObjectParams()
Retreive the parameters of the object to be created by this action.
CreateProblemDefaultAction(InputParameters parameters)
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
std::shared_ptr< MooseMesh > & _mesh
static InputParameters validParams()
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.