66#ifndef functionObjects_energySpectrum_H
67#define functionObjects_energySpectrum_H
78namespace functionObjects
87 public fvMeshFunctionObject,
127 const scalar kappaNorm
167 virtual bool write();
Graphite solid properties.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & name() const noexcept
Return the name of this functionObject.
Calculates the energy spectrum for a structured IJK mesh.
vector c0_
Reference point.
labelList cellAddr_
I-J-K mesh addressing.
word UName_
Name of velocity field, default = U.
void calcAndWriteSpectrum(const vectorField &U, const vectorField &C, const vector &c0, const vector &deltaC, const Vector< int > &N, const scalar kappaNorm)
Calculate and write the spectrum.
scalar kappaNorm_
Wave number.
vector deltaC_
Cell length scale.
Vector< int > N_
Number of cells in I-J-K directions.
energySpectrum(const energySpectrum &)=delete
No copy construct.
virtual void writeFileHeader(Ostream &os)
Output file header information.
void operator=(const energySpectrum &)=delete
No copy assignment.
virtual bool execute()
Execute, currently does nothing.
virtual bool write()
Write the energySpectrum.
virtual ~energySpectrum()=default
Destructor.
TypeName("energySpectrum")
Runtime type information.
virtual bool read(const dictionary &)
Read the field min/max data.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Base class for writing single files from the function objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
List< label > labelList
A List of labels.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
const Vector< label > N(dict.get< Vector< label > >("N"))