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 element variables do not support an [FVInitialCondition] subblock, try using a " 48 "separate [InitialConditions] block in your input file.");
const InputParameters & _pars
The object's parameters.
static InputParameters validParams()
AddFVICAction(const InputParameters ¶ms)
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 and optionally a file path to the top-level block p...
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
registerMooseAction("MooseApp", AddFVICAction, "add_fv_ic")