42 bool use_nonlinear =
true;
43 bool use_eigenvalue =
false;
48 use_nonlinear = !(exparams.isParamValid(
"_eigen") && exparams.get<
bool>(
"_eigen"));
50 (exparams.isParamValid(
"_use_eigen_value") && exparams.get<
bool>(
"_use_eigen_value"));
59 if (
_mesh.get() != NULL)
66 type =
"EigenProblem";
75 params.applyParameters(p->getObjectParams());
80 params.set<
bool>(
"solve") = getParam<bool>(
"_solve");
88 mooseError(
"Problem has to be of a EigenProblem (or derived subclass) type when using " virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
bool & useNonlinear()
Returns a writable Boolean indicating whether this app will use a Nonlinear or Eigen System...
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
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
Get valid parameters for the object.
std::unique_ptr< T_DEST, T_DELETER > dynamic_pointer_cast(std::unique_ptr< T_SRC, T_DELETER > &src)
These are reworked from https://stackoverflow.com/a/11003103.
static InputParameters validParams()
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Factory & _factory
The Factory associated with the MooseApp.
static InputParameters validParams()
bool & useEigenvalue()
Returns a writable Boolean indicating whether this app will use an eigenvalue executioner.
InputParameters & getObjectParams()
Retreive the parameters of the object to be created by this action.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
const std::string & type() const
Get the type of this class.
const std::string & _current_task
The current action (even though we have separate instances for each action)
MooseApp & _app
The MOOSE application this is associated with.
std::shared_ptr< MooseMesh > & _mesh
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
const T * getActionByTask(const std::string &task)
Retrieve the action on a specific task with its type.
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
CreateProblemDefaultAction(const InputParameters ¶meters)
Problem for solving eigenvalue problems.
registerMooseAction("MooseApp", CreateProblemDefaultAction, "create_problem_default")