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