Go to the documentation of this file.
38 namespace functionObjects
44 proudmanAcousticPower,
53 Foam::functionObjects::proudmanAcousticPower::rhoScale
55 const tmp<volScalarField>&
fld
58 const basicThermo* thermoPtr =
63 return fld*thermoPtr->rho();
66 if (rhoInf_.
value() < 0)
70 <<
"Incompressible calculation assumed, but no reference density "
71 <<
"set. Please set the entry 'rhoInf' to an appropriate value"
81 Foam::functionObjects::proudmanAcousticPower::a()
const
83 const basicThermo* thermoPtr =
88 const basicThermo&
thermo = *thermoPtr;
98 mesh_.time().timeName(),
131 mesh_.time().timeName(),
150 mesh_.time().timeName(),
170 dict.readIfPresent(
"alphaEps", alphaEps_);
171 rhoInf_.readIfPresent(
"rhoInf",
dict);
172 aRef_.readIfPresent(
"aRef",
dict);
191 P_A = rhoScale(alphaEps_*
turb.epsilon()*
pow5(Mt));
209 Log <<
" writing field " << P_A.name() <<
nl;
216 Log <<
" writing field " << L_P.name() <<
nl;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual bool execute()
Calculate the Proudman acoustic power.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
const dimensionSet dimVelocity
const dimensionSet dimDensity
bool read(const char *buf, int32_t &val)
Same as readInt32.
static const word propertiesName
Default name of the turbulence properties dictionary.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool write()
Write the Proudman acoustic power.
word name(const complex &c)
Return string representation of complex.
dimensionedScalar log10(const dimensionedScalar &ds)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
word dictName() const
The local dictionary name (final part of scoped name)
const dimensionSet dimPower
Abstract base class for turbulence models (RAS, LES and laminar).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar pow5(const dimensionedScalar &ds)
virtual bool read(const dictionary &dict)
Read optional controls.
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
proudmanAcousticPower(const word &name, const Time &runTime, const dictionary &)
Construct from Time and dictionary.
const word & name() const
Return the name of this functionObject.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual const word & type() const =0
Runtime type information.
dimensionedScalar sqrt(const dimensionedScalar &ds)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const dimensionedScalar e
Elementary charge.
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
defineTypeNameAndDebug(ObukhovLength, 0)
const dimensionSet dimVolume(pow3(dimLength))
compressible::turbulenceModel & turb
virtual bool read(const dictionary &)
Read the Proudman acoustic power data.