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