25#ifndef INDICATOR_F_2D_H
26#define INDICATOR_F_2D_H
63 bool operator() (
bool output[],
const S input[])
override;
81 bool operator() (
bool output[],
const S input[])
override;
100 bool operator() (
bool output[],
const S input[])
override;
120 bool operator() (
bool output[],
const S input[])
override;
141 bool operator() (
bool output[],
const S input[])
override;
173 bool operator() (
bool output[],
const S input[])
override;
185 bool operator()(
bool output[],
const T input[])
override;
IndicatorBlockData2D(BlockData< 3, S, S > &blockData, Vector< S, 3 > extend, Vector< S, 3 > origin, S deltaR, bool invert)
S signedDistance(const Vector< S, 2 > &input) override
Returns signed distance to the nearest point on the indicator surface.
indicator function for a 2D circle
bool normal(Vector< S, 2 > &normal, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, int iC=-1) override
returns true and the normal if there was one found for an given origin and direction
IndicatorCircle2D(Vector< S, 2 > center, S radius)
S signedDistance(const Vector< S, 2 > &input) override
Returns signed distance to the nearest point on the indicator surface.
S const getRadius() const
bool distance(S &distance, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, int iC=-1) override
bool operator()(bool output[], const S input[]) override
has to be implemented for 'every' derived class
Vector< S, 2 > const & getCenter() const
indicator function for a 2D-cuboid, parallel to the planes x=0, y=0; theta rotates cuboid around its ...
bool operator()(bool output[], const S input[]) override
returns true if input is inside, otherwise false
S const getxLength() const
S const getyLength() const
Vector< S, 2 > const & getCenter() const
IndicatorCuboid2D(Vector< S, 2 > extend, Vector< S, 2 > origin, S theta=0)
constructs an cuboid with x axis dimension 0 to extend[0], ...
S signedDistance(const Vector< S, 2 > &input) override
Returns signed distance to the nearest point on the indicator surface.
indicator function for a 2D equilateral triangle
S const getRadius() const
Vector< S, 2 > const & getCenter() const
S signedDistance(const Vector< S, 2 > &input) override
Returns signed distance to the nearest point on the indicator surface.
bool operator()(bool output[], const S input[]) override
has to be implemented for 'every' derived class
Vector< S, 2 > const & getVertexA() const
IndicatorEquiTriangle2D(Vector< S, 2 > center, S radius)
Vector< S, 2 > const & getVertexB() const
Vector< S, 2 > const & getVertexC() const
IndicatorF2D is an application from .
indicator function for a 2D-cuboid, parallel to the planes x=0, y=0; theta rotates cuboid around its ...
bool operator()(bool output[], const S input[]) override
has to be implemented for 'every' derived class
IndicatorF2DfromIndicatorF3D(IndicatorF3D< S > &indicator3D)
IndicatorF3D is an application from .
Indicator function creating an layer around an input indicator (for positive layerSize) or reducing t...
bool operator()(bool output[], const S input[]) override
has to be implemented for 'every' derived class
IndicatorLayer2D(IndicatorF2D< S > &indicatorF, S layerSize)
IndicatorSDF2D(std::function< T(Vector< T, 2 >)> f)
bool operator()(bool output[], const T input[]) override
indicator function for a 2D triangle
bool operator()(bool output[], const S input[]) override
has to be implemented for 'every' derived class
Vector< S, 2 > const & getVertexC() const
IndicatorTriangle2D(Vector< S, 2 > a, Vector< S, 2 > b, Vector< S, 2 > c)
Vector< S, 2 > const & getVertexA() const
Vector< S, 2 > const & getVertexB() const
S signedDistance(const Vector< S, 2 > &input) override
Returns signed distance to the nearest point on the indicator surface.
Top level namespace for all of OpenLB.
IndicatorCuboid2D< S > * createIndicatorCuboid2D(XMLreader const ¶ms, bool verbose=false)
IndicatorCircle2D< S > * createIndicatorCircle2D(XMLreader const ¶ms, bool verbose=false)
Unit conversion handling – header file.
Input/Output in XML format – header file.