24#ifndef HYPERPLANE_LATTICE_2D_H
25#define HYPERPLANE_LATTICE_2D_H
44 int computeMaxLatticeDistance()
const;
46 void constructCuboid(
int maxLatticeDistance);
48 void setToResolution(
int resolution);
A cuboid structure represents the grid of a considered domain.
Parametrization of a hyperplane lattice (i.e. a line lattice).
HyperplaneLattice2D(CuboidGeometry2D< T > &geometry, Hyperplane2D< T > hyperplane)
Constructor for automatic discretization.
const Hyperplane2D< T > _hyperplane
Vector< T, 2 > _origin
Origin vector of the lattice.
int _n
Number of lattice points in the direction of _u.
Vector< T, 2 > getPhysR(const int &n) const
Transform 1d lattice coordinates to their physical 2d location.
T _h
Distance between discrete lattice points.
const Hyperplane2D< T > & getHyperplane() const
Vector< T, 2 > getPhysOrigin() const
HyperplaneLattice2D(const HyperplaneLattice2D &)=default
Vector< T, 2 > getVectorU() const
Vector< T, 2 > _u
Direction vector of the lattice, normalized to grid width _h.
The description of a vector of 2D cuboid – header file.
Top level namespace for all of OpenLB.
Definition of a analytical line embedded in 2D space.
efficient implementation of a vector class