31 #include "surfaceInterpolate.H" 38 namespace functionObjects
62 bool Foam::functionObjects::PecletNo::calc()
64 if (foundObject<surfaceScalarField>(fieldName_))
66 tmp<volScalarField> nuEff;
70 lookupObject<turbulenceModel>
75 nuEff = model.nuEff();
77 else if (mesh_.foundObject<dictionary>(
"transportProperties"))
80 mesh_.lookupObject<
dictionary>(
"transportProperties");
93 <<
"Unable to determine the viscosity" 107 *mesh_.surfaceInterpolation::deltaCoeffs()
138 rhoName_ =
dict.getOrDefault<
word>(
"rho",
"rho");
defineTypeNameAndDebug(ObukhovLength, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionSet dimViscosity
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
void setResultName(const word &typeName, const word &defaultArg)
Set the name of result field.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
PecletNo(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
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.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc...
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual bool read(const dictionary &)
Read the PecletNo data.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Do not request registration (bool: false)