15#include "libmesh/vector_value.h"
16#include "libmesh/point.h"
20#include <unordered_map>
64 const std::array<const MooseVariable *, 3> & disp_vars,
65 const std::array<std::string, 3> & param_names,
79 explicit ADNodalFrames(
const std::array<const MooseVariable *, 3> & disp_vars)
93 const Point & stored_normal,
102 const Point & stored_normal,
103 bool do_derivatives);
117 const Elem & secondary_elem,
118 const std::vector<Point> & xi_pts,
119 const std::vector<Point> & stored_normals,
120 bool do_derivatives);
126 std::unordered_map<const Node *, ADRealVectorValue>
_normals;
127 std::unordered_map<const Node *, std::array<ADRealVectorValue, 2>>
_tangents;
MooseVariableFE< Real > MooseVariable
This class is a container/interface for the objects involved in automatic generation of mortar spaces...
Base class for everything in MOOSE with a name and a type.
Class for stuff related to variables.
Cache of the secondary nodal normals and tangents of one mortar interface, carrying their displacemen...
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 AutomaticMorta...
std::unordered_map< const Node *, ADRealVectorValue > _normals
const std::array< const MooseVariable *, 3 > _disp_vars
const std::array< ADRealVectorValue, 2 > & tangents(const AutomaticMortarGeneration &amg, const Node &node, const Point &stored_normal, bool do_derivatives)
ADNodalFrames(const std::array< const MooseVariable *, 3 > &disp_vars)
std::unordered_map< const Node *, std::array< ADRealVectorValue, 2 > > _tangents
const ADRealVectorValue & normal(const AutomaticMortarGeneration &amg, const Node &node, const Point &stored_normal, bool do_derivatives)
Base class for a system (of equations)
ADPoint nodalCoordinate(const Node &node, const std::array< const MooseVariable *, 3 > &disp_vars)
void checkNodalNormalDisplacements(const MooseBase &object, const std::array< const MooseVariable *, 3 > &disp_vars, const std::array< std::string, 3 > ¶m_names, const SystemBase &sys)
Error unless supportsNodalNormalDerivatives() holds.
bool supportsNodalNormalDerivatives(const std::array< const MooseVariable *, 3 > &disp_vars, const SystemBase &sys)
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...