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

#include <dimensionConverter.h>

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

Public Types

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

Static Public Member Functions

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

Static Public Attributes

static constexpr const unsigned int rotation = 1
 
static constexpr const unsigned int matrix = 4
 
static constexpr const unsigned short directNeighborsCount = 4
 
static constexpr const short directNeighborDirections [directNeighborsCount][2]
 
static constexpr const unsigned short neighborsCount = 8
 
static constexpr const short neighborDirections [neighborsCount][2]
 
template<typename T >
static constexpr const T normalizedNeighborDirections [neighborsCount][2]
 

Detailed Description

Definition at line 45 of file dimensionConverter.h.

Member Typedef Documentation

◆ surfaceType

template<typename T >
using olb::utilities::dimensions::convert< 2 >::surfaceType = SmoothIndicatorF2D<T,T,true>

Definition at line 81 of file dimensionConverter.h.

Member Function Documentation

◆ serialize_rotation()

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

Definition at line 85 of file dimensionConverter.h.

86 {
87 return angle[0];
88 }

Member Data Documentation

◆ directNeighborDirections

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

Definition at line 61 of file dimensionConverter.h.

61 {
62 {-1, 0}, {0,-1},
63 {1, 0}, { 0, 1}
64 };

◆ directNeighborsCount

constexpr const unsigned short olb::utilities::dimensions::convert< 2 >::directNeighborsCount = 4
staticconstexpr

Definition at line 59 of file dimensionConverter.h.

◆ matrix

constexpr const unsigned int olb::utilities::dimensions::convert< 2 >::matrix = 4
staticconstexpr

Definition at line 56 of file dimensionConverter.h.

◆ neighborDirections

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

Definition at line 68 of file dimensionConverter.h.

68 {
69 {-1, 1}, {-1, 0}, {-1,-1}, { 0,-1},
70 { 1,-1}, { 1, 0}, { 1, 1}, { 0, 1}
71 };

◆ neighborsCount

constexpr const unsigned short olb::utilities::dimensions::convert< 2 >::neighborsCount = 8
staticconstexpr

Definition at line 66 of file dimensionConverter.h.

◆ normalizedNeighborDirections

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

Definition at line 74 of file dimensionConverter.h.

74 {
75 {-1*invSqrt2<T>, 1*invSqrt2<T>}, {-1, 0}, {-1*invSqrt2<T>,-1*invSqrt2<T>}, { 0,-1},
76 { 1*invSqrt2<T>,-1*invSqrt2<T>}, { 1, 0}, { 1*invSqrt2<T>, 1*invSqrt2<T>}, { 0, 1}
77 };

◆ rotation

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

Definition at line 53 of file dimensionConverter.h.


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