43#ifdef MOOSE_KOKKOS_SCOPE
98 unsigned int var)
const
112 unsigned int var)
const
137 const Real seed)
const;
147 const dof_id_type qp,
148 const unsigned int var,
149 const TagID tag)
const
165 const dof_id_type offset,
166 const dof_id_type qp,
167 const unsigned int var,
169 const Real seed)
const;
179 const dof_id_type qp,
180 const unsigned int var,
181 const TagID tag)
const
194 const dof_id_type qp,
195 const unsigned int var,
196 const TagID tag)
const
209 const dof_id_type qp,
210 const unsigned int var,
211 const TagID tag)
const
224 const dof_id_type qp,
225 const unsigned int var,
226 const TagID tag)
const
244 const dof_id_type offset,
245 const dof_id_type qp,
246 const unsigned int var,
248 const Real seed)
const;
259 const unsigned int side,
260 const unsigned int qp,
261 const unsigned int var,
262 const TagID tag)
const;
273 const unsigned int side,
274 const unsigned int qp,
275 const unsigned int var,
276 const TagID tag)
const;
289 const unsigned int side,
290 const unsigned int qp,
291 const unsigned int var,
293 const Real seed)
const;
305 const unsigned int side,
307 const unsigned int qp,
308 const unsigned int var,
309 const TagID tag)
const;
321 const unsigned int side,
323 const unsigned int qp,
324 const unsigned int var,
325 const TagID tag)
const;
340 const unsigned int side,
342 const unsigned int qp,
343 const unsigned int var,
345 const Real seed)
const;
426#ifdef MOOSE_KOKKOS_SCOPE
428KOKKOS_FUNCTION
inline ADReal
439KOKKOS_FUNCTION
inline ADReal
441 const dof_id_type offset,
442 const dof_id_type qp,
443 const unsigned int var,
445 const Real seed)
const
457 for (
unsigned int i = 0; i < n_dofs; ++i)
467 const dof_id_type offset,
468 const dof_id_type qp,
469 const unsigned int var,
471 const Real seed)
const
483 for (
unsigned int i = 0; i < n_dofs; ++i)
487 grad = jacobian * grad;
493KOKKOS_FUNCTION
inline Real
495 const unsigned int side,
496 const unsigned int qp,
497 const unsigned int var,
498 const TagID tag)
const
506 for (
unsigned int i = 0; i < n_dofs; ++i)
512KOKKOS_FUNCTION
inline Real3
514 const unsigned int side,
515 const unsigned int qp,
516 const unsigned int var,
517 const TagID tag)
const
525 for (
unsigned int i = 0; i < n_dofs; ++i)
531KOKKOS_FUNCTION
inline ADReal
533 const unsigned int side,
534 const unsigned int qp,
535 const unsigned int var,
537 const Real seed)
const
545 for (
unsigned int i = 0; i < n_dofs; ++i)
551KOKKOS_FUNCTION
inline Real3
553 const unsigned int side,
555 const unsigned int qp,
556 const unsigned int var,
557 const TagID tag)
const
565 for (
unsigned int i = 0; i < n_dofs; ++i)
568 grad = jacobian * grad;
573KOKKOS_FUNCTION
inline Real33
575 const unsigned int side,
577 const unsigned int qp,
578 const unsigned int var,
579 const TagID tag)
const
587 for (
unsigned int i = 0; i < n_dofs; ++i)
597 const unsigned int side,
599 const unsigned int qp,
600 const unsigned int var,
602 const Real seed)
const
610 for (
unsigned int i = 0; i < n_dofs; ++i)
613 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 field 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.
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
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 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