20 "variable",
"The variable this initial condition is supposed to provide values for.");
33 _fe_problem(*getCheckedPointerParam<
FEProblemBase *>(
"_fe_problem_base")),
34 _sys(*getCheckedPointerParam<
SystemBase *>(
"_sys")),
36 _t(_fe_problem.time()),
37 _var(_sys.getScalarVariable(_tid, getParam<VariableName>(
"variable"))),
39 _fe_problem.assembly(_tid, _var.kind() ==
Moose::
VAR_NONLINEAR ? _var.sys().number() : 0))
44 for (
const auto & var : coupled_vars)
50 const std::set<std::string> &
56 const std::set<std::string> &
virtual const std::set< std::string > & getSuppliedItems()
Return a set containing the names of items owned by the object.
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
Base class for a system (of equations)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
std::set< std::string > _depend_vars
virtual Real value()=0
The value of the variable.
const std::vector< MooseVariableScalar * > & getCoupledMooseScalarVars()
Get the list of coupled scalar variables.
Every object that can be built by the factory should be derived from this class.
virtual ~ScalarInitialCondition()
Interface for objects that need to use UserObjects.
static InputParameters validParams()
Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int...
MooseVariableScalar & _var
Scalar variable this initial condition works on.
Interface for sorting dependent vectors of objects.
Interface for objects that needs scalar coupling capabilities.
ScalarInitialCondition(const InputParameters ¶meters)
Constructor.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
virtual const std::set< std::string > & getRequestedItems()
Return a set containing the names of items requested by the object.
std::set< std::string > _supplied_vars
static InputParameters validParams()
virtual void compute(DenseVector< Number > &vals)
Compute the initial condition.
Interface for objects that need to use functions.