106 unsigned int comp = 0)
111 unsigned int comp = 0)
116 unsigned int comp = 0)
122 unsigned int comp = 0)
127 unsigned int comp = 0)
132 unsigned int comp = 0)
138 unsigned int comp = 0)
144 unsigned int comp = 0)
149 unsigned int comp = 0)
154 unsigned int comp = 0)
160 unsigned int comp = 0)
165 unsigned int comp = 0)
170 unsigned int comp = 0)
176 unsigned int comp = 0)
OutputTools< Real >::VariableGradient VariableGradient
unsigned short _secondary
secondary block id
virtual Real computeQpOffDiagJacobian(Moose::ConstraintJacobianType, unsigned int)
This is the virtual that derived classes should override for computing the off-diag Jacobian...
static InputParameters validParams()
NodeElemConstraint(const InputParameters ¶meters)
SparseMatrix< Number > * _jacobian
const VariableTestValue & _test_primary
Side test function.
virtual const VariableSecond & coupledSecond(const std::string &var_name, unsigned int comp=0) const
Returns second spatial derivatives of a coupled variable.
Class for stuff related to variables.
const QBase *const & _primary_qrule
const DofMap & _dof_map
DOF map.
bool _overwrite_secondary_residual
Whether or not the secondary's residual should be overwritten.
DenseMatrix< Number > _Kee
stiffness matrix holding secondary-secondary jacobian
unsigned short _primary
primary block id
virtual Real computeQpResidual(Moose::ConstraintType type)=0
This is the virtual that derived classes should override for computing the residual.
const std::map< dof_id_type, std::vector< dof_id_type > > & _node_to_elem_map
virtual const VariableGradient & coupledNeighborGradient(const std::string &var_name, unsigned int comp=0) const
virtual MooseVariable & primaryVariable()
The variable on the primary elem.
Base class for all Constraint types.
virtual const VariableSecond & coupledSecondarySecond(const std::string &var_name, unsigned int comp=0)
virtual const VariableValue & coupledNeighborValueOlder(const std::string &var_name, unsigned int comp=0) const
virtual const VariableGradient & coupledNeighborGradientOld(const std::string &var_name, unsigned int comp=0) const
virtual void computeJacobian() override
Computes the jacobian for the current element.
virtual const VariableGradient & coupledSecondaryGradientOld(const std::string &var_name, unsigned int comp=0)
virtual const VariableGradient & coupledSecondaryGradient(const std::string &var_name, unsigned int comp=0)
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type)=0
This is the virtual that derived classes should override for computing the Jacobian.
virtual const VariableValue & coupledValueOld(const std::string &var_name, unsigned int comp=0) const
Returns an old value from previous time step of a coupled variable.
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
const VariableValue & _u_secondary
Value of the unknown variable on the secondary node.
virtual const VariableValue & coupledSecondaryValueOld(const std::string &var_name, unsigned int comp=0)
virtual bool overwriteSecondaryResidual()
Whether or not the secondary's residual should be overwritten.
virtual const VariableGradient & coupledGradient(const std::string &var_name, unsigned int comp=0) const
Returns gradient of a coupled variable.
virtual const VariableValue & coupledValueOlder(const std::string &var_name, unsigned int comp=0) const
Returns an old value from two time steps previous of a coupled variable.
virtual Real computeQpSecondaryValue()=0
Compute the value the secondary node should have at the beginning of a timestep.
virtual const VariableValue & coupledValue(const std::string &var_name, unsigned int comp=0) const
Returns value of a coupled variable.
virtual void getConnectedDofIndices(unsigned int var_num)
Gets the indices for all dofs connected to the constraint.
virtual bool overwriteSecondaryJacobian()
Whether or not the secondary's Jacobian row should be overwritten.
Enhances MooseVariableInterface interface provide values from neighbor elements.
virtual const VariableSecond & coupledPrimarySecond(const std::string &var_name, unsigned int comp=0)
virtual const VariableGradient & coupledGradientOld(const std::string &var_name, unsigned int comp=0) const
Returns an old gradient from previous time step of a coupled variable.
virtual const VariableValue & coupledNeighborValue(const std::string &var_name, unsigned int comp=0) const
virtual const VariableValue & coupledPrimaryValue(const std::string &var_name, unsigned int comp=0)
const VariableValue & _u_primary
Holds the current solution at the current quadrature point.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-residual / d-jvar...
OutputTools< Real >::VariableTestValue VariableTestValue
std::map< dof_id_type, dof_id_type > _secondary_to_primary_map
maps secondary node ids to primary element ids
const VariableTestGradient & _grad_test_primary
Gradient of side shape function.
virtual ~NodeElemConstraint()
const std::string & type() const
Get the type of this class.
virtual const VariableGradient & coupledNeighborGradientOlder(const std::string &var_name, unsigned int comp=0) const
const VariableValue & _u_primary_old
Holds the old solution at the current quadrature point.
virtual const VariableValue & coupledSecondaryValue(const std::string &var_name, unsigned int comp=0)
MooseVariable & _primary_var
Primary side variable.
const Elem *const & _current_elem
OutputTools< Real >::VariablePhiGradient VariablePhiGradient
const MooseVariable & variable() const override
The variable number that this object operates on.
const VariablePhiValue & _phi_primary
Side shape function.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MooseArray< Point > & _primary_q_point
unsigned int _primary_var_num
Number for the primary variable.
virtual const VariableValue & coupledPrimaryValueOld(const std::string &var_name, unsigned int comp=0)
void computeSecondaryValue(NumericVector< Number > ¤t_solution)
Compute the value the secondary node should have at the beginning of a timestep.
const VariableGradient & _grad_u_primary
Holds the current solution gradient at the current quadrature point.
virtual void computeResidual() override
Computes the residual Nodal residual.
const Node *const & _current_node
current node being processed
virtual bool shouldApply()
Whether or not this constraint should be applied.
std::vector< dof_id_type > _connected_dof_indices
dofs connected to the secondary node
virtual const VariableGradient & coupledPrimaryGradientOlder(const std::string &var_name, unsigned int comp=0)
const InputParameters & parameters() const
Get the parameters of the object.
OutputTools< Real >::VariableSecond VariableSecond
virtual const VariableValue & coupledNeighborValueOld(const std::string &var_name, unsigned int comp=0) const
virtual const VariableValue & coupledSecondaryValueOlder(const std::string &var_name, unsigned int comp=0)
virtual const VariableValue & coupledPrimaryValueOlder(const std::string &var_name, unsigned int comp=0)
OutputTools< Real >::VariableTestGradient VariableTestGradient
A NodeElemConstraint is used when you need to create constraints between a secondary node and a prima...
VariableTestValue _test_secondary
Shape function on the secondary side. This will always only have one entry and that entry will always...
const VariableValue & _u_secondary_old
old solution
DenseMatrix< Number > _Kne
stiffness matrix holding primary-secondary jacobian
virtual void prepareSecondaryToPrimaryMap()=0
prepare the _secondary_to_primary_map
VariablePhiValue _phi_secondary
Shape function on the secondary side.
virtual const VariableGradient & coupledPrimaryGradient(const std::string &var_name, unsigned int comp=0)
virtual const VariableGradient & coupledPrimaryGradientOld(const std::string &var_name, unsigned int comp=0)
virtual const VariableGradient & coupledGradientOlder(const std::string &var_name, unsigned int comp=0) const
Returns an old gradient from two time steps previous of a coupled variable.
virtual const VariableGradient & coupledSecondaryGradientOlder(const std::string &var_name, unsigned int comp=0)
const VariablePhiGradient & _grad_phi_primary
Gradient of side shape function.
virtual const VariableSecond & coupledNeighborSecond(const std::string &var_name, unsigned int i=0) const