OpenLB 1.7
|
Parametrization of a hyperplane lattice. More...
#include <hyperplaneLattice3D.h>
Public Member Functions | |
HyperplaneLattice3D (CuboidGeometry3D< T > &geometry, Hyperplane3D< T > hyperplane) | |
Constructor for automatic discretization. | |
HyperplaneLattice3D (CuboidGeometry3D< T > &geometry, Hyperplane3D< T > hyperplane, int resolution) | |
Constructor for discretization of a given resolution. | |
HyperplaneLattice3D (CuboidGeometry3D< T > &geometry, Hyperplane3D< T > hyperplane, T h) | |
Constructor for discretization of a given grid width. | |
HyperplaneLattice3D (Hyperplane3D< T > hyperplane, T h, int nx, int ny) | |
Constructor for manual discretization. | |
HyperplaneLattice3D (const HyperplaneLattice3D &)=default | |
const Hyperplane3D< T > & | getHyperplane () const |
Vector< T, 3 > | getPhysR (const int &planeX, const int &planeY) const |
Transform 2d lattice coordinates to their physical 3d location. | |
int | getNx () const |
int | getNy () const |
T | getPhysSpacing () const |
Vector< T, 3 > | getPhysOrigin () const |
Vector< T, 3 > | getVectorU () const |
Vector< T, 3 > | getVectorV () const |
Protected Attributes | |
const Hyperplane3D< T > | _hyperplane |
Vector< T, 3 > | _origin |
Origin vector of the lattice. | |
Vector< T, 3 > | _u |
Span vector of the lattice, normalized to grid width _h. | |
Vector< T, 3 > | _v |
Span vector of the lattice, normalized to grid width _h. | |
T | _h |
Distance between discrete lattice points. | |
int | _nx |
Number of lattice points in the direction of _u. | |
int | _ny |
Number of lattice points in the direction of _v. | |
Parametrization of a hyperplane lattice.
i.e. the resolution / grid width of the discretization of a given hyperplane.
This class provides a common interface for describing how to discretize the intersection of a hyperplane given by Hyperplane3D<T> and the mother cuboid of CuboidGeometry3D<T>.
Definition at line 41 of file hyperplaneLattice3D.h.
olb::HyperplaneLattice3D< T >::HyperplaneLattice3D | ( | CuboidGeometry3D< T > & | geometry, |
Hyperplane3D< T > | hyperplane ) |
Constructor for automatic discretization.
i.e. the grid width is set to CuboidGeometry3D<T>::getMinDeltaR.
Definition at line 173 of file hyperplaneLattice3D.hh.
References olb::HyperplaneLattice3D< T >::_h, olb::HyperplaneLattice3D< T >::_u, olb::HyperplaneLattice3D< T >::_v, olb::CuboidGeometry3D< T >::getMotherCuboid(), and olb::normalize().
olb::HyperplaneLattice3D< T >::HyperplaneLattice3D | ( | CuboidGeometry3D< T > & | geometry, |
Hyperplane3D< T > | hyperplane, | ||
int | resolution ) |
Constructor for discretization of a given resolution.
Definition at line 190 of file hyperplaneLattice3D.hh.
References olb::HyperplaneLattice3D< T >::_h, olb::HyperplaneLattice3D< T >::_u, olb::HyperplaneLattice3D< T >::_v, olb::CuboidGeometry3D< T >::getMotherCuboid(), and olb::normalize().
olb::HyperplaneLattice3D< T >::HyperplaneLattice3D | ( | CuboidGeometry3D< T > & | geometry, |
Hyperplane3D< T > | hyperplane, | ||
T | h ) |
Constructor for discretization of a given grid width.
Definition at line 211 of file hyperplaneLattice3D.hh.
References olb::HyperplaneLattice3D< T >::_h, olb::HyperplaneLattice3D< T >::_u, olb::HyperplaneLattice3D< T >::_v, olb::CuboidGeometry3D< T >::getMinDeltaR(), olb::CuboidGeometry3D< T >::getMotherCuboid(), olb::util::nearZero(), and olb::normalize().
olb::HyperplaneLattice3D< T >::HyperplaneLattice3D | ( | Hyperplane3D< T > | hyperplane, |
T | h, | ||
int | nx, | ||
int | ny ) |
Constructor for manual discretization.
hyperplane | Hyperplane in 3D space |
h | lattice point spacing |
nx | X axis resolution |
ny | Y axis resolution |
Definition at line 232 of file hyperplaneLattice3D.hh.
References olb::HyperplaneLattice3D< T >::_h, olb::HyperplaneLattice3D< T >::_u, olb::HyperplaneLattice3D< T >::_v, and olb::normalize().
|
default |
const Hyperplane3D< T > & olb::HyperplaneLattice3D< T >::getHyperplane | ( | ) | const |
int olb::HyperplaneLattice3D< T >::getNx | ( | ) | const |
int olb::HyperplaneLattice3D< T >::getNy | ( | ) | const |
Vector< T, 3 > olb::HyperplaneLattice3D< T >::getPhysOrigin | ( | ) | const |
Vector< T, 3 > olb::HyperplaneLattice3D< T >::getPhysR | ( | const int & | planeX, |
const int & | planeY ) const |
Transform 2d lattice coordinates to their physical 3d location.
Definition at line 254 of file hyperplaneLattice3D.hh.
T olb::HyperplaneLattice3D< T >::getPhysSpacing | ( | ) | const |
Definition at line 276 of file hyperplaneLattice3D.hh.
Vector< T, 3 > olb::HyperplaneLattice3D< T >::getVectorU | ( | ) | const |
Vector< T, 3 > olb::HyperplaneLattice3D< T >::getVectorV | ( | ) | const |
|
protected |
Distance between discrete lattice points.
Definition at line 66 of file hyperplaneLattice3D.h.
|
protected |
Definition at line 51 of file hyperplaneLattice3D.h.
|
protected |
Number of lattice points in the direction of _u.
Definition at line 68 of file hyperplaneLattice3D.h.
|
protected |
Number of lattice points in the direction of _v.
Definition at line 70 of file hyperplaneLattice3D.h.
|
protected |
Origin vector of the lattice.
Note that this origin is set to a outermost point of the intersection between cuboid geometry and hyperplane. Thus it is different from the Hyperplane3D<T> origin vector in the general case.
Definition at line 59 of file hyperplaneLattice3D.h.
|
protected |
Span vector of the lattice, normalized to grid width _h.
Definition at line 61 of file hyperplaneLattice3D.h.
|
protected |
Span vector of the lattice, normalized to grid width _h.
Definition at line 63 of file hyperplaneLattice3D.h.