createFields.H
Go to the documentation of this file.
1IOdictionary dict
2(
3 IOobject
4 (
5 "createBoxTurbDict",
6 runTime.constant(),
8 IOobject::MUST_READ
9 )
10);
11
12// Extents in x, y, z directions
13const vector L(dict.get<vector>("L"));
14
15// Number of cells in x, y, z directions
16const Vector<label> N(dict.get<Vector<label>>("N"));
17
18// Wave number vs energy profile
19autoPtr<Function1<scalar>> Ek(Function1<scalar>::New("Ek", dict, &runTime));
20
21// Number of modes
22const label nModes = dict.get<label>("nModes");
23
24// Mesh spacing in x, y and z directions
26(
27 L.x()/scalar(N.x()),
28 L.y()/scalar(N.y()),
29 L.z()/scalar(N.z())
30);
31
32Random rndGen(1234);
scalar delta
const Cmpt & z() const
Access to the vector z component.
Definition: VectorI.H:85
const Cmpt & y() const
Access to the vector y component.
Definition: VectorI.H:79
const Cmpt & x() const
Access to the vector x component.
Definition: VectorI.H:73
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
engineTime & runTime
dictionary dict
Random rndGen
Definition: createFields.H:23
const label nModes
Definition: createFields.H:22
const vector L(dict.get< vector >("L"))
const Vector< label > N(dict.get< Vector< label > >("N"))
autoPtr< Function1< scalar > > Ek(Function1< scalar >::New("Ek", dict, &runTime))