OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
olb::utilities::dimensions::convert< 3 > Struct Reference

#include <dimensionConverter.h>

+ Collaboration diagram for olb::utilities::dimensions::convert< 3 >:

Public Types

template<typename T >
using surfaceType = SmoothIndicatorF3D<T,T,true>
 

Static Public Member Functions

template<typename T >
static constexpr Vector< T, rotationserialize_rotation (Vector< T, rotation > angle)
 

Static Public Attributes

static constexpr const unsigned int rotation = 3
 
static constexpr const unsigned int matrix = 9
 
static constexpr const unsigned short directNeighborsCount = 6
 
static constexpr const short directNeighborDirections [directNeighborsCount][3]
 
static constexpr const unsigned short neighborsCount = 26
 
static constexpr const short neighborDirections [neighborsCount][3]
 
template<typename T >
static constexpr const T normalizedNeighborDirections [neighborsCount][3]
 

Detailed Description

Definition at line 91 of file dimensionConverter.h.

Member Typedef Documentation

◆ surfaceType

template<typename T >
using olb::utilities::dimensions::convert< 3 >::surfaceType = SmoothIndicatorF3D<T,T,true>

Definition at line 143 of file dimensionConverter.h.

Member Function Documentation

◆ serialize_rotation()

template<typename T >
static constexpr Vector< T, rotation > olb::utilities::dimensions::convert< 3 >::serialize_rotation ( Vector< T, rotation > angle)
inlinestaticconstexpr

Definition at line 147 of file dimensionConverter.h.

148 {
149 return angle;
150 }

Member Data Documentation

◆ directNeighborDirections

constexpr const short olb::utilities::dimensions::convert< 3 >::directNeighborDirections[directNeighborsCount][3]
staticconstexpr
Initial value:
= {
{-1, 0, 0}, {0,-1, 0},
{ 0, 0,-1}, {1, 0, 0},
{ 0, 1, 0}, {0, 0, 1}
}

Definition at line 110 of file dimensionConverter.h.

110 {
111 {-1, 0, 0}, {0,-1, 0},
112 { 0, 0,-1}, {1, 0, 0},
113 { 0, 1, 0}, {0, 0, 1}
114 };

◆ directNeighborsCount

constexpr const unsigned short olb::utilities::dimensions::convert< 3 >::directNeighborsCount = 6
staticconstexpr

Definition at line 108 of file dimensionConverter.h.

◆ matrix

constexpr const unsigned int olb::utilities::dimensions::convert< 3 >::matrix = 9
staticconstexpr

Definition at line 105 of file dimensionConverter.h.

◆ neighborDirections

constexpr const short olb::utilities::dimensions::convert< 3 >::neighborDirections[neighborsCount][3]
staticconstexpr
Initial value:
= {
{-1, 0, 0}, { 0,-1, 0}, { 0, 0,-1},
{-1,-1, 0}, {-1, 1, 0}, {-1, 0,-1},
{-1, 0, 1}, { 0,-1,-1}, { 0,-1, 1},
{-1,-1,-1}, {-1,-1, 1}, {-1, 1,-1}, {-1, 1, 1},
{ 1, 0, 0}, { 0, 1, 0}, { 0, 0, 1},
{ 1, 1, 0}, { 1,-1, 0}, { 1, 0, 1},
{ 1, 0,-1}, { 0, 1, 1}, { 0, 1,-1},
{ 1, 1, 1}, { 1, 1,-1}, { 1,-1, 1}, { 1,-1,-1}
}

Definition at line 118 of file dimensionConverter.h.

118 {
119 {-1, 0, 0}, { 0,-1, 0}, { 0, 0,-1},
120 {-1,-1, 0}, {-1, 1, 0}, {-1, 0,-1},
121 {-1, 0, 1}, { 0,-1,-1}, { 0,-1, 1},
122 {-1,-1,-1}, {-1,-1, 1}, {-1, 1,-1}, {-1, 1, 1},
123 { 1, 0, 0}, { 0, 1, 0}, { 0, 0, 1},
124 { 1, 1, 0}, { 1,-1, 0}, { 1, 0, 1},
125 { 1, 0,-1}, { 0, 1, 1}, { 0, 1,-1},
126 { 1, 1, 1}, { 1, 1,-1}, { 1,-1, 1}, { 1,-1,-1}
127 };

◆ neighborsCount

constexpr const unsigned short olb::utilities::dimensions::convert< 3 >::neighborsCount = 26
staticconstexpr

Definition at line 116 of file dimensionConverter.h.

◆ normalizedNeighborDirections

template<typename T >
constexpr const T olb::utilities::dimensions::convert< 3 >::normalizedNeighborDirections[neighborsCount][3]
staticconstexpr
Initial value:
= {
{-1, 0, 0}, { 0,-1, 0}, { 0, 0,-1},
{-1*invSqrt2<T>,-1*invSqrt2<T>, 0}, {-1*invSqrt2<T>, 1*invSqrt2<T>, 0}, {-1*invSqrt2<T>, 0,-1*invSqrt2<T>},
{-1*invSqrt2<T>, 0, 1*invSqrt2<T>}, { 0,-1*invSqrt2<T>,-1*invSqrt2<T>}, { 0,-1*invSqrt2<T>, 1*invSqrt2<T>},
{-1*invSqrt3<T>,-1*invSqrt3<T>,-1*invSqrt3<T>}, {-1*invSqrt3<T>,-1*invSqrt3<T>, 1*invSqrt3<T>}, {-1*invSqrt3<T>, 1*invSqrt3<T>,-1*invSqrt3<T>}, {-1*invSqrt3<T>, 1*invSqrt3<T>, 1*invSqrt3<T>},
{ 1, 0, 0}, { 0, 1, 0}, { 0, 0, 1},
{ 1*invSqrt2<T>, 1*invSqrt2<T>, 0}, { 1*invSqrt2<T>,-1*invSqrt2<T>, 0}, { 1*invSqrt2<T>, 0, 1*invSqrt2<T>},
{ 1*invSqrt2<T>, 0,-1*invSqrt2<T>}, { 0, 1*invSqrt2<T>, 1*invSqrt2<T>}, { 0, 1*invSqrt2<T>,-1*invSqrt2<T>},
{ 1*invSqrt3<T>, 1*invSqrt3<T>, 1*invSqrt3<T>}, { 1*invSqrt3<T>, 1*invSqrt3<T>,-1*invSqrt3<T>}, { 1*invSqrt3<T>,-1*invSqrt3<T>, 1*invSqrt3<T>}, { 1*invSqrt3<T>,-1*invSqrt3<T>,-1*invSqrt3<T>}
}

Definition at line 130 of file dimensionConverter.h.

130 {
131 {-1, 0, 0}, { 0,-1, 0}, { 0, 0,-1},
132 {-1*invSqrt2<T>,-1*invSqrt2<T>, 0}, {-1*invSqrt2<T>, 1*invSqrt2<T>, 0}, {-1*invSqrt2<T>, 0,-1*invSqrt2<T>},
133 {-1*invSqrt2<T>, 0, 1*invSqrt2<T>}, { 0,-1*invSqrt2<T>,-1*invSqrt2<T>}, { 0,-1*invSqrt2<T>, 1*invSqrt2<T>},
134 {-1*invSqrt3<T>,-1*invSqrt3<T>,-1*invSqrt3<T>}, {-1*invSqrt3<T>,-1*invSqrt3<T>, 1*invSqrt3<T>}, {-1*invSqrt3<T>, 1*invSqrt3<T>,-1*invSqrt3<T>}, {-1*invSqrt3<T>, 1*invSqrt3<T>, 1*invSqrt3<T>},
135 { 1, 0, 0}, { 0, 1, 0}, { 0, 0, 1},
136 { 1*invSqrt2<T>, 1*invSqrt2<T>, 0}, { 1*invSqrt2<T>,-1*invSqrt2<T>, 0}, { 1*invSqrt2<T>, 0, 1*invSqrt2<T>},
137 { 1*invSqrt2<T>, 0,-1*invSqrt2<T>}, { 0, 1*invSqrt2<T>, 1*invSqrt2<T>}, { 0, 1*invSqrt2<T>,-1*invSqrt2<T>},
138 { 1*invSqrt3<T>, 1*invSqrt3<T>, 1*invSqrt3<T>}, { 1*invSqrt3<T>, 1*invSqrt3<T>,-1*invSqrt3<T>}, { 1*invSqrt3<T>,-1*invSqrt3<T>, 1*invSqrt3<T>}, { 1*invSqrt3<T>,-1*invSqrt3<T>,-1*invSqrt3<T>}
139 };

◆ rotation

constexpr const unsigned int olb::utilities::dimensions::convert< 3 >::rotation = 3
staticconstexpr

Definition at line 102 of file dimensionConverter.h.


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