29 #include "surfaceInterpolate.H"
36 namespace functionObjects
52 bool Foam::functionObjects::PecletNo::calc()
54 if (foundObject<surfaceScalarField>(
fieldName_))
59 tmp<volScalarField> nuOrMuEff;
62 const incompressibleMomentumTransportModel& imtm =
65 nuOrMuEff = imtm.nuEff();
69 const compressibleMomentumTransportModel& cmtm =
72 nuOrMuEff = cmtm.rho()*cmtm.nuEff();
77 <<
"dimensions of flux " << phi.name() <<
" are "
78 << phi.dimensions() <<
", but they must be either "
89 *
mesh_.surfaceInterpolation::deltaCoeffs()
98 cannotFindObject<surfaceScalarField>(
fieldName_);
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base-class for Time/database functionObjects.
Calculates and outputs the Peclet number as a surfaceScalarField.
virtual ~PecletNo()
Destructor.
PecletNo(const word &name, const Time &runTime, const dictionary &dict)
Construct for given objectRegistry and dictionary.
word resultName_
Name of result field.
const word fieldName_
Name of field to process.
const fvMesh & mesh_
Reference to the fvMesh.
ObjectType & store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
const Type & lookupType(const word &group=word::null) const
Lookup and return the object of the given Type.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
addToRunTimeSelectionTable(functionObject, fvModel, dictionary)
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &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)
const dimensionSet & dimMassFlux
SurfaceField< scalar > surfaceScalarField
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
const dimensionSet & dimVolumetricFlux