20 params.addRequiredParam<AuxVariableName>(
21 "variable",
"The name of the aux variable that this AuxRayKernel applies to");
32 _fe_problem.getAuxiliarySystem()
33 .getVariable(_tid, params.get<AuxVariableName>(
"variable"))
36 Moose::VarKindType::VAR_AUXILIARY,
37 Moose::VarFieldType::VAR_FIELD_STANDARD),
38 _aux(_fe_problem.getAuxiliarySystem()),
39 _var(*mooseVariable())
41 if (
_var.
feType() != FEType(CONSTANT, MONOMIAL))
42 paramError(
"variable",
"Only CONSTANT MONOMIAL variables are supported");
AuxRayKernel(const InputParameters ¶ms)
static Threads::spin_mutex _add_value_mutex
Spin mutex object for adding values.
static InputParameters validParams()
AuxiliarySystem & _aux
The aux system.
void addValue(const Real value)
Use to accumulate a value into the corresponding AuxVariable from this AuxRayKernel.
MooseVariableFE< Real > & _var
The AuxVariable this AuxRayKernel contributes to.
void paramError(const std::string ¶m, Args... args) const
const libMesh::FEType & feType() const
void addMooseVariableDependency(MooseVariableFieldBase *var)
virtual void add(libMesh::NumericVector< libMesh::Number > &vector) override
virtual void setNodalValue(const OutputType &value, unsigned int idx=0) override
virtual const OutputTools< T >::VariableValue & value()
MooseVariableFE< T > * mooseVariable() const
Base object for the RayKernel syntax.
static InputParameters validParams()
NumericVector< Number > & solution()