Go to the documentation of this file.
75 rhoInlet_(
dict.lookupOrDefault<scalar>(
"rhoInlet", -VGREAT))
77 if (
dict.found(
"volumetricFlowRate"))
83 else if (
dict.found(
"massFlowRate"))
87 rhoName_ =
word(
dict.lookupOrDefault<
word>(
"rho",
"rho"));
94 ) <<
"Please supply either 'volumetricFlowRate' or"
99 if (
dict.found(
"value"))
108 evaluate(Pstream::blocking);
151 const scalar t = db().time().timeOutputValue();
154 const scalar avgU = -
flowRate_->value(t)/
gSum(patch().magSf());
166 if (db().foundObject<volScalarField>(
rhoName_))
179 <<
"Did not find registered density field " <<
rhoName_
180 <<
" and no constant density 'rhoInlet' specified"
187 fixedValueFvPatchVectorField::updateCoeffs();
194 flowRate_->writeData(os);
197 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
198 writeEntryIfDifferent<scalar>(os,
"rhoInlet", -VGREAT, rhoInlet_);
200 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void write(Ostream &) const
Write.
A class for handling words, derived from string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
A class for managing temporary objects.
scalar rhoInlet_
Rho initialisation value (for start; if value not supplied)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Type gSum(const FieldField< Field, Type > &f)
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
flowRateInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
volVectorField vectorField(fieldObject, mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
bool volumetric_
Is volumetric?
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word rhoName_
Name of the density field used to normalize the mass flux.
This boundary condition provides a velocity boundary condition, derived from the flux (volumetric or ...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
autoPtr< DataEntry< scalar > > flowRate_
Inlet integral flow rate.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...