52 scalar l0(K.
sizeOfBox()[0]*(scalar(K.
nn()[0])/(scalar(K.
nn()[0])-1.0)));
60 y /= scalar(K.
size());
78 pow(scalar(tnp), 1.0/vector::dim)*
pow(1.0/vector::dim, 0.5) - 0.5
85 scalar kmax = K.
max()*
pow(1.0/vector::dim,0.5);
86 scalar delta_k = kmax/(NoSubintervals);
90 k1D[a] = (a + 1)*delta_k;
97 scalar kmag =
mag(K[l]);
99 for (
label a=0; a<NoSubintervals; a++)
103 kmag <= ((a + 1)*delta_k + delta_k/2.0)
104 && kmag > ((a + 1)*delta_k - delta_k/2.0)
107 scalar dist = delta_k/2.0 -
mag((a + 1)*delta_k - kmag);
125 for (
label a=0; a<NoSubintervals; a++)
129 Ek1D[a] /= EWeight[a];
133 return graph(
"E(k)",
"k",
"E(k)", k1D, Ek1D);
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
void size(const label)
Override size to be inconsistent with allocated storage.
Class to create, store and output qgraph files.
graph kShellMean(const complexVectorField &Ek, const Kmesh &K)
iterator begin()
Iterator set to the beginning of the HashTable.
Calculate the wavenumber vector field corresponding to the space vector field of a finite volume mesh...
const vector & sizeOfBox() const
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Integrate a multi-dimensional complexVectorField in k-shells to create the 1D.
graph kShellIntegration(const complexVectorField &Ek, const Kmesh &K)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const labelList & nn() const
dimensioned< scalar > mag(const dimensioned< Type > &)
const scalarField & x() const