42 mixedFvPatchVectorField(p, iF),
47 refGrad() = vector::zero;
48 valueFraction() = 0.0;
61 mixedFvPatchVectorField(ptf, p, iF, mapper),
62 phiName_(ptf.phiName_),
63 rhoName_(ptf.rhoName_)
75 mixedFvPatchVectorField(p, iF),
81 refGrad() = vector::zero;
82 valueFraction() = 0.0;
92 mixedFvPatchVectorField(pivpvf),
93 phiName_(pivpvf.phiName_),
94 rhoName_(pivpvf.rhoName_)
105 mixedFvPatchVectorField(pivpvf, iF),
106 phiName_(pivpvf.phiName_),
107 rhoName_(pivpvf.rhoName_)
131 refValue() = n*phip/magS;
138 refValue() = n*phip/(rhop*magS);
144 "pressureNormalInletOutletVelocityFvPatchVectorField::" 146 ) <<
"dimensions of phi are not correct" 147 <<
"\n on patch " << this->patch().name()
153 valueFraction() = 1.0 -
pos(phip);
155 mixedFvPatchVectorField::updateCoeffs();
167 writeEntry(
"value", os);
173 void Foam::pressureNormalInletOutletVelocityFvPatchVectorField::operator=
180 valueFraction()*(patch().nf()*(patch().nf() & pvf))
181 + (1 - valueFraction())*pvf
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This velocity inlet/outlet boundary condition is applied to patches where the pressure is specified...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const dimensionSet dimArea(sqr(dimLength))
A class for handling words, derived from string.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Foam::fvPatchFieldMapper.
const dimensionSet dimDensity
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void write(Ostream &) const
Write.
volVectorField vectorField(fieldObject, mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Macros for easy insertion into run-time selection tables.
const dimensionSet & dimensions() const
Return dimensions.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
rDeltaT dimensionedInternalField()
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
pressureNormalInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar pos(const dimensionedScalar &ds)
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void write(Ostream &) const
Write.
virtual label size() const
Return size.
const dimensionSet dimVelocity
A class for managing temporary objects.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...