https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADPenaltyPeriodicSegmentalConstraint.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "ADMortarScalarBase.h"
14#include "MooseVariableScalar.h"
15#include "Assembly.h"
16
31{
32public:
35
36protected:
37 virtual void precalculateResidual() override;
38 virtual void initScalarQpResidual() override;
39
43 virtual ADReal computeQpResidual(Moose::MortarType mortar_type) override;
44
48 virtual ADReal computeScalarQpResidual() override;
49
54
59
60protected:
66
69 Real _tau_s;
71
74
76 const unsigned int _ka_order;
77
80
82 const Real _pen_scale;
83};
DualNumber< Real, DNDerivativeType, true > ADReal
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
This class enforces a periodic boundary condition between a microscale and macroscale field.
const unsigned int _ka_order
Order of the homogenization variable, used in several places.
ADReal _temp_jump_global
the temperature jump in global and interface coordinates; TM-analogy: _displacement_jump_global,...
const MooseVariableScalar *const _kappa_aux_ptr
(Pointer to) the controlled scalar variable
virtual ADReal computeQpResidual(Moose::MortarType mortar_type) override
Method for computing the residual at quadrature points.
void precalculateMaterial()
Compute concentration jump before quadrature loop.
const VariableValue & _kappa_aux
The controlled scalar variable.
virtual ADReal computeScalarQpResidual() override
Method for computing the scalar part of residual at quadrature points.
const Real _pen_scale
Input property from user as the value of the penalty parameter.
Real _tau_s
The stability parameter for the method.
virtual void initScalarQpResidual() override
Put necessary evaluations depending on qp but independent of test functions here.
Interface class ("Veneer") to provide generator methods for derivative material property names.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Class for scalar variables (they are different).