19 "ADPenaltyPeriodicSegmentalConstraint enforces macro-micro periodic conditions between " 20 "secondary and primary sides of a mortar interface using a penalty approach " 21 "(no Lagrange multipliers needed). Must be used alongside PenaltyEqualValueConstraint.");
22 params.
renameCoupledVar(
"scalar_variable",
"epsilon",
"Primary coupled scalar variable");
27 "Penalty value used to impose a generalized force capturing the mortar constraint equation");
37 _kappa_aux_ptr(getScalarVar(
"sigma", 0)),
38 _ka_order(_kappa_aux_ptr->order()),
39 _kappa_aux(coupledScalarValue(
"sigma")),
40 _pen_scale(getParam<
Real>(
"penalty_value"))
44 "Must assign auxiliary scalar variable to sigma, rather than nonlinear variable");
126 r += dx(
_h) *
_tau_s * (kappa_vec * dx);
static InputParameters validParams()
static InputParameters validParams()
const VariableTestValue & _test_secondary
The shape functions corresponding to the secondary interior primal variable.
registerMooseObject("MooseApp", ADPenaltyPeriodicSegmentalConstraint)
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 ...
This class enforces a periodic boundary condition between a microscale and macroscale field...
This Constraint adds standardized methods for assembling to a primary scalar variable associated with...
const MooseVariableScalar *const _kappa_var_ptr
(Pointer to) Scalar variable this kernel operates on
const Real _pen_scale
Input property from user as the value of the penalty parameter.
Real _tau_s
The stability parameter for the method.
const MooseVariableScalar *const _kappa_aux_ptr
(Pointer to) the controlled scalar variable
const MooseArray< Point > & _phys_points_primary
The locations of the quadrature points on the interior primary elements.
DualNumber< Real, DNDerivativeType, true > ADReal
const unsigned int _k_order
Order of the scalar variable, used in several places.
const ADVariableValue & _kappa
Reference to the current solution at the current quadrature point.
virtual ADReal computeScalarQpResidual() override
Method for computing the scalar part of residual at quadrature points.
std::vector< Point > _normals
the normals
virtual const std::vector< dof_id_type > & dofIndices() const
Get local DoF indices.
virtual ADReal computeQpResidual(Moose::MortarType mortar_type) override
Method for computing the residual at quadrature points.
const MooseArray< Point > & _phys_points_secondary
The locations of the quadrature points on the interior secondary elements.
void precalculateStability()
Compute penalty parameter.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Interface class ("Veneer") to provide generator methods for derivative material property names...
void precalculateMaterial()
Compute concentration jump before quadrature loop.
ADPenaltyPeriodicSegmentalConstraint(const InputParameters ¶meters)
const VariableValue & _kappa_aux
The controlled scalar variable.
virtual void initScalarQpResidual() override
Put necessary evaluations depending on qp but independent of test functions here. ...
Moose::VarKindType kind() const
Kind of the variable (Nonlinear, Auxiliary, ...)
ADReal _temp_jump_global
the temperature jump in global and interface coordinates; TM-analogy: _displacement_jump_global, _interface_displacement_jump
void derivInsert(SemiDynamicSparseNumberArray< Real, libMesh::dof_id_type, NWrapper< N >> &derivs, libMesh::dof_id_type index, Real value)
const ADVariableValue & _u_primary
The primal solution on the primary side.
const VariableTestValue & _test_primary
The shape functions corresponding to the primary interior primal variable.
virtual void precalculateResidual() override
const ADVariableValue & _u_secondary
The primal solution on the secondary side.
unsigned int _h
Used internally to iterate over each scalar component.