18 #include "libmesh/quadrature.h" 27 "Lagrange multiplier approach.");
34 :
Kernel(parameters), _lambda_var(coupledScalar(
"lambda")), _lambda(coupledScalarValue(
"lambda"))
static InputParameters validParams()
MooseVariable & _var
This is a regular kernel so we cast to a regular MooseVariable.
virtual Real computeQpOffDiagJacobianScalar(unsigned int jvar) override
For coupling scalar variables.
const MooseArray< Real > & _JxW
The current quadrature point weight value.
unsigned int number() const
Get variable number coming from libMesh.
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
THREAD_ID _tid
The thread ID for this kernel.
DenseMatrix< Number > _local_ke
Holds local Jacobian entries as they are accumulated by this Kernel.
SystemBase & _sys
Reference to the EquationSystem object.
const VariableValue & _lambda
Lagrange multiplier variable value.
const VariableTestValue & _test
the current test function
const QBase *const & _qrule
active quadrature rule
unsigned int _i
current index for the test function
void accumulateTaggedLocalMatrix()
Local Jacobian blocks will be appended by adding the current local kernel Jacobian.
registerMooseObject("MooseApp", ScalarLagrangeMultiplier)
const MooseArray< Real > & _coord
The scaling factor to convert from cartesian to another coordinate system (e.g rz, spherical, etc.)
Assembly & _assembly
Reference to this Kernel's assembly object.
libMesh::Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int...
unsigned int _j
current index for the shape function
virtual MooseVariableScalar & getScalarVariable(THREAD_ID tid, const std::string &var_name) const
Gets a reference to a scalar variable with specified number.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual ~ScalarLagrangeMultiplier()
Class for scalar variables (they are different).
ScalarLagrangeMultiplier(const InputParameters ¶meters)
void prepareMatrixTag(Assembly &assembly, unsigned int ivar, unsigned int jvar)
Prepare data for computing element jacobian according to the active tags.
unsigned int _lambda_var
Lagrange multiplier variable ID.
virtual void computeOffDiagJacobianScalar(unsigned int jvar) override
Computes jacobian block with respect to a scalar variable.
unsigned int _qp
The current quadrature point index.
This Kernel implements part of the equation that enforces the constraint of.