Class to describe eddies for the turbulentDFSEMInletFvPatchVectorField boundary condition. More...
#include <eddy.H>
Public Member Functions | |
| eddy () | |
| Construct null. | |
| eddy (Istream &is) | |
| Construct from Istream. | |
| eddy (const label patchFaceI, const point &position0, const scalar x, const scalar sigmaX, const symmTensor &R, Random &rndGen) | |
| Construct from components. | |
| eddy (const eddy &e) | |
| Copy construct. | |
| label | patchFaceI () const noexcept |
| Return the patch face index that spawned the eddy. | |
| const point & | position0 () const noexcept |
| Return the reference position. | |
| scalar | x () const noexcept |
| Return the distance from the reference position. | |
| const vector & | sigma () const noexcept |
| Return the length scales in 3-D space. | |
| const vector & | alpha () const noexcept |
| Return the time-averaged intensity. | |
| const tensor & | Rpg () const noexcept |
| Return the coordinate system transformation from local principal to global axes. | |
| scalar | c1 () const noexcept |
| Return the model coefficient c1. | |
| point | position (const vector &n) const |
| Return the eddy position. | |
| label | dir1 () const noexcept |
| Return the index of the streamwise direction (0,1,2). | |
| vector | epsilon (Random &rndGen) const |
| Return random vector of -1 and 1's. | |
| scalar | volume () const |
| Volume. | |
| void | move (const scalar dx) |
| Move the eddy. | |
| boundBox | bounds (const bool global=true) const |
| Eddy bounds. | |
| vector | uPrime (const point &xp, const vector &n) const |
| Return the fluctuating velocity contribution at local point xp. | |
| void | writeCentreOBJ (const vector &n, Ostream &os) const |
| Write the eddy centre in OBJ format. | |
| label | writeSurfaceOBJ (const label pointOffset, const vector &n, Ostream &os) const |
| Write the eddy surface in OBJ format. | |
| void | operator= (const eddy &e) |
Static Public Attributes | |
| static int | debug = 0 |
| Flag to activate debug statements. | |
Friends | |
| bool | operator== (const eddy &a, const eddy &b) |
| bool | operator!= (const eddy &a, const eddy &b) |
| Istream & | operator>> (Istream &is, eddy &e) |
| Ostream & | operator<< (Ostream &os, const eddy &e) |
Class to describe eddies for the turbulentDFSEMInletFvPatchVectorField boundary condition.
| eddy | ( | ) |
Construct null.
Definition at line 110 of file eddy.C.
References Foam::I, and Foam::Zero.
Referenced by eddy(), operator!=, operator<<, operator=(), operator==, and operator>>.

| eddy | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 27 of file eddyIO.C.
References IOstream::check(), FUNCTION_NAME, and Foam::readLabel().

| eddy | ( | const label | patchFaceI, |
| const point & | position0, | ||
| const scalar | x, | ||
| const scalar | sigmaX, | ||
| const symmTensor & | R, | ||
| Random & | rndGen ) |
Construct from components.
Definition at line 123 of file eddy.C.
References Foam::cmptAv(), Foam::cmptMin(), Foam::cmptProduct(), debug, e, Foam::eigenValues(), Foam::eigenVectors(), Foam::endl(), epsilon, forAll, found, Foam::I, lambda(), patchFaceI(), position0(), Foam::Pout, R, rndGen, dimensioned< Type >::T(), WarningInFunction, x(), and Foam::Zero.

| eddy | ( | const eddy & | e | ) |
|
inlinenoexcept |
Return the patch face index that spawned the eddy.
Definition at line 35 of file eddyI.H.
References Foam::noexcept.
Referenced by eddy().

|
inlinenoexcept |
Return the reference position.
Definition at line 41 of file eddyI.H.
References Foam::noexcept.
Referenced by eddy().

|
inlinenoexcept |
Return the distance from the reference position.
Definition at line 47 of file eddyI.H.
References Foam::noexcept.
Referenced by eddy(), and writeSurfaceOBJ().

|
inlinenoexcept |
Return the length scales in 3-D space.
Definition at line 53 of file eddyI.H.
References Foam::noexcept.
|
inlinenoexcept |
Return the time-averaged intensity.
Definition at line 59 of file eddyI.H.
References Foam::noexcept.
|
inlinenoexcept |
Return the coordinate system transformation from local principal to global axes.
Definition at line 65 of file eddyI.H.
References Foam::noexcept.
|
inlinenoexcept |
|
inline |
Return the eddy position.
Definition at line 77 of file eddyI.H.
References n.
Referenced by uPrime(), writeCentreOBJ(), and writeSurfaceOBJ().

|
inlinenoexcept |
Return the index of the streamwise direction (0,1,2).
Definition at line 223 of file eddy.H.
References dir1(), and Foam::noexcept.
Referenced by dir1().


|
inline |
|
inline |
Volume.
Definition at line 89 of file eddyI.H.
References Foam::cmptProduct(), and Foam::constant::mathematical::pi().

|
inline |
Eddy bounds.
Definition at line 101 of file eddyI.H.
References boundBox::max(), and boundBox::min().

| Foam::vector uPrime | ( | const point & | xp, |
| const vector & | n ) const |
Return the fluctuating velocity contribution at local point xp.
Definition at line 224 of file eddy.C.
References Foam::cmptDivide(), Foam::cmptMultiply(), Foam::mag(), n, VectorSpace< Form, Cmpt, Ncmpts >::one, position(), rp(), and VectorSpace< Form, Cmpt, Ncmpts >::zero.

Write the eddy surface in OBJ format.
Returns the number of points used to describe the eddy surface
Definition at line 259 of file eddy.C.
References Foam::cos(), forAll, n, Foam::nl, os(), p, Foam::constant::mathematical::pi(), position(), s(), Foam::sin(), Foam::sqr(), Foam::sqrt(), Foam::constant::mathematical::twoPi(), x(), and Foam::Zero.

| void operator= | ( | const eddy & | e | ) |
|
static |
Flag to activate debug statements.
Definition at line 172 of file eddy.H.
Referenced by eddy(), and turbulentDFSEMInletFvPatchVectorField::turbulentDFSEMInletFvPatchVectorField().