43 #ifdef MOOSE_KOKKOS_SCOPE 85 unsigned int var)
const 121 const Real seed)
const;
132 const unsigned int var,
133 const TagID tag)
const 151 const unsigned int var,
153 const Real seed)
const;
164 const unsigned int var,
165 const TagID tag)
const 185 const unsigned int var,
187 const Real seed)
const;
198 const unsigned int side,
199 const unsigned int qp,
200 const unsigned int var,
201 const TagID tag)
const;
214 const unsigned int side,
215 const unsigned int qp,
216 const unsigned int var,
218 const Real seed)
const;
230 const unsigned int side,
232 const unsigned int qp,
233 const unsigned int var,
234 const TagID tag)
const;
249 const unsigned int side,
251 const unsigned int qp,
252 const unsigned int var,
254 const Real seed)
const;
324 #ifdef MOOSE_KOKKOS_SCOPE 326 KOKKOS_FUNCTION
inline ADReal 337 KOKKOS_FUNCTION
inline ADReal 341 const unsigned int var,
343 const Real seed)
const 355 for (
unsigned int i = 0; i < n_dofs; ++i)
367 const unsigned int var,
369 const Real seed)
const 381 for (
unsigned int i = 0; i < n_dofs; ++i)
383 (jacobian * grad_phi(i, qp));
389 KOKKOS_FUNCTION
inline Real 391 const unsigned int side,
392 const unsigned int qp,
393 const unsigned int var,
394 const TagID tag)
const 402 for (
unsigned int i = 0; i < n_dofs; ++i)
408 KOKKOS_FUNCTION
inline ADReal 410 const unsigned int side,
411 const unsigned int qp,
412 const unsigned int var,
414 const Real seed)
const 422 for (
unsigned int i = 0; i < n_dofs; ++i)
428 KOKKOS_FUNCTION
inline Real3 430 const unsigned int side,
432 const unsigned int qp,
433 const unsigned int var,
434 const TagID tag)
const 442 for (
unsigned int i = 0; i < n_dofs; ++i)
444 (jacobian * grad_phi(i, qp));
451 const unsigned int side,
453 const unsigned int qp,
454 const unsigned int var,
456 const Real seed)
const 464 for (
unsigned int i = 0; i < n_dofs; ++i)
466 (jacobian * grad_phi(i, qp));
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.
void reinit()
Allocate the quadrature point vectors for active variable and tags and cache quadrature point values...
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.
void setupDofs()
Setup DOF data.
The Kokkos object that contains the information of an element The IDs used in Kokkos are different fr...
Array< Array< bool > > _nbc_matrix_tag_dof
Per-matrix-tag local-plus-ghost DOF masks for nodal BC coverage.
Array< dof_id_type > _local_to_global_dof_index
Map from local DOF index to global DOF index.
KOKKOS_FUNCTION const Assembly & kokkosAssembly() const
Get the const reference of the Kokkos assembly.
void setupCoupling()
Setup coupling data between variables.
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 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.
KOKKOS_FUNCTION unsigned int getFETypeID(unsigned int var) const
Get the FE type ID of a variable.
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 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...
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 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 & 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 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.
Array< Array2D< Array< Real > > > _qp_solutions
Cached elemental quadrature values and gradients.
Base class for a system (of equations)
The Kokkos base system class.
KOKKOS_FUNCTION const auto & getCoupling(unsigned int var) const
Get the list of off-diagonal coupled variable numbers of a variable.
KOKKOS_FUNCTION Real & getVectorDofValue(const dof_id_type dof, const TagID tag) const
Get the DOF value of a tagged vector.
DualNumber< Real, DNDerivativeType, false > ADReal
void setupNodalBCDofs()
Mark the DOFs covered by nodal BCs.
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.
void getNodalBCDofs(const NodalBCBase *nbc, Array< bool > &dofs)
Get the list of DOFs covered by a nodal BC.
void setupVariables()
Setup variable data.
Array< Vector > _vectors
Kokkos vectors and matrices on device.
MOOSE_KOKKOS_INDEX_TYPE ThreadID
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.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
static constexpr dof_id_type invalid_id
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...
The Kokkos FE system class.
The base class for Kokkos nodal boundary conditions.
Base class for deriving any boundary condition that works at nodes.
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< Array< unsigned int > > _coupling
Off-diagonal coupled variable numbers of each variable.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
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 ...
MakeSystemHolder(FESystem)
Array< Array2D< Array< Real3 > > > _qp_solutions_grad
Thread _thread
Kokkos thread object.
Array< unsigned int > _var_fe_types
FE type ID of each variable.
Array< Array< dof_id_type > > _local_node_dof_index
Local nodal DOF indices of each variable.
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 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 dof_id_type getNodeGlobalDofIndex(ContiguousNodeID node, unsigned int var) const
Get the global DOF index of a variable for a node.
KOKKOS_FUNCTION bool isNodalDefined(ContiguousNodeID node, unsigned int var) const
Get whether a variable is defined on a node.
FESystem(SystemBase &system)
Constructor for standalone use (pure FE simulations)
KOKKOS_FUNCTION void operator()(const ThreadID tid) const
Kokkos function for caching variable values on element quadrature points.
The Kokkos thread object that aids in converting the one-dimensional thread index into multi-dimensio...
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.