Go to the documentation of this file.
41 return (
k + j*nn[2] + i*nn[1]*nn[2]);
56 vector cellL = 2*(box.
max() - cornerCellCentre);
71 rdeltaByL[i] =
nn_[i]/(
l_[i]*
l_[i]);
74 if (nTot !=
mesh.nCells())
77 <<
"calculated number of cells is incorrect"
const point & max() const
Maximum describing the bounding box.
#define forAll(list, i)
Loop across all elements in list.
static label index(const label i, const label j, const label k, const labelList &nn)
Return the linear index from the i-j-k indices.
const scalar twoPi(2 *pi)
dimensioned< scalar > mag(const dimensioned< Type > &)
vector span() const
The bounding box span (from minimum to maximum)
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
scalar kmax_
Maximum wavenumber.
Pre-declare SubField and related Field type.
Kmesh(const fvMesh &)
Construct from fvMesh.
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
Vector< scalar > vector
A scalar version of the templated Vector.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
vector l_
Dimensions of box.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label k
Boltzmann constant.
labelList nn_
Multi-dimensional addressing array.
A bounding box defined in terms of the points at its extremities.