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