Cache of the secondary nodal normals and tangents of one mortar interface, carrying their displacement derivatives while a Jacobian is assembled. More...
#include <MortarNodalFrames.h>
Public Member Functions | |
| ADNodalFrames (const std::array< const MooseVariable *, 3 > &disp_vars) | |
| const ADRealVectorValue & | normal (const AutomaticMortarGeneration &amg, const Node &node, const Point &stored_normal, bool do_derivatives) |
| const std::array< ADRealVectorValue, 2 > & | tangents (const AutomaticMortarGeneration &amg, const Node &node, const Point &stored_normal, bool do_derivatives) |
| std::vector< ADRealVectorValue > | interpolatedNormals (const AutomaticMortarGeneration &amg, const Elem &secondary_elem, const std::vector< Point > &xi_pts, const std::vector< Point > &stored_normals, bool do_derivatives) |
Interpolate the nodal normals of secondary_elem to reference points in the same way as AutomaticMortarGeneration::getNormals() | |
| void | clear () |
Private Attributes | |
| const std::array< const MooseVariable *, 3 > | _disp_vars |
| std::unordered_map< const Node *, ADRealVectorValue > | _normals |
| std::unordered_map< const Node *, std::array< ADRealVectorValue, 2 > > | _tangents |
Cache of the secondary nodal normals and tangents of one mortar interface, carrying their displacement derivatives while a Jacobian is assembled.
Residual-only evaluations hold the stored nodal geometry values. Call clear() whenever the displaced geometry changes.
Definition at line 73 of file MortarNodalFrames.h.
|
inlineexplicit |
| disp_vars | The x, y, and z displacement variables; the z entry is null in 2D |
Definition at line 79 of file MortarNodalFrames.h.
| void Moose::Mortar::ADNodalFrames::clear | ( | ) |
Definition at line 146 of file MortarNodalFrames.C.
| std::vector< ADRealVectorValue > Moose::Mortar::ADNodalFrames::interpolatedNormals | ( | const AutomaticMortarGeneration & | amg, |
| const Elem & | secondary_elem, | ||
| const std::vector< Point > & | xi_pts, | ||
| const std::vector< Point > & | stored_normals, | ||
| bool | do_derivatives | ||
| ) |
Interpolate the nodal normals of secondary_elem to reference points in the same way as AutomaticMortarGeneration::getNormals()
| amg | The mortar generation object of the interface |
| secondary_elem | The lower-dimensional secondary element |
| xi_pts | The reference points on secondary_elem |
| stored_normals | The stored interpolated normals at xi_pts, which also fix the sign convention of a periodic interface |
| do_derivatives | Whether to include displacement derivatives |
Definition at line 105 of file MortarNodalFrames.C.
| const ADRealVectorValue & Moose::Mortar::ADNodalFrames::normal | ( | const AutomaticMortarGeneration & | amg, |
| const Node & | node, | ||
| const Point & | stored_normal, | ||
| bool | do_derivatives | ||
| ) |
| amg | The mortar generation object of the interface |
| node | A secondary node |
| stored_normal | The stored normal at node, used when do_derivatives is false |
| do_derivatives | Whether to include displacement derivatives |
node Definition at line 71 of file MortarNodalFrames.C.
Referenced by interpolatedNormals(), and tangents().
| const std::array< ADRealVectorValue, 2 > & Moose::Mortar::ADNodalFrames::tangents | ( | const AutomaticMortarGeneration & | amg, |
| const Node & | node, | ||
| const Point & | stored_normal, | ||
| bool | do_derivatives | ||
| ) |
node, built from normal() with the same arguments. They carry displacement derivatives exactly when that normal does. Definition at line 89 of file MortarNodalFrames.C.
|
private |
Definition at line 125 of file MortarNodalFrames.h.
Referenced by normal().
|
private |
Definition at line 126 of file MortarNodalFrames.h.
|
private |
Definition at line 127 of file MortarNodalFrames.h.
Referenced by clear(), and tangents().