https://mooseframework.inl.gov
Public Member Functions | List of all members
Moose::Kokkos::VariablePhiGradient Class Reference

#include <KokkosVariableValue.h>

Public Member Functions

KOKKOS_FUNCTION Real3 operator() (ResidualDatum &datum, unsigned int i, unsigned int qp) const
 Get the gradient of the current shape function. More...
 

Detailed Description

Definition at line 47 of file KokkosVariableValue.h.

Member Function Documentation

◆ operator()()

KOKKOS_FUNCTION Real3 Moose::Kokkos::VariablePhiGradient::operator() ( ResidualDatum datum,
unsigned int  i,
unsigned int  qp 
) const
inline

Get the gradient of the current shape function.

Parameters
datumThe ResidualDatum object of the current thread
iThe element-local DOF index
qpThe local quadrature point index
Returns
The gradient of the shape function

Definition at line 57 of file KokkosVariableValue.h.

58  {
59  auto & elem = datum.elem();
60  auto side = datum.side();
61  auto fe = datum.jfe();
62 
63  return datum.J(qp) *
64  (side == libMesh::invalid_uint
65  ? datum.assembly().getGradPhi(elem.subdomain, elem.type, fe)(i, qp)
66  : datum.assembly().getGradPhiFace(elem.subdomain, elem.type, fe)(side)(i, qp));
67  }
const unsigned int invalid_uint
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 const Real33 & J(const unsigned int qp)
Get the inverse of Jacobian matrix | dxi/dx deta/dx dzeta/dx | | dxi/dy deta/dy dzeta/dy | | dxi/dz d...
Definition: KokkosDatum.h:115
KOKKOS_FUNCTION unsigned int side() const
Get the side index.
Definition: KokkosDatum.h:90
KOKKOS_FUNCTION const Assembly & assembly() const
Get the Kokkos assembly.
Definition: KokkosDatum.h:68
KOKKOS_FUNCTION const ElementInfo & elem() const
Get the element information object.
Definition: KokkosDatum.h:80
KOKKOS_FUNCTION unsigned int jfe() const
Get the coupled variable FE type ID.
Definition: KokkosDatum.h:317

The documentation for this class was generated from the following file: