28 :
NodalScalarKernel(parameters), _val_number(coupledIndices(
"var")), _value(coupledValues(
"var"))
39 for (
unsigned int k = 0; k <
_value.size(); k++)
51 for (
unsigned int i = 0; i <
_local_ke.
m(); i++)
52 for (
unsigned int j = 0; j <
_local_ke.
n(); j++)
57 for (
unsigned int k = 0; k <
_value.size(); k++)
registerMooseObject("MooseApp", NodalEqualValueConstraint)
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 ...
unsigned int number() const
Get variable number coming from libMesh.
Constraint to enforce equal values (in 1D)
const std::vector< unsigned int > _val_number
const std::vector< const VariableValue * > _value
static InputParameters validParams()
virtual void computeResidual() override
Compute this object's contribution to the residual.
virtual void computeJacobian() override
Compute this object's contribution to the diagonal Jacobian entries.
NodalEqualValueConstraint(const InputParameters ¶meters)
static InputParameters validParams()
std::vector< dof_id_type > _node_ids
List of node IDs.
Assembly & _assembly
Reference to this Kernel's assembly object.
MooseVariableScalar & _var
Scalar variable.
DenseMatrix< Number > _local_ke
Holds local Jacobian entries as they are accumulated by this Kernel.
void prepareMatrixTag(Assembly &assembly, unsigned int ivar, unsigned int jvar)
Prepare data for computing element jacobian according to the active tags.
void prepareVectorTag(Assembly &assembly, unsigned int ivar)
Prepare data for computing element residual according to active tags.
void assignTaggedLocalResidual()
Local residual blocks will assigned as the current local kernel residual.
DenseVector< Number > _local_re
Holds local residual entries as they are accumulated by this Kernel.
void assignTaggedLocalMatrix()
Local Jacobian blocks will assigned as the current local kernel Jacobian.