|
NeoN
A framework for CFD software
|
A class for the representation of a symmetric 3x3 tensor. More...
#include <symmTensor.hpp>
Public Member Functions | |
| KOKKOS_INLINE_FUNCTION | SymmTensor () |
| KOKKOS_INLINE_FUNCTION | SymmTensor (const scalar diag) |
| Construct scalar-times-identity symmetric tensor. | |
| KOKKOS_INLINE_FUNCTION | SymmTensor (scalar xx, scalar xy, scalar xz, scalar yy, scalar yz, scalar zz) |
| KOKKOS_INLINE_FUNCTION scalar * | data () |
| KOKKOS_INLINE_FUNCTION const scalar * | data () const |
| KOKKOS_INLINE_FUNCTION constexpr size_t | size () const |
| KOKKOS_INLINE_FUNCTION scalar | operator() (const size_t i, const size_t j) const |
| Component access — maps (i,j) to the stored upper-triangle. | |
| KOKKOS_INLINE_FUNCTION scalar & | operator() (const size_t i, const size_t j) |
| KOKKOS_INLINE_FUNCTION bool | operator== (const SymmTensor &rhs) const |
| KOKKOS_INLINE_FUNCTION SymmTensor | operator+ (const SymmTensor &rhs) const |
| KOKKOS_INLINE_FUNCTION SymmTensor & | operator+= (const SymmTensor &rhs) |
| KOKKOS_INLINE_FUNCTION SymmTensor | operator- (const SymmTensor &rhs) const |
| KOKKOS_INLINE_FUNCTION SymmTensor & | operator-= (const SymmTensor &rhs) |
| KOKKOS_INLINE_FUNCTION SymmTensor | operator* (const scalar s) const |
| KOKKOS_INLINE_FUNCTION SymmTensor & | operator*= (const scalar s) |
| KOKKOS_INLINE_FUNCTION scalar | trace () const |
| Trace: xx + yy + zz. | |
| KOKKOS_INLINE_FUNCTION SymmTensor | dev () const |
| Deviatoric part: S - (1/3)*tr(S)*I. | |
| KOKKOS_INLINE_FUNCTION SymmTensor | dev2 () const |
| dev2: S - (2/3)*tr(S)*I (used in viscous stress) | |
A class for the representation of a symmetric 3x3 tensor.
Upper-triangle storage order: [xx, xy, xz, yy, yz, zz] i.e. data_[0]=xx, data_[1]=xy, data_[2]=xz, data_[3]=yy, data_[4]=yz, data_[5]=zz.
Definition at line 27 of file symmTensor.hpp.
|
inline |
Definition at line 32 of file symmTensor.hpp.
|
inlineexplicit |
Construct scalar-times-identity symmetric tensor.
Definition at line 42 of file symmTensor.hpp.
|
inline |
Definition at line 53 of file symmTensor.hpp.
|
inline |
Definition at line 63 of file symmTensor.hpp.
|
inline |
Definition at line 64 of file symmTensor.hpp.
|
inline |
Deviatoric part: S - (1/3)*tr(S)*I.
Definition at line 164 of file symmTensor.hpp.
|
inline |
dev2: S - (2/3)*tr(S)*I (used in viscous stress)
Definition at line 174 of file symmTensor.hpp.
|
inline |
Definition at line 79 of file symmTensor.hpp.
|
inline |
Component access — maps (i,j) to the stored upper-triangle.
Definition at line 70 of file symmTensor.hpp.
|
inline |
Definition at line 138 of file symmTensor.hpp.
|
inline |
Definition at line 149 of file symmTensor.hpp.
|
inline |
Definition at line 96 of file symmTensor.hpp.
|
inline |
Definition at line 107 of file symmTensor.hpp.
|
inline |
Definition at line 117 of file symmTensor.hpp.
|
inline |
Definition at line 128 of file symmTensor.hpp.
|
inline |
Definition at line 86 of file symmTensor.hpp.
|
inlineconstexpr |
Definition at line 66 of file symmTensor.hpp.
|
inline |
Trace: xx + yy + zz.
Definition at line 160 of file symmTensor.hpp.