27 params.
set<std::vector<std::string>>(
"_object_params_set_by_action") = {
"variable"};
37 std::vector<std::string> elements;
41 std::string & var_name = elements[elements.size() - 2];
43 const auto & var =
_problem->getVariable(0, var_name);
47 "Finite volume variables do not support an [InitialCondition] subblock, please use a " 48 "separate [FVICs] block with all your finite volume initial conditions in your input " static InputParameters validParams()
static InputParameters validParams()
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
std::string _type
The Object type that is being created.
InputParameters _moose_object_pars
The parameters for the object to be created.
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.
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
registerMooseAction("MooseApp", AddICAction, "add_ic")
AddICAction(const InputParameters ¶ms)