Go to the documentation of this file.
41 #ifndef turbulentDFSEMInletFvPatchVectorField_eddy_H
42 #define turbulentDFSEMInletFvPatchVectorField_eddy_H
74 static label Gamma2Values[8];
162 inline scalar
x() const noexcept;
172 inline const
tensor&
Rpg() const noexcept;
175 inline scalar
c1() const noexcept;
181 inline label
dir1() const;
190 inline scalar
volume() const;
193 inline
void move(const scalar dx);
214 const label pointOffset,
222 void operator=(const
eddy&
e);
227 friend
bool operator==(const
eddy& a, const
eddy&
b)
230 a.patchFaceI_ ==
b.patchFaceI_
231 && a.position0_ ==
b.position0_
233 && a.sigma_ ==
b.sigma_
234 && a.alpha_ ==
b.alpha_
237 && a.dir1_ ==
b.dir1_;
const tensor & Rpg() const noexcept
const vector & sigma() const noexcept
Return the length scales in 3-D space.
const vector & alpha() const noexcept
Return the time-averaged intensity.
static int debug
Flag to activate debug statements.
friend Ostream & operator<<(Ostream &os, const eddy &e)
void writeCentreOBJ(const vector &n, Ostream &os) const
Write the eddy centre in OBJ format.
scalar c1() const noexcept
Return the model coefficient c1.
vector epsilon(Random &rndGen) const
Return random vector of -1 and 1's.
boundBox bounds(const bool global=true) const
Eddy bounds.
const point & position0() const noexcept
Return the reference position.
friend bool operator!=(const eddy &a, const eddy &b)
scalar volume() const
Volume.
void move(const scalar dx)
Move the eddy.
Class to describe eddies for the turbulentDFSEMInletFvPatchVectorField boundary condition.
Istream & operator>>(Istream &, directionInfo &)
label writeSurfaceOBJ(const label pointOffset, const vector &n, Ostream &os) const
Write the eddy surface in OBJ format.
scalar x() const noexcept
Return the distance from the reference position.
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define R(A, B, C, D, E, F, K, M)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
point position(const vector &n) const
Return the eddy position.
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
OBJstream os(runTime.globalPath()/outputName)
label dir1() const
Return the index of the streamwise direction.
const dimensionedScalar e
Elementary charge.
A bounding box defined in terms of min/max extrema points.
friend Istream & operator>>(Istream &is, eddy &e)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
vector uPrime(const point &xp, const vector &n) const
Return the fluctuating velocity contribution at local point xp.
label patchFaceI() const noexcept
Return the patch face index that spawned the eddy.