OpenLB 1.7
|
Parametrization of a hyperplane lattice (i.e. a line lattice). More...
#include <hyperplaneLattice2D.h>
Public Member Functions | |
HyperplaneLattice2D (CuboidGeometry2D< T > &geometry, Hyperplane2D< T > hyperplane) | |
Constructor for automatic discretization. | |
HyperplaneLattice2D (CuboidGeometry2D< T > &geometry, Hyperplane2D< T > hyperplane, int resolution) | |
Constructor for discretization of a given resolution. | |
HyperplaneLattice2D (CuboidGeometry2D< T > &geometry, Hyperplane2D< T > hyperplane, T h) | |
Constructor for discretization of a given grid width. | |
HyperplaneLattice2D (const HyperplaneLattice2D &)=default | |
const Hyperplane2D< T > & | getHyperplane () const |
Vector< T, 2 > | getPhysR (const int &n) const |
Transform 1d lattice coordinates to their physical 2d location. | |
int | getN () const |
T | getPhysSpacing () const |
Vector< T, 2 > | getPhysOrigin () const |
Vector< T, 2 > | getVectorU () const |
Protected Attributes | |
const Hyperplane2D< T > | _hyperplane |
Vector< T, 2 > | _origin |
Origin vector of the lattice. | |
Vector< T, 2 > | _u |
Direction vector of the lattice, normalized to grid width _h. | |
T | _h |
Distance between discrete lattice points. | |
int | _n |
Number of lattice points in the direction of _u. | |
Parametrization of a hyperplane lattice (i.e. a line lattice).
This class provides a common interface for describing how to discretize the intersection of a hyperplane given by Hyperplane2D<T> and the mother cuboid of CuboidGeometry2D<T>.
Definition at line 39 of file hyperplaneLattice2D.h.
olb::HyperplaneLattice2D< T >::HyperplaneLattice2D | ( | CuboidGeometry2D< T > & | geometry, |
Hyperplane2D< T > | hyperplane ) |
Constructor for automatic discretization.
i.e. the grid width is set to CuboidGeometry2D<T>::getMinDeltaR.
Definition at line 103 of file hyperplaneLattice2D.hh.
References olb::HyperplaneLattice2D< T >::_h, olb::HyperplaneLattice2D< T >::_u, and olb::normalize().
olb::HyperplaneLattice2D< T >::HyperplaneLattice2D | ( | CuboidGeometry2D< T > & | geometry, |
Hyperplane2D< T > | hyperplane, | ||
int | resolution ) |
Constructor for discretization of a given resolution.
Definition at line 119 of file hyperplaneLattice2D.hh.
References olb::HyperplaneLattice2D< T >::_h, olb::HyperplaneLattice2D< T >::_u, and olb::normalize().
olb::HyperplaneLattice2D< T >::HyperplaneLattice2D | ( | CuboidGeometry2D< T > & | geometry, |
Hyperplane2D< T > | hyperplane, | ||
T | h ) |
Constructor for discretization of a given grid width.
Definition at line 139 of file hyperplaneLattice2D.hh.
References olb::HyperplaneLattice2D< T >::_h, olb::HyperplaneLattice2D< T >::_u, olb::util::nearZero(), and olb::normalize().
|
default |
const Hyperplane2D< T > & olb::HyperplaneLattice2D< T >::getHyperplane | ( | ) | const |
int olb::HyperplaneLattice2D< T >::getN | ( | ) | const |
Definition at line 174 of file hyperplaneLattice2D.hh.
Vector< T, 2 > olb::HyperplaneLattice2D< T >::getPhysOrigin | ( | ) | const |
Vector< T, 2 > olb::HyperplaneLattice2D< T >::getPhysR | ( | const int & | n | ) | const |
T olb::HyperplaneLattice2D< T >::getPhysSpacing | ( | ) | const |
Definition at line 180 of file hyperplaneLattice2D.hh.
Vector< T, 2 > olb::HyperplaneLattice2D< T >::getVectorU | ( | ) | const |
|
protected |
Distance between discrete lattice points.
Definition at line 64 of file hyperplaneLattice2D.h.
|
protected |
Definition at line 51 of file hyperplaneLattice2D.h.
|
protected |
Number of lattice points in the direction of _u.
Definition at line 66 of file hyperplaneLattice2D.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 Hyperplane2D<T> origin vector in the general case.
Definition at line 59 of file hyperplaneLattice2D.h.
|
protected |
Direction vector of the lattice, normalized to grid width _h.
Definition at line 61 of file hyperplaneLattice2D.h.