43#ifdef MOOSE_KOKKOS_SCOPE
109 unsigned int var)
const
123 unsigned int var)
const
148 const Real seed)
const;
158 const dof_id_type qp,
159 const unsigned int var,
160 const TagID tag)
const
176 const dof_id_type offset,
177 const dof_id_type qp,
178 const unsigned int var,
180 const Real seed)
const;
190 const dof_id_type qp,
191 const unsigned int var,
192 const TagID tag)
const
205 const dof_id_type qp,
206 const unsigned int var,
207 const TagID tag)
const
220 const dof_id_type qp,
221 const unsigned int var,
222 const TagID tag)
const
235 const dof_id_type qp,
236 const unsigned int var,
237 const TagID tag)
const
255 const dof_id_type offset,
256 const dof_id_type qp,
257 const unsigned int var,
259 const Real seed)
const;
270 const unsigned int side,
271 const unsigned int qp,
272 const unsigned int var,
273 const TagID tag)
const;
284 const unsigned int side,
285 const unsigned int qp,
286 const unsigned int var,
287 const TagID tag)
const;
300 const unsigned int side,
301 const unsigned int qp,
302 const unsigned int var,
304 const Real seed)
const;
316 const unsigned int side,
318 const unsigned int qp,
319 const unsigned int var,
320 const TagID tag)
const;
332 const unsigned int side,
334 const unsigned int qp,
335 const unsigned int var,
336 const TagID tag)
const;
351 const unsigned int side,
353 const unsigned int qp,
354 const unsigned int var,
356 const Real seed)
const;
442#ifdef MOOSE_KOKKOS_SCOPE
444KOKKOS_FUNCTION
inline ADReal
450 value.derivatives().insert(dof) = seed;
455KOKKOS_FUNCTION
inline ADReal
457 const dof_id_type offset,
458 const dof_id_type qp,
459 const unsigned int var,
461 const Real seed)
const
473 for (
unsigned int i = 0; i < n_dofs; ++i)
483 const dof_id_type offset,
484 const dof_id_type qp,
485 const unsigned int var,
487 const Real seed)
const
499 for (
unsigned int i = 0; i < n_dofs; ++i)
503 grad = jacobian * grad;
509KOKKOS_FUNCTION
inline Real
511 const unsigned int side,
512 const unsigned int qp,
513 const unsigned int var,
514 const TagID tag)
const
522 for (
unsigned int i = 0; i < n_dofs; ++i)
528KOKKOS_FUNCTION
inline Real3
530 const unsigned int side,
531 const unsigned int qp,
532 const unsigned int var,
533 const TagID tag)
const
541 for (
unsigned int i = 0; i < n_dofs; ++i)
547KOKKOS_FUNCTION
inline ADReal
549 const unsigned int side,
550 const unsigned int qp,
551 const unsigned int var,
553 const Real seed)
const
561 for (
unsigned int i = 0; i < n_dofs; ++i)
567KOKKOS_FUNCTION
inline Real3
569 const unsigned int side,
571 const unsigned int qp,
572 const unsigned int var,
573 const TagID tag)
const
581 for (
unsigned int i = 0; i < n_dofs; ++i)
584 grad = jacobian * grad;
589KOKKOS_FUNCTION
inline Real33
591 const unsigned int side,
593 const unsigned int qp,
594 const unsigned int var,
595 const TagID tag)
const
603 for (
unsigned int i = 0; i < n_dofs; ++i)
613 const unsigned int side,
615 const unsigned int qp,
616 const unsigned int var,
618 const Real seed)
const
626 for (
unsigned int i = 0; i < n_dofs; ++i)
629 grad = jacobian * grad;
dof_id_type ContiguousNodeID
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
The Kokkos interface that holds the host reference of the Kokkos assembly and copies it to device dur...
KOKKOS_FUNCTION const Assembly & kokkosAssembly() const
Get the const reference of the Kokkos assembly.
KOKKOS_FUNCTION const auto & getVectorPhiFace(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the face vector shape functions of a FE type for an element type and subdomain.
KOKKOS_FUNCTION const auto & getPhiFace(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the face shape functions of a FE type for an element type and subdomain.
KOKKOS_FUNCTION unsigned int getNumDofs(unsigned int elem_type, unsigned int fe_type) const
Get the number of DOFs of a FE type for an element type.
KOKKOS_FUNCTION const auto & getGradPhi(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the gradient of shape functions of a FE type for an element type and subdomain.
KOKKOS_FUNCTION const auto & getGradPhiFace(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the gradient of face shape functions of a FE type for an element type and subdomain.
KOKKOS_FUNCTION const auto & getVectorGradPhiFace(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the gradient of face vector shape functions of a FE type for an element type and subdomain.
KOKKOS_FUNCTION const auto & getPhi(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the shape functions of a FE type for an element type and subdomain.
The Kokkos FE system class.
KOKKOS_FUNCTION Real getVectorQpValueFace(const ElementInfo info, const unsigned int side, const unsigned int qp, const unsigned int var, const TagID tag) const
Get the face quadrature point value of a variable from a tagged vector.
Array< Array2D< Array< Real > > > _qp_solutions
Cached elemental quadrature values and gradients.
void setupNodalBCDofs()
Mark the DOFs covered by nodal BCs.
void setupVariables()
Setup variable data.
KOKKOS_FUNCTION ADReal getVectorQpADValueFace(const ElementInfo info, const unsigned int side, const unsigned int qp, const unsigned int var, const TagID tag, const Real seed) const
Get the face quadrature point value of a variable from a tagged vector for automatic differentiation ...
KOKKOS_FUNCTION Real3 getVectorQpVectorValueFace(const ElementInfo info, const unsigned int side, const unsigned int qp, const unsigned int var, const TagID tag) const
Get the face quadrature point value of a vector variable from a tagged vector.
Array< bool > _var_is_vector
Whether each variable is vector-valued.
KOKKOS_FUNCTION ADReal3 getVectorQpADGrad(const ElementInfo info, const Real33 jacobian, const dof_id_type offset, const dof_id_type qp, const unsigned int var, const TagID tag, const Real seed) const
Get the quadrature point gradient of a variable from a tagged vector for automatic differentiation (A...
Array< Array< dof_id_type > > _local_node_dof_index
Local nodal DOF indices of each variable.
KOKKOS_FUNCTION const Array< unsigned int > & getFieldCoupling(unsigned int var) const
Get the list of off-diagonal coupled variable numbers of a variable.
FESystem(System &base, SystemBase &system)
Constructor for mixed FE+FV simulations, sharing device memory with an existing System.
void getNodalBCDofs(const NodalBCBase *nbc, Array< bool > &dofs)
Get the list of DOFs covered by a nodal BC.
JaggedArray< Pair< dof_id_type, Real >, 1, 1 > _local_constraints
Constraining DOFs and weights of each constrained local or ghost DOF.
Thread _thread
Kokkos thread object.
KOKKOS_FUNCTION Real3 getVectorQpGradFace(const ElementInfo info, const unsigned int side, const Real33 jacobian, const unsigned int qp, const unsigned int var, const TagID tag) const
Get the face quadrature point gradient of a variable from a tagged vector.
KOKKOS_FUNCTION Real3 & getVectorQpVectorCurl(const ElementInfo info, const dof_id_type qp, const unsigned int var, const TagID tag) const
Get the quadrature point curl of a vector variable from a tagged vector.
KOKKOS_FUNCTION Real33 & getVectorQpVectorGrad(const ElementInfo info, const dof_id_type qp, const unsigned int var, const TagID tag) const
Get the quadrature point gradient of a vector variable from a tagged vector.
KOKKOS_FUNCTION Real33 getVectorQpVectorGradFace(const ElementInfo info, const unsigned int side, const Real33 jacobian, const unsigned int qp, const unsigned int var, const TagID tag) const
Get the face quadrature point gradient of a vector variable from a tagged vector.
Array< Array2D< Array< Real33 > > > _qp_vector_solutions_grad
KOKKOS_FUNCTION auto getLocalConstraints(dof_id_type dof) const
Get the local-indexed constraint of a local DOF.
void setupCoupling()
Setup coupling data between variables.
Array< Array< bool > > _nbc_matrix_tag_dof
Per-matrix-tag local-plus-ghost DOF masks for nodal BC coverage.
KOKKOS_FUNCTION bool isNodalDefined(ContiguousNodeID node, unsigned int var) const
Get whether a variable is defined on a node.
Array< Array< unsigned int > > _field_coupling
Off-diagonal coupled field and scalar variable numbers of each variable.
Array< Array2D< Array< Real3 > > > _qp_vector_solutions_curl
Array< Array2D< Array< Real3 > > > _qp_vector_solutions
void setupDofs()
Setup DOF data.
KOKKOS_FUNCTION ADReal getVectorDofADValue(const dof_id_type dof, const TagID tag, const Real seed) const
Get the DOF value of a tagged vector for automatic differentiation (AD)
Array< unsigned int > _var_fe_types
FE type ID of each variable.
FESystem(SystemBase &system)
Constructor for standalone use (pure FE simulations)
KOKKOS_FUNCTION ADReal3 getVectorQpADGradFace(const ElementInfo info, const unsigned int side, const Real33 jacobian, const unsigned int qp, const unsigned int var, const TagID tag, const Real seed) const
Get the face quadrature point gradient of a variable from a tagged vector for automatic differentiati...
KOKKOS_FUNCTION dof_id_type getNodeGlobalDofIndex(ContiguousNodeID node, unsigned int i, unsigned int var) const
Get the global DOF index of a variable for a node.
KOKKOS_FUNCTION dof_id_type getNodeLocalDofIndex(ContiguousNodeID node, unsigned int i, unsigned int var) const
Get the local DOF index of a variable for a node.
KOKKOS_FUNCTION bool hasNodalBCMatrixTag(dof_id_type dof, TagID tag) const
Check whether a local DOF index is associated with a nodal BC for an extra matrix tag.
KOKKOS_FUNCTION Real3 & getVectorQpGrad(const ElementInfo info, const dof_id_type qp, const unsigned int var, const TagID tag) const
Get the quadrature point gradient of a variable from a tagged vector.
KOKKOS_FUNCTION unsigned int getFETypeID(unsigned int var) const
Get the FE type ID of a variable.
Array< Array2D< Array< Real3 > > > _qp_solutions_grad
void reinit()
Allocate the quadrature point vectors for active variable and tags and cache quadrature point values.
Array< Array< unsigned int > > _scalar_coupling
KOKKOS_FUNCTION void operator()(const ThreadID tid) const
Kokkos function for caching variable values on element quadrature points.
KOKKOS_FUNCTION const Array< unsigned int > & getScalarCoupling(unsigned int var) const
Get the list of off-diagonal coupled scalar variable numbers of a variable.
KOKKOS_FUNCTION Real3 & getVectorQpVectorValue(const ElementInfo info, const dof_id_type qp, const unsigned int var, const TagID tag) const
Get the quadrature point value of a vector variable from a tagged vector.
KOKKOS_FUNCTION ADReal getVectorQpADValue(const ElementInfo info, const dof_id_type offset, const dof_id_type qp, const unsigned int var, const TagID tag, const Real seed) const
Get the quadrature point value of a variable from a tagged vector for automatic differentiation (AD)
KOKKOS_FUNCTION Real & getVectorQpValue(const ElementInfo info, const dof_id_type qp, const unsigned int var, const TagID tag) const
Get the quadrature point value of a variable from a tagged vector.
The Kokkos jagged array class.
The base class for Kokkos nodal boundary conditions.
The Kokkos base system class.
KOKKOS_FUNCTION dof_id_type getElemLocalDofIndex(ContiguousElementID elem, unsigned int i, unsigned int var) const
Get the local DOF index of a variable for an element.
KOKKOS_FUNCTION Real & getVectorDofValue(const dof_id_type dof, const TagID tag) const
Get the DOF value of a tagged vector.
Array< dof_id_type > _local_to_global_dof_index
Map from local DOF index to global DOF index.
Array< Vector > _vectors
Kokkos vectors and matrices on device.
The Kokkos thread object that aids in converting the one-dimensional thread index into multi-dimensio...
Base class for deriving any boundary condition that works at nodes.
Base class for a system (of equations)
static constexpr dof_id_type invalid_id
MakeSystemHolder(FESystem)
MOOSE_KOKKOS_INDEX_TYPE ThreadID
DualNumber< Real, DNDerivativeType, false > ADReal
The Kokkos object that contains the information of an element The IDs used in Kokkos are different fr...
KOKKOS_INLINE_FUNCTION Real33 transpose() const