Go to the documentation of this file.
34 _var(*mooseVariable()),
35 _current_node(_var.node()),
50 "saved-in auxiliary variable is incompatible with the object's nonlinear variable: ",
67 "saved-in auxiliary variable is incompatible with the object's nonlinear variable: ",
91 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
92 for (
unsigned int i = 0; i <
_save_in.size(); i++)
107 Real cached_val = 0.;
119 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
133 Real cached_val = 0.0;
FEProblemBase & _fe_problem
Reference to FEProblemBase.
MooseVariableFE< Real > * mooseVariable() const
Get the variable that this object is using.
const FEType & feType() const
Get the type of finite element object.
Assembly & assembly(THREAD_ID tid) override
bool hasVector(const std::string &tag_name) const
Check if the named vector exists in the system.
std::set< TagID > _matrix_tags
The matrices this Kernel will contribute to.
void addMooseVariableDependency(MooseVariableFEBase *var)
Call this function to add the passed in MooseVariableFEBase as a variable that this object depends on...
virtual void addVariableToZeroOnJacobian(std::string var_name)
Adds this variable to the list of variables to be zeroed during each Jacobian evaluation.
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
This is the virtual that derived classes should override for computing an off-diagonal jacobian compo...
std::set< TagID > _vector_tags
The vectors this Kernel will contribute to.
virtual bool hasMatrix(TagID tag) const
Check if the tagged matrix exists in the system.
std::vector< MooseVariableFEBase * > _save_in
virtual void computeResidual() override
void cacheJacobianContribution(numeric_index_type i, numeric_index_type j, Real value, TagID tag=0)
Caches the Jacobian entry 'value', to eventually be added/set in the (i,j) location of the matrix.
virtual Real computeQpJacobian()
The user can override this function to compute the "on-diagonal" Jacobian contribution for this Nodal...
bool _has_save_in
The aux variables to save the residual contributions to.
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
std::vector< AuxVariableName > _save_in_strings
std::vector< AuxVariableName > _diag_save_in_strings
const Node *const & _current_node
current node being processed
virtual void addVariableToZeroOnResidual(std::string var_name)
Adds this variable to the list of variables to be zeroed during each residual evaluation.
Base class for deriving any boundary condition that works at nodes.
virtual void computeOffDiagJacobian(unsigned int jvar) override
std::string incompatVarMsg(MooseVariableFEBase &var1, MooseVariableFEBase &var2)
Builds and returns a string of the form:
virtual unsigned int number() const
Gets the number of this system.
SystemBase & _sys
Reference to SystemBase.
virtual bool isNodalDefined() const override
Is this variable defined at nodes.
virtual void computeJacobian() override
Base class for deriving any boundary condition that works at nodes.
virtual NumericVector< Number > & getVector(const std::string &name)
Get a raw NumericVector.
std::vector< MooseVariableFEBase * > _diag_save_in
virtual Real computeQpResidual()=0
VarKindType
Framework-wide stuff.
SystemBase & sys()
Get the system this variable is part of.
static InputParameters validParams()
static InputParameters validParams()
bool _has_diag_save_in
The aux variables to save the diagonal Jacobian contributions to.
void insertNodalValue(NumericVector< Number > &residual, const OutputData &v)
Write a nodal value to the passed-in solution vector.
Interface for objects that need to get values of MooseVariables.
Class for stuff related to variables.
NodalBC(const InputParameters ¶meters)
defineLegacyParams(NodalBC)
virtual MooseVariable & getStandardVariable(THREAD_ID tid, const std::string &var_name)=0
Returns the variable reference for requested MooseVariable which may be in any system.
const dof_id_type & nodalDofIndex() const override
SubProblem & _subproblem
Reference to SubProblem.
unsigned int number() const
Get variable number coming from libMesh.