https://mooseframework.inl.gov
PenaltyPeriodicSegmentalConstraint.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 "MortarScalarBase.h"
14 #include "MooseVariableScalar.h"
15 #include "Assembly.h"
16 
31 {
32 public:
35 
36 protected:
37  virtual void precalculateResidual() override;
38  virtual void precalculateJacobian() override;
39  virtual void initScalarQpResidual() override;
40 
44  virtual Real computeQpResidual(Moose::MortarType mortar_type) override;
46  unsigned int /*jvar*/) override
47  {
48  return 0;
49  };
50 
54  virtual Real computeScalarQpResidual() override;
55 
60  virtual Real computeScalarQpJacobian() override;
61 
62  // using MortarScalarBase::computeOffDiagJacobianScalar;
63 
68  const unsigned int jvar) override;
69 
74  const unsigned int jvar) override;
75 
76  // Compute concentration jump
77  void precalculateMaterial();
78  // Compute penalty parameter
79  void precalculateStability();
80 
81 protected:
87 
92 
95 
97  const unsigned int _ka_order;
98 
101 
104 };
const Real _pen_scale
Input property from user as the value of the penalty parameter.
This class enforces a periodic boundary condition between a microscale and macroscale field...
virtual Real computeQpOffDiagJacobianScalar(Moose::MortarType mortar_type, const unsigned int jvar) override
Method for computing d-_var-residual / d-_kappa at quadrature points.
virtual void initScalarQpResidual() override
Put necessary evaluations depending on qp but independent of test functions here. ...
MortarType
Definition: MooseTypes.h:770
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Real _tau_s
The stability parameter for the method.
virtual Real computeScalarQpResidual() override
Method for computing the scalar part of residual at quadrature points.
PenaltyPeriodicSegmentalConstraint(const InputParameters &parameters)
const unsigned int _ka_order
Order of the homogenization variable, used in several places.
Real computeQpJacobian(Moose::ConstraintJacobianType, unsigned int) override
compute the jacobian at the quadrature points
forward declarations
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Interface class ("Veneer") to provide generator methods for derivative material property names...
ConstraintJacobianType
Definition: MooseTypes.h:796
Class for scalar variables (they are different).
virtual Real computeQpResidual(Moose::MortarType mortar_type) override
Method for computing the residual at quadrature points.
const InputParameters & parameters() const
Get the parameters of the object.
Real _temp_jump_global
the temperature jump in global and interface coordinates; TM-analogy: _displacement_jump_global, _interface_displacement_jump
virtual Real computeScalarQpOffDiagJacobian(Moose::MortarType mortar_type, const unsigned int jvar) override
Method for computing d-_kappa-residual / d-_var at quadrature points.
const MooseVariableScalar *const _kappa_aux_ptr
(Pointer to) the controlled scalar variable
const VariableValue & _kappa_aux
The controlled scalar variable.
virtual Real computeScalarQpJacobian() override
Method for computing the scalar variable part of Jacobian at quadrature points.