OpenLB 1.7
|
IndicatorF2D is an application from . More...
#include <indicatorBaseF2D.h>
Public Member Functions | |
virtual Vector< S, 2 > & | getMin () |
virtual Vector< S, 2 > & | getMax () |
virtual bool | distance (S &distance, const Vector< S, 2 > &origin, S precision, const Vector< S, 2 > &direction) |
returns false or true and pos. distance if there was one found for an given origin and direction | |
virtual bool | distance (S &distance, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, S precision, S pitch) |
virtual bool | distance (S &distance, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, int iC=-1) |
virtual bool | distance (S &distance, const Vector< S, 2 > &origin) |
virtual bool | distance (S &distance, const S input[]) |
virtual bool | normal (Vector< S, 2 > &normal, const Vector< S, 2 > &origin, const Vector< S, 2 > &direction, int iC=-1) |
returns true and the normal if there was one found for an given origin and direction | |
virtual bool | operator() (bool output[1], const S input[2]) |
Returns true if input is inside the indicator. | |
virtual S | signedDistance (const Vector< S, 2 > &input) |
Returns signed distance to the nearest point on the indicator surface. | |
virtual Vector< S, 2 > | surfaceNormal (const Vector< S, 2 > &pos, const S meshSize) |
Return surface normal. | |
Vector< S, 2 > | surfaceNormal (const Vector< S, 2 > &pos, const S meshSize, std::function< Vector< S, 2 >(const Vector< S, 2 > &)> transformPos) |
Return surface normal after possible translation and rotation. | |
bool | isInsideBox (Vector< S, 2 > point) |
Returns true if point is inside a cube with corners _myMin and _myMax | |
virtual bool | operator() (const S input[]) |
Indicator specific function operator overload. | |
Public Member Functions inherited from olb::GenericF< bool, S > | |
virtual | ~GenericF ()=default |
int | getSourceDim () const |
read only access to member variable _m | |
int | getTargetDim () const |
read only access to member variable _n | |
std::string & | getName () |
read and write access to name | |
std::string const & | getName () const |
read only access to name | |
virtual bool | operator() (bool output[], const S input[])=0 |
has to be implemented for 'every' derived class | |
bool | operator() (bool output[]) |
wrapper that call the pure virtual operator() (T output[], const S input[]) from above | |
bool | operator() (bool output[], S input0) |
bool | operator() (bool output[], S input0, S input1) |
bool | operator() (bool output[], S input0, S input1, S input2) |
bool | operator() (bool output[], S input0, S input1, S input2, S input3) |
Protected Member Functions | |
IndicatorF2D () | |
Protected Member Functions inherited from olb::GenericF< bool, S > | |
GenericF (int targetDim, int sourceDim) | |
Protected Attributes | |
Vector< S, 2 > | _myMin |
Vector< S, 2 > | _myMax |
Additional Inherited Members | |
Public Types inherited from olb::GenericF< bool, S > | |
using | targetType |
using | sourceType |
Public Attributes inherited from olb::GenericF< bool, S > | |
std::shared_ptr< GenericF< bool, S > > | _ptrCalcC |
memory management, frees resouces (calcClass) | |
IndicatorF2D is an application from .
_myMin | holds minimal(component wise) vector of the domain . |
_myMax | holds maximal(component wise) vector of the domain . |
Definition at line 70 of file indicatorBaseF2D.h.
|
protected |
Definition at line 64 of file indicatorBaseF2D.hh.
|
virtual |
Definition at line 120 of file indicatorBaseF2D.hh.
References olb::util::abs().
|
virtual |
Definition at line 113 of file indicatorBaseF2D.hh.
|
virtual |
Reimplemented in olb::IndicatorCircle2D< S >.
Definition at line 105 of file indicatorBaseF2D.hh.
|
virtual |
Definition at line 93 of file indicatorBaseF2D.hh.
|
virtual |
returns false or true and pos. distance if there was one found for an given origin and direction
(mind that the default computation is done by a numerical approximation which searches .. [TODO])
Definition at line 81 of file indicatorBaseF2D.hh.
References olb::util::distance().
|
virtual |
Definition at line 75 of file indicatorBaseF2D.hh.
|
virtual |
Definition at line 69 of file indicatorBaseF2D.hh.
bool olb::IndicatorF2D< S >::isInsideBox | ( | Vector< S, 2 > | point | ) |
Returns true if point
is inside a cube with corners _myMin
and _myMax
Definition at line 195 of file indicatorBaseF2D.hh.
|
virtual |
returns true and the normal if there was one found for an given origin and direction
(mind that the default computation is done by a numerical approximation which searches .. [TODO])
Reimplemented in olb::IndicatorCircle2D< S >.
Definition at line 134 of file indicatorBaseF2D.hh.
References olb::util::abs(), olb::util::cos(), olb::Vector< T, D >::data(), olb::util::degreeToRadian(), olb::norm(), and olb::util::sin().
|
virtual |
Returns true if input is inside the indicator.
Reimplemented in olb::IndicatorIdentity2D< S >.
Definition at line 239 of file indicatorBaseF2D.hh.
|
virtual |
Indicator specific function operator overload.
true
iff the input lies within the described domain. Definition at line 201 of file indicatorBaseF2D.hh.
|
virtual |
Returns signed distance to the nearest point on the indicator surface.
Reimplemented in olb::IndicatorCuboid2D< S >, olb::IndicatorCircle2D< S >, olb::IndicatorTriangle2D< S >, olb::IndicatorEquiTriangle2D< S >, olb::IndicatorBlockData2D< S >, olb::IndicPlus2D< S >, olb::IndicMinus2D< S >, olb::IndicMultiplication2D< S >, olb::IndicCalc2D< S, F >, olb::IndicCalc2D< S, util::minus >, olb::IndicCalc2D< S, util::multiplies >, and olb::IndicCalc2D< S, util::plus >.
Definition at line 215 of file indicatorBaseF2D.hh.
|
virtual |
Return surface normal.
Definition at line 223 of file indicatorBaseF2D.hh.
References olb::util::surfaceNormal().
Vector< S, 2 > olb::IndicatorF2D< S >::surfaceNormal | ( | const Vector< S, 2 > & | pos, |
const S | meshSize, | ||
std::function< Vector< S, 2 >(const Vector< S, 2 > &)> | transformPos ) |
Return surface normal after possible translation and rotation.
Definition at line 232 of file indicatorBaseF2D.hh.
|
protected |
Definition at line 74 of file indicatorBaseF2D.h.
|
protected |
Definition at line 73 of file indicatorBaseF2D.h.