#include <KokkosVariableValue.h>
Definition at line 669 of file KokkosVariableValue.h.
◆ VectorVariableGradient() [1/3]
| Moose::Kokkos::VectorVariableGradient::VectorVariableGradient |
( |
| ) |
|
|
default |
◆ VectorVariableGradient() [2/3]
| Moose::Kokkos::VectorVariableGradient::VectorVariableGradient |
( |
Variable |
var | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 680 of file KokkosVariableValue.h.
681 {
683 }
Variable _var
Coupled Kokkos variable.
void checkVariable(const Variable &var, bool expect_vector, const std::string &wrapper_name)
◆ VectorVariableGradient() [3/3]
Constructor.
- Parameters
-
| var | The MOOSE variable |
| tag | The vector tag name |
Definition at line 689 of file KokkosVariableValue.h.
◆ operator bool()
| KOKKOS_FUNCTION Moose::Kokkos::VectorVariableGradient::operator bool |
( |
| ) |
const |
|
inline |
Get whether the variable was coupled.
- Returns
- Whether the variable was coupled
Definition at line 700 of file KokkosVariableValue.h.
KOKKOS_FUNCTION bool coupled() const
Get whether the variable is coupled.
◆ operator()()
| KOKKOS_FUNCTION Real33 Moose::Kokkos::VectorVariableGradient::operator() |
( |
AssemblyDatum & |
datum, |
|
|
unsigned int |
qp, |
|
|
unsigned int |
comp = 0 |
|
) |
| const |
|
inline |
Get the current vector variable gradient.
- Parameters
-
| datum | The AssemblyDatum object of the current thread |
| qp | The local quadrature point index |
- Returns
- The vector variable gradient
Definition at line 830 of file KokkosVariableValue.h.
831{
833
834 Real33 grad = 0;
835
837 {
838 KOKKOS_ASSERT(!datum.
isNodal());
839
840 auto & elem = datum.
elem();
841 auto side = datum.
side();
845
847 grad = sys.getVectorQpVectorGrad(elem, datum.
qpOffset() + qp, var, tag);
848 else
849 grad = sys.getVectorQpVectorGradFace(elem, side, datum.
J(qp), qp, var, tag);
850 }
851
852 return grad;
853}
KOKKOS_FUNCTION const FESystem & system(unsigned int sys) const
Get the Kokkos system.
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...
KOKKOS_FUNCTION dof_id_type qpOffset() const
Get the starting offset into the global quadrature point index.
KOKKOS_FUNCTION bool isNodal() const
Get whether the current datum is on a node.
KOKKOS_FUNCTION unsigned int side() const
Get the side index.
KOKKOS_FUNCTION const ElementInfo & elem() const
Get the element information object.
KOKKOS_FUNCTION unsigned int var(unsigned int comp=0) const
Get the variable number of a component.
KOKKOS_FUNCTION TagID tag() const
Get the vector tag ID.
KOKKOS_FUNCTION bool initialized() const
Get whether the variable is initialized.
KOKKOS_FUNCTION unsigned int sys(unsigned int comp=0) const
Get the system number of a component.
const unsigned int invalid_uint
◆ variable()
| KOKKOS_FUNCTION const Variable & Moose::Kokkos::VectorVariableGradient::variable |
( |
| ) |
const |
|
inline |
◆ _var
| Variable Moose::Kokkos::VectorVariableGradient::_var |
|
private |
The documentation for this class was generated from the following file: