OpenLB 1.8.1
Loading...
Searching...
No Matches
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 80 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 84 of file dimensionConverter.h.

85 {
86 return angle[0];
87 }

Member Data Documentation

◆ directNeighborDirections

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

Definition at line 60 of file dimensionConverter.h.

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

◆ directNeighborsCount

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

Definition at line 58 of file dimensionConverter.h.

◆ matrix

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

Definition at line 55 of file dimensionConverter.h.

◆ neighborDirections

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 67 of file dimensionConverter.h.

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

◆ neighborsCount

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

Definition at line 65 of file dimensionConverter.h.

◆ normalizedNeighborDirections

template<typename T >
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 73 of file dimensionConverter.h.

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

◆ rotation

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

Definition at line 52 of file dimensionConverter.h.


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