78#ifndef Foam_functionObjects_energySpectrum_H
79#define Foam_functionObjects_energySpectrum_H
138 const scalar kappaNorm
178 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,...
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 the function-object operations.
virtual bool write()
Write the function-object results.
virtual ~energySpectrum()=default
Destructor.
TypeName("energySpectrum")
Runtime type information.
virtual bool read(const dictionary &)
Read the function-object dictionary.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
Base class for writing single files from the function objects.
writeFile(const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
Construct from objectRegistry, prefix, fileName.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
List< label > labelList
A List of labels.
Field< vector > vectorField
Specialisation of Field<T> for vector.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
const Vector< label > N(dict.get< Vector< label > >("N"))