27 params.
addClassDescription(
"Creates all the objects necessary to solve a particular physics");
29 params.
addParam<std::vector<SubdomainName>>(
30 "block", {},
"Blocks (subdomains) that this Physics is active on.");
32 MooseEnum transient_options(
"true false same_as_problem",
"same_as_problem");
34 "transient", transient_options,
"Whether the physics is to be solved as a transient");
36 params.
addParam<
bool>(
"verbose",
false,
"Flag to facilitate debugging a Physics");
39 params.
addParam<std::vector<SolverSystemName>>(
42 "Name of the solver system(s) for the variables. If a single name is specified, " 43 "that system is used for all solver variables.");
44 MooseEnum pc_options(
"default defer",
"defer");
47 "Which preconditioning to use/add for this Physics, or whether to " 48 "defer to the Preconditioning block, or another Physics");
51 params.
addParam<
bool>(
"initialize_variables_from_mesh_file",
53 "Determines if the variables that are added by the action are initialized" 54 "from the mesh file (only for Exodus format)");
56 "initial_from_file_timestep",
58 "Gives the time step number (or \"LATEST\") for which to read the Exodus solution");
60 "Restart from Exodus");
64 "dont_create_solver_variables",
false,
"Whether to skip the 'add_variable' task");
65 params.
addParam<
bool>(
"dont_create_ics",
false,
"Whether to skip the 'add_ic'/'add_fv_ic' task");
67 "dont_create_kernels",
false,
"Whether to skip the 'add_kernel' task for each kernel type");
68 params.
addParam<
bool>(
"dont_create_bcs",
70 "Whether to skip the 'add_bc' task for each boundary condition type");
71 params.
addParam<
bool>(
"dont_create_functions",
false,
"Whether to skip the 'add_function' task");
73 "dont_create_aux_variables",
false,
"Whether to skip the 'add_aux_variable' task");
75 "dont_create_aux_kernels",
false,
"Whether to skip the 'add_aux_kernel' task");
76 params.
addParam<
bool>(
"dont_create_materials",
78 "Whether to skip the 'add_material' task for each material type");
80 "dont_create_user_objects",
82 "Whether to skip the 'add_user_object' task. This does not apply to UserObject derived " 83 "classes being created on a different task (for example: postprocessors, VPPs, correctors)");
85 "dont_create_correctors",
false,
"Whether to skip the 'add_correctors' task");
87 "dont_create_postprocessors",
false,
"Whether to skip the 'add_postprocessors' task");
88 params.
addParam<
bool>(
"dont_create_vectorpostprocessors",
90 "Whether to skip the 'add_vectorpostprocessors' task");
92 "dont_create_solver_variables dont_create_ics dont_create_kernels dont_create_bcs " 93 "dont_create_functions dont_create_aux_variables dont_create_aux_kernels " 94 "dont_create_materials dont_create_user_objects dont_create_correctors " 95 "dont_create_postprocessors dont_create_vectorpostprocessors",
96 "Reduce Physics object creation");
106 _system_names(getParam<
std::vector<SolverSystemName>>(
"system_names")),
107 _verbose(getParam<bool>(
"verbose")),
108 _preconditioning(getParam<
MooseEnum>(
"preconditioning")),
109 _blocks(getParam<
std::vector<SubdomainName>>(
"block")),
110 _is_transient(getParam<
MooseEnum>(
"transient"))
113 "initial_from_file_timestep");
131 else if (
_current_task ==
"add_variable" && !getParam<bool>(
"dont_create_solver_variables"))
134 !getParam<bool>(
"dont_create_ics"))
138 else if (
_current_task ==
"add_kernel" && !getParam<bool>(
"dont_create_kernels"))
140 else if (
_current_task ==
"add_nodal_kernel" && !getParam<bool>(
"dont_create_kernels"))
143 !getParam<bool>(
"dont_create_kernels"))
145 else if (
_current_task ==
"add_dirac_kernel" && !getParam<bool>(
"dont_create_kernels"))
147 else if (
_current_task ==
"add_dg_kernel" && !getParam<bool>(
"dont_create_kernels"))
149 else if (
_current_task ==
"add_scalar_kernel" && !getParam<bool>(
"dont_create_kernels"))
151 else if (
_current_task ==
"add_interface_kernel" && !getParam<bool>(
"dont_create_kernels"))
153 else if (
_current_task ==
"add_fv_ik" && !getParam<bool>(
"dont_create_kernels"))
157 else if (
_current_task ==
"add_bc" && !getParam<bool>(
"dont_create_bcs"))
159 else if (
_current_task ==
"add_nodal_bc" && !getParam<bool>(
"dont_create_bcs"))
162 !getParam<bool>(
"dont_create_bcs"))
164 else if (
_current_task ==
"add_periodic_bc" && !getParam<bool>(
"dont_create_bcs"))
168 else if (
_current_task ==
"add_function" && !getParam<bool>(
"dont_create_functions"))
170 else if (
_current_task ==
"add_aux_variable" && !getParam<bool>(
"dont_create_aux_variables"))
172 else if (
_current_task ==
"add_aux_kernel" && !getParam<bool>(
"dont_create_aux_kernels"))
174 else if (
_current_task ==
"add_material" && !getParam<bool>(
"dont_create_materials"))
176 else if (
_current_task ==
"add_functor_material" && !getParam<bool>(
"dont_create_materials"))
186 else if (
_current_task ==
"add_user_object" && !getParam<bool>(
"dont_create_user_objects"))
188 else if (
_current_task ==
"add_corrector" && !getParam<bool>(
"dont_create_correctors"))
190 else if (
_current_task ==
"add_postprocessor" && !getParam<bool>(
"dont_create_postprocessors"))
193 !getParam<bool>(
"dont_create_vectorpostprocessors"))
226 if (getParam<bool>(
"initialize_variables_from_mesh_file"))
230 "initial_from_file_timestep");
236 mooseAssert(
_problem,
"We don't have a problem yet");
248 mooseAssert(
_mesh,
"We dont have a mesh yet");
249 mooseAssert(
_dim < 4,
"Dimension has not been set yet");
253 std::set<SubdomainID>
256 const bool not_block_restricted =
259 mooseAssert(
_mesh,
"Should have a mesh");
263 std::set<SubdomainID> block_ids_set =
264 not_block_restricted ?
_mesh->meshSubdomains() :
_mesh->getSubdomainIDs(
blocks);
265 return block_ids_set;
268 std::vector<std::string>
271 mooseAssert(
_mesh,
"Should have a mesh");
272 std::vector<std::string> sub_names_ids;
273 sub_names_ids.reserve(
blocks.size());
274 for (
const auto bid :
blocks)
276 const auto bname =
_mesh->getSubdomainName(bid);
277 sub_names_ids.push_back((bname.empty() ?
"(unnamed)" : bname) +
" (" + std::to_string(bid) +
280 return sub_names_ids;
296 if (block_ids.size())
298 for (
const auto bid : block_ids)
307 for (
const auto & block : component.
blocks())
332 "Empty block restriction is not supported. Comment out the Physics if you are " 333 "trying to disable it.");
337 _blocks.push_back(
"ANY_BLOCK_ID");
339 mooseAssert(
_mesh,
"We should have a mesh to find the dimension");
359 if (
std::find(problem_nl_systems.begin(), problem_nl_systems.end(), sys_name) ==
360 problem_nl_systems.end() &&
361 std::find(problem_lin_systems.begin(), problem_lin_systems.end(), sys_name) ==
362 problem_lin_systems.end() &&
364 mooseError(
"System '", sys_name,
"' is not found in the Problem");
375 paramError(
"transient",
"We cannot solve a physics as transient in a steady problem");
380 "There should be one system name per solver variable (potentially repeated), or a " 381 "single system name for all variables. Current you have '" +
382 std::to_string(
_system_names.size()) +
"' systems specified for '" +
386 unsigned int var_i = 0;
390 if (!
_problem->getSolverSystem(
_problem->solverSysNum(sys_name)).hasVariable(var_name) &&
391 !
_problem->getSolverSystem(
_problem->solverSysNum(sys_name)).hasScalarVariable(var_name))
393 "We expected system '" + sys_name +
"' to contain variable '" + var_name +
394 "' but it did not. Make sure the system names closely match the ordering of " 395 "the variables in the Physics.");
403 if (getParam<bool>(
"initialize_variables_from_mesh_file"))
405 mooseInfoRepeated(
"Adding Exodus restart for " + std::to_string(variables_to_copy.size()) +
408 for (
const auto i :
index_range(variables_to_copy))
414 const auto & var_name = variables_to_copy[i];
416 var_name, var_name, getParam<std::string>(
"initial_from_file_timestep"));
424 if (error_if_aux &&
_problem->getAuxiliarySystem().hasVariable(var_name))
427 "' is supposed to be nonlinear for physics '",
429 "' but it is already defined as auxiliary");
431 return _problem->hasVariable(var_name);
437 return _problem->hasSolverVariable(var_name);
440 const SolverSystemName &
443 mooseAssert(!
_system_names.empty(),
"We should have a solver system name");
452 const SolverSystemName &
455 mooseAssert(!
_system_names.empty(),
"We should have a solver system name");
465 mooseError(
"Variable '", var_name,
"' was not found within the Physics solver variables.");
475 if (!registered_tasks.count(required_task))
477 "' has been declared as required by a Physics parent class of derived class '" +
479 "' but this task is not registered to the derived class. Registered tasks for " 480 "this Physics are: " +
491 params.
set<std::vector<SubdomainName>>(
"block") =
blocks;
493 mooseInfoRepeated(
"Empty block restriction assigned to an object created by Physics '" +
494 name() +
"'.\n Did you mean to do this?");
499 const std::vector<SubdomainName> &
blocks,
500 bool error_if_not_identical)
const 514 auto copy_blocks_other =
blocks;
515 std::sort(copy_blocks.begin(), copy_blocks.end());
516 copy_blocks.erase(unique(copy_blocks.begin(), copy_blocks.end()), copy_blocks.end());
517 std::sort(copy_blocks_other.begin(), copy_blocks_other.end());
518 copy_blocks_other.erase(unique(copy_blocks_other.begin(), copy_blocks_other.end()),
519 copy_blocks_other.end());
521 if (copy_blocks == copy_blocks_other)
523 std::vector<SubdomainName> diff;
524 std::set_difference(copy_blocks.begin(),
526 copy_blocks_other.begin(),
527 copy_blocks_other.end(),
528 std::inserter(diff, diff.begin()));
529 if (error_if_not_identical)
534 "' have different block restrictions.\nPhysics: ",
547 mooseAssert(
_mesh,
"The mesh should exist already");
551 else if (
blocks.size() !=
_mesh->meshSubdomains().size())
554 for (
const auto mesh_block :
_mesh->meshSubdomains())
556 const auto & subdomain_name =
_mesh->getSubdomainName(mesh_block);
558 if (!subdomain_name.empty() &&
571 std::vector<SubdomainName> blocks_vec(
blocks.begin(),
blocks.end());
577 const std::vector<std::pair<MooseEnumItem, std::string>> & petsc_pair_options)
584 _problem->getSolverSystem(solver_sys_num).prefix(),
592 const auto var = &
_problem->getVariable(0, var_name);
599 return _problem->hasScalarVariable(var_name);
604 const std::vector<SubdomainName> &
blocks,
605 const bool error_if_aux)
610 auto & var =
_problem->getVariable(0, var_name);
611 const bool not_block_restricted =
614 if (!var.blockRestricted() || (!not_block_restricted && var.hasBlocks(
blocks)))
621 mooseError(
"Variable '" + var_name +
"' already exists with subdomain restriction '" +
622 Moose::stringify(var.blocks()) +
"' which does not include the subdomains '" +
628 const std::vector<SubdomainName> &
blocks,
629 const bool ic_is_default_ic,
630 const bool error_if_already_defined)
const 636 if (getParam<bool>(
"initialize_variables_from_mesh_file"))
639 mooseAssert(!
isVariableScalar(var_name),
"shouldCreateIC not implemented for scalar variables");
642 std::set<SubdomainName> blocks_set(
blocks.begin(),
blocks.end());
646 std::set<SubdomainID> blocks_ids_covered;
650 has_all_blocks =
_problem->getFVInitialConditionWarehouse().hasObjectsForVariableAndBlocks(
651 var_name, blocks_ids_set, blocks_ids_covered, 0);
653 std::set<SubdomainID> blocks_ids_covered_fe;
654 const bool has_all_blocks_from_feics =
655 _problem->getInitialConditionWarehouse().hasObjectsForVariableAndBlocks(
656 var_name, blocks_ids_set, blocks_ids_covered_fe, 0);
658 has_all_blocks = has_all_blocks || has_all_blocks_from_feics;
659 blocks_ids_covered.insert(blocks_ids_covered_fe.begin(), blocks_ids_covered_fe.end());
662 has_all_blocks =
_problem->getInitialConditionWarehouse().hasObjectsForVariableAndBlocks(
663 var_name, blocks_ids_set, blocks_ids_covered, 0);
665 const bool has_some_blocks = !blocks_ids_covered.empty();
666 if (!has_some_blocks)
671 if (error_if_already_defined)
672 mooseError(
"ICs for variable '" + var_name +
"' have already been defined for blocks '" +
679 mooseError(
"There is a partial overlap between the subdomains covered by pre-existing initial " 680 "conditions (ICs), defined on blocks (ids): " +
682 "\n and a newly created IC for variable " + var_name +
684 ".\nWe should be creating the Physics' IC only for non-covered blocks. This is not " 685 "implemented at this time.");
690 const std::vector<SubdomainName> &
blocks,
691 const bool error_if_already_defined)
const 701 "shouldCreateTimeDerivative not implemented for scalar variables");
702 mooseAssert(!
_problem->hasAuxiliaryVariable(var_name),
703 "Should not be called with auxiliary variables");
706 const auto var = &
_problem->getVariable(0, var_name);
707 const auto var_id = var->number();
708 const auto sys_num = var->sys().number();
709 const auto time_vector_tag =
710 (sys_num <
_problem->numNonlinearSystems())
711 ? var->sys().timeVectorTag()
713 :
dynamic_cast<LinearSystem *
>(&var->sys())->rightHandSideTimeVectorTag();
716 bool all_blocks_covered =
true;
717 std::set<SubdomainID> blocks_ids_covered;
720 for (
const auto & block :
blocks)
722 std::vector<MooseObject *> time_kernels;
723 if (block !=
"ANY_BLOCK_ID")
725 const auto bid =
_mesh->getSubdomainID(block);
728 .template condition<AttribSysNum>(sys_num)
729 .
template condition<AttribVar>(var_id)
730 .template condition<AttribSubdomains>(bid)
732 .
template condition<AttribVectorTags>(time_vector_tag)
733 .queryInto(time_kernels);
738 .template condition<AttribSysNum>(sys_num)
739 .
template condition<AttribVar>(var_id)
741 .template condition<AttribVectorTags>(time_vector_tag)
742 .queryInto(time_kernels);
744 if (time_kernels.size())
746 if (block ==
"ANY_BLOCK_ID")
748 for (
const auto & time_kernel : time_kernels)
749 if (
const auto blk = dynamic_cast<BlockRestrictable *>(time_kernel))
750 blocks_ids_covered.insert(blk->blockIDs().begin(), blk->blockIDs().end());
753 blocks_ids_covered.insert(
_mesh->getSubdomainID(block));
756 all_blocks_covered =
false;
760 if (all_blocks_covered)
762 std::set<SubdomainName> blocks_set(
blocks.begin(),
blocks.end());
764 if (blocks_ids != blocks_ids_covered)
765 all_blocks_covered =
false;
767 const bool has_some_blocks = !blocks_ids_covered.empty();
768 if (!has_some_blocks)
770 if (all_blocks_covered)
772 if (error_if_already_defined)
773 mooseError(
"A time kernel for variable '" + var_name +
780 mooseError(
"There is a partial overlap between the subdomains covered by pre-existing time " 781 "derivative kernel(s), defined on blocks (ids): " +
783 "\nand a newly created time derivative kernel for variable " + var_name +
785 ".\nWe should be creating the Physics' time derivative only for non-covered " 786 "blocks. This is not implemented at this time.");
791 const std::string & object_type)
const 793 std::vector<std::string> defaults_unused;
794 std::vector<std::string> user_values_unused;
795 for (
const auto & param : param_names)
798 user_values_unused.push_back(param);
800 defaults_unused.push_back(param);
802 if (defaults_unused.size() &&
_verbose)
804 "' for object of type '" + object_type +
805 "' were not used because the object was not created by this Physics.");
806 if (user_values_unused.size())
810 "User-specifed values for parameters '" +
Moose::stringify(user_values_unused) +
811 "' for object of type '" + object_type +
812 "' were not used because the corresponding object was not created by this Physics.");
815 "User-specified values for parameters '" +
Moose::stringify(user_values_unused) +
816 "' for object of type '" + object_type +
817 "' were not used because the corresponding object was not created by this Physics.");
const T & getAction(const std::string &name) const
Retrieve an action with its name and the desired type.
const std::vector< VariableName > & auxVariableNames() const
Return the list of aux variables in this physics.
const std::vector< NonlinearSystemName > & getNonlinearSystemNames() const
virtual void act() override final
Forwards from the action tasks to the implemented addXYZ() in the derived classes If you need more th...
KOKKOS_INLINE_FUNCTION const T * find(const T &target, const T *const begin, const T *const end)
Find a value in an array.
virtual InputParameters getAdditionalRMParams() const
Provide additional parameters for the relationship managers.
void assignBlocks(InputParameters ¶ms, const std::vector< SubdomainName > &blocks) const
Set the blocks parameter to the input parameters of an object this Physics will create.
virtual void addInitialConditions()
bool shouldCreateVariable(const VariableName &var_name, const std::vector< SubdomainName > &blocks, const bool error_if_aux)
Returns whether this Physics should create the variable.
std::vector< VariableName > _aux_var_names
Vector of the aux variables in the Physics.
virtual void addFVInterfaceKernels()
virtual void addPreconditioning()
MooseEnum _is_transient
Whether the physics is to be solved as a transient.
RelationshipManagerType
Main types of Relationship Managers.
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
void initializePhysics()
Process some parameters that require the problem to be created. Executed on init_physics.
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
void addRequiredPhysicsTask(const std::string &task)
Add a new required task for all physics deriving from this class NOTE: This does not register the tas...
void addPetscPairsToPetscOptions(const std::vector< std::pair< MooseEnumItem, std::string >> &petsc_pair_options)
Process the given petsc option pairs into the system solver settings.
void addPetscPairsToPetscOptions(const std::vector< std::pair< MooseEnumItem, std::string >> &petsc_pair_options, const unsigned int mesh_dimension, std::string prefix, const ParallelParamObject ¶m_object, PetscOptions &petsc_options)
Populate name and value pairs in a given PetscOptions object using vectors of input arguments...
virtual void checkIntegrity() const
Additional checks performed near the end of the setup phase.
Base class to help creating an entire physics.
virtual void checkIntegrityEarly() const
Additional checks performed once the executioner / executor has been created.
std::set< std::string > getTasksByAction(const std::string &action) const
virtual void addMultiApps()
ActionFactory & _action_factory
Builds Actions.
virtual void addAuxiliaryKernels()
A struct for storing the various types of petsc options and values.
virtual void addPeriodicBCs()
const std::vector< SubdomainName > & blocks() const
Return the blocks this physics is defined on.
void mooseInfoRepeated(Args &&... args)
Emit an informational message with the given stringified, concatenated args.
virtual void addVariableToCopy(const std::string &dest_name, const std::string &source_name, const std::string ×tep)
Add info about variable that will be copied.
bool solverVariableExists(const VariableName &var_name) const
Check whether a variable already exists and is a solver variable.
const bool _verbose
Whether to output additional information.
Base class for components that are defined using an action.
bool shouldCreateIC(const VariableName &var_name, const std::vector< SubdomainName > &blocks, const bool ic_is_default_ic, const bool error_if_already_defined) const
Returns whether this Physics should create the variable.
bool shouldCreateTimeDerivative(const VariableName &var_name, const std::vector< SubdomainName > &blocks, const bool error_if_already_defined) const
Returns whether this Physics should create the variable.
Base class for a system (of equations)
bool isRestarting() const
Whether or not this is a "restart" calculation.
bool allMeshBlocks(const std::vector< SubdomainName > &blocks) const
Check if a vector contains all the mesh blocks.
std::vector< SubdomainName > _blocks
Keep track of the subdomains the Physics is defined on.
unsigned int dimension() const
Return the maximum dimension of the blocks the Physics is active on.
void addBlocks(const std::vector< SubdomainName > &blocks)
Add new blocks to the Physics.
virtual FEProblemBase & getProblem()
Get the problem for this physics Useful to add objects to the simulation.
void mooseWarning(Args &&... args) const
const std::string & name() const
Get the name of the class.
static InputParameters validParams()
virtual void addNodalBCs()
const SolverSystemName & getSolverSystem(unsigned int variable_index) const
Get the solver system for this variable index.
virtual void addNodalKernels()
virtual void addDGKernels()
bool unusedFlagIsError() const
Returns whether the flag for unused parameters is set to throw an error.
virtual void addMaterials()
std::set< std::string > _required_tasks
Manually keeps track of the tasks required by each physics as tasks cannot be inherited.
void setExodusFileRestart(bool flag)
Set the flag to indicate whether or not we need to use a separate Exodus reader to read the mesh BEFO...
bool isVariableScalar(const VariableName &var_name) const
Whether the variable is a scalar variable (global single scalar, not a field)
PhysicsBase(const InputParameters ¶meters)
void copyVariablesFromMesh(const std::vector< VariableName > &variables_to_copy, bool are_nonlinear=true)
Copy nonlinear or aux variables from the mesh file.
unsigned int _dim
Dimension of the physics, which we expect for now to be the dimension of the mesh NOTE: this is not k...
virtual void addReporters()
bool isVariableFV(const VariableName &var_name) const
Whether the variable is a finite volume variable.
std::vector< std::string > getSubdomainNamesAndIDs(const std::set< SubdomainID > &blocks) const
Get the vector of subdomain names and ids for the incoming set of subdomain IDs.
const std::string & type() const
Get the type of this class.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
const std::string & _current_task
The current action (even though we have separate instances for each action)
virtual const SystemBase & systemBaseAuxiliary() const override
Return the auxiliary system object as a base class reference.
virtual void addPostprocessors()
virtual void addFunctions()
MooseApp & _app
The MOOSE application this is associated with.
std::string stringify(const T &t)
conversion to string
virtual void addSolverVariables()
The default implementation of these routines will do nothing as we do not expect all Physics to be de...
virtual void addExecutioner()
const std::vector< LinearSystemName > & getLinearSystemNames() const
const std::vector< VariableName > & solverVariableNames() const
Return the list of solver (nonlinear + linear) variables in this physics.
bool variableExists(const VariableName &var_name, bool error_if_aux) const
Check whether a variable already exists.
bool checkBlockRestrictionIdentical(const std::string &object_name, const std::vector< SubdomainName > &blocks, const bool error_if_not_identical=true) const
Check if an external object has the same block restriction.
virtual void addFVKernels()
static InputParameters validParams()
virtual const SystemBase & getSystemBase(const unsigned int sys_num) const
Get constant reference to a system in this problem.
std::shared_ptr< MooseMesh > & _mesh
std::vector< VariableName > _solver_var_names
Vector of the solver variables (nonlinear and linear) in the Physics.
std::set< SubdomainID > getSubdomainIDs(const std::set< SubdomainName > &blocks) const
Get the set of subdomain ids for the incoming vector of subdomain names.
virtual void addComponent(const ActionComponent &component)
Most basic way of adding a component: simply adding the blocks to the block restriction of the Physic...
virtual void addFEKernels()
virtual void addUserObjects()
virtual void addRelationshipManagers(Moose::RelationshipManagerType input_rm_type) override
Method to add a relationship manager for the objects being added to the system.
bool unusedFlagIsWarning() const
Returns whether the flag for unused parameters is set to throw a warning only.
virtual void actOnAdditionalTasks()
Routine to add additional setup work on additional registered tasks to a Physics. ...
void addBlocksById(const std::vector< SubdomainID > &block_ids)
void prepareCopyVariablesFromMesh() const
Tell the app if we want to use Exodus restart.
const std::vector< SubdomainName > & blocks() const
Returns the subdomains for the component mesh, if any.
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...
virtual void addOutputs()
bool addRelationshipManagers(Moose::RelationshipManagerType when_type, const InputParameters &moose_object_pars)
Method to add a relationship manager for the objects being added to the system.
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
Linear system to be solved.
virtual void addDiracKernels()
virtual void addVectorPostprocessors()
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
virtual void addExecutors()
void reportPotentiallyMissedParameters(const std::vector< std::string > ¶m_names, const std::string &object_type) const
When this is called, we are knowingly not using the value of these parameters.
virtual bool isTransient() const override
virtual void addInterfaceKernels()
virtual void addFunctorMaterials()
const ActionComponent & getActionComponent(const ComponentName &comp_name) const
Get a component with the requested name.
std::vector< unsigned int > _system_numbers
System numbers for the system(s) owning the solver variables.
virtual void addTransfers()
bool isRecovering() const
Whether or not this is a "recover" calculation.
virtual void addCorrectors()
bool isParamSetByUser(const std::string &name) const
Test if the supplied parameter is set by a user, as opposed to not set or set to default.
void setVerboseProblem(bool verbose)
Make the problem be verbose.
auto index_range(const T &sizable)
std::vector< SolverSystemName > _system_names
System names for the system(s) owning the solver variables.
bool isTransient() const
Return whether the Physics is solved using a transient.
virtual void addAuxiliaryVariables()
virtual void initializePhysicsAdditional()
Additional initialization work that should happen very early, as soon as the problem is created...
virtual void addScalarKernels()
void checkRequiredTasks() const
Check the list of required tasks for missing tasks.