126#ifndef functionObjects_proudmanAcousticPower_H
127#define functionObjects_proudmanAcousticPower_H
136namespace functionObjects
143class proudmanAcousticPower
145 public fvMeshFunctionObject
171 tmp<volScalarField> rhoScale(
const tmp<volScalarField>&
fld)
const;
174 tmp<volScalarField> a()
const;
177 tmp<volScalarField> k()
const;
180 tmp<volScalarField> epsilon()
const;
203 void operator=(
const proudmanAcousticPower&) =
delete;
213 virtual bool read(
const dictionary&);
219 virtual bool write();
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Computes the acoustic power due to the volume of isotropic turbulence using Proudman's formula.
proudmanAcousticPower(const proudmanAcousticPower &)=delete
No copy construct.
virtual ~proudmanAcousticPower()=default
Destructor.
void operator=(const proudmanAcousticPower &)=delete
No copy assignment.
proudmanAcousticPower(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
virtual bool execute()
Calculate the Proudman acoustic power.
TypeName("proudmanAcousticPower")
Runtime type information.
virtual bool write()
Write the Proudman acoustic power.
virtual bool read(const dictionary &)
Read the Proudman acoustic power data.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.