25 "The name of the variable that this kernel operates on");
26 params.
addParam<
bool>(
"use_displaced_mesh",
28 "Whether or not this object should use the "
29 "displaced mesh for computation. Note that "
30 "in the case this is true but no "
31 "displacements are provided in the Mesh block "
32 "the undisplaced mesh will still be used.");
51 _subproblem(*getCheckedPointerParam<
SubProblem *>(
"_subproblem")),
52 _sys(*getCheckedPointerParam<
SystemBase *>(
"_sys")),
54 _assembly(_subproblem.assembly(_tid, 0)),
55 _var(_sys.getScalarVariable(_tid, parameters.get<AuxVariableName>(
"variable"))),
56 _mesh(_subproblem.
mesh()),
62 for (
const auto & var : coupled_vars)
88const std::set<std::string> &
94const std::set<std::string> &
110 mooseError(
"The solution states have already been initialized when calling ",
113 "Make sure to call uOld() within the object constructor.");
OutputTools< Real >::VariableValue VariableValue
AuxScalarKernel(const InputParameters ¶meters)
virtual ~AuxScalarKernel()
static InputParameters validParams()
virtual const std::set< std::string > & getSuppliedItems() override
Return a set containing the names of items owned by the object.
virtual Real computeValue()=0
Compute the value of this kernel.
MooseVariableScalar & _var
virtual bool isActive()
Use this to enable/disable the constraint.
virtual const std::set< std::string > & getRequestedItems() override
Return a set containing the names of items requested by the object.
std::set< std::string > _supplied_vars
std::set< std::string > _depend_vars
Depend AuxKernels.
const VariableValue & uOld() const
Retrieves the old value of the variable that this AuxScalarKernel operates on.
virtual void compute()
Evaluate the kernel.
Interface for sorting dependent vectors of objects.
Interface for objects that need to use functions.
Interface for notifications that the mesh has changed.
static InputParameters validParams()
const InputParameters & parameters() const
Get the parameters of the object.
const std::string & type() const
Get the type of this class.
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...
Every object that can be built by the factory should be derived from this class.
static InputParameters validParams()
virtual const std::vector< dof_id_type > & dofIndices() const
Get local DoF indices.
const libMesh::DofMap & dofMap() const
The DofMap associated with the system this variable is in.
libMesh::Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int.
const VariableValue & slnOld() const
void setValue(unsigned int i, Number value)
Set the nodal value for this variable (to keep everything up to date.
Interface class for classes which interact with Postprocessors.
Interface for objects that needs scalar coupling capabilities.
const std::vector< MooseVariableScalar * > & getCoupledMooseScalarVars()
Get the list of coupled scalar variables.
static InputParameters validParams()
Generic class for solving transient nonlinear problems.
Base class for a system (of equations)
bool solutionStatesInitialized() const
Whether or not the solution states have been initialized via initSolutionState()
Interface for objects that needs transient capabilities.
Interface for objects that need to use UserObjects.
bool all_semilocal_indices(const std::vector< dof_id_type > &dof_indices) const