OpenLB 1.7
|
#include <indicatorBaseF3D.h>
Public Member Functions | |
RegularCachedIndicatorF3D (IndicatorF3D< S > &indicatorF, S deltaR) | |
bool | operator() (bool output[1], const S input[3]) override |
Returns true if input is inside the indicator. | |
bool | save (std::string fileName) |
bool | load (std::string fileName) |
Vector< S, 3 > & | getMin () override |
Vector< S, 3 > & | getMax () override |
bool | distance (S &distance, const Vector< S, 3 > &origin, S precision, const Vector< S, 3 > &direction) override |
bool | distance (S &distance, const Vector< S, 3 > &origin, const Vector< S, 3 > &direction, S precision, S pitch) override |
bool | distance (S &distance, const Vector< S, 3 > &origin, const Vector< S, 3 > &direction, int iC=-1) override |
bool | distance (S &distance, const Vector< S, 3 > &origin) override |
bool | distance (S &distance, const S input[]) override |
bool | normal (Vector< S, 3 > &normal, const Vector< S, 3 > &origin, const Vector< S, 3 > &direction, int iC=-1) override |
returns true and the normal if there was one found for an given origin and direction | |
bool | rotOnAxis (Vector< S, 3 > &vec_rot, const Vector< S, 3 > &vec, const Vector< S, 3 > &axis, S &theta) override |
Rotate vector around axis by angle theta. | |
S | signedDistance (const Vector< S, 3 > &input) override |
Returns signed distance to the nearest point on the indicator surface. | |
Vector< S, 3 > | surfaceNormal (const Vector< S, 3 > &pos, const S meshSize) override |
Return surface normal. | |
Public Member Functions inherited from olb::IndicatorF3D< S > | |
Vector< S, 3 > | surfaceNormal (const Vector< S, 3 > &pos, const S meshSize, std::function< Vector< S, 3 >(const Vector< S, 3 > &)> transformPos) |
Return surface normal after possible translation and rotation. | |
bool | isInsideBox (Vector< S, 3 > point) |
Returns true if point is inside a cube with corners _myMin and _myMax | |
virtual Vector< S, 3 > | getSample (const std::function< S()> &randomness) const |
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) |
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) | |
Protected Member Functions inherited from olb::IndicatorF3D< S > | |
IndicatorF3D () | |
Protected Member Functions inherited from olb::GenericF< bool, S > | |
GenericF (int targetDim, int sourceDim) | |
Protected Attributes inherited from olb::IndicatorF3D< S > | |
Vector< S, 3 > | _myMin |
Vector< S, 3 > | _myMax |
Definition at line 87 of file indicatorBaseF3D.h.
|
inline |
Definition at line 97 of file indicatorBaseF3D.h.
|
inlineoverridevirtual |
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 152 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::distance(), and olb::RegularCachedIndicatorF3D< S >::distance().
|
inlineoverridevirtual |
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 149 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::distance(), and olb::RegularCachedIndicatorF3D< S >::distance().
|
inlineoverridevirtual |
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 146 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::distance(), and olb::RegularCachedIndicatorF3D< S >::distance().
|
inlineoverridevirtual |
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 143 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::distance(), and olb::RegularCachedIndicatorF3D< S >::distance().
|
inlineoverridevirtual |
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 140 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::distance(), and olb::RegularCachedIndicatorF3D< S >::distance().
|
inlineoverridevirtual |
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 137 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::getMax().
|
inlineoverridevirtual |
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 134 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::getMin().
|
inline |
Definition at line 130 of file indicatorBaseF3D.h.
References olb::Serializable::load().
|
inlineoverridevirtual |
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])
find perpendicular vector to direction
Loop 3 times to find three points on the surface to use for normal calc. orthogonal to direction vector 120 degree to each other
rotate directionPerpN through 3 angles {0,120,240}
Find 'positive' angle
Calculate Normal
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 155 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::normal(), and olb::RegularCachedIndicatorF3D< S >::normal().
|
inlineoverridevirtual |
Returns true if input is inside the indicator.
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 108 of file indicatorBaseF3D.h.
References olb::BlockStructureD< D >::getCellId(), and olb::Cuboid3D< T >::getLatticeR().
|
inlineoverridevirtual |
Rotate vector around axis by angle theta.
http://mathworld.wolfram.com/RodriguesRotationFormula.html https://en.wikipedia.org/wiki/Rodrigues%27_rotation_formula
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 158 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::rotOnAxis().
|
inline |
Definition at line 127 of file indicatorBaseF3D.h.
References olb::Serializable::save().
|
inlineoverridevirtual |
Returns signed distance to the nearest point on the indicator surface.
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 162 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::signedDistance().
|
inlineoverridevirtual |
Return surface normal.
Reimplemented from olb::IndicatorF3D< S >.
Definition at line 165 of file indicatorBaseF3D.h.
References olb::IndicatorF3D< S >::surfaceNormal().