Go to the documentation of this file.
31 #include "surfaceInterpolate.H"
38 namespace functionObjects
68 bool Foam::functionObjects::PecletNo::calc()
70 if (foundObject<surfaceScalarField>(fieldName_))
72 tmp<volScalarField> nuEff;
76 lookupObject<turbulenceModel>
81 nuEff = model.nuEff();
83 else if (mesh_.foundObject<dictionary>(
"transportProperties"))
85 const dictionary& model =
86 mesh_.lookupObject<dictionary>(
"transportProperties");
93 mesh_.time().timeName(),
105 <<
"Unable to determine the viscosity"
119 *mesh_.surfaceInterpolation::deltaCoeffs()
141 setResultName(
"Pe",
"phi");
155 rhoName_ =
dict.lookupOrDefault<
word>(
"rho",
"rho");
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.
bool read(const char *buf, int32_t &val)
Same as readInt32.
static const word propertiesName
Default name of the turbulence properties dictionary.
addToRunTimeSelectionTable(functionObject, add, dictionary)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
PecletNo(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
virtual ~PecletNo()
Destructor.
word name(const complex &c)
Return string representation of complex.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimViscosity
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
virtual bool read(const dictionary &)
Read the PecletNo data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Base class for field expression function objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.