40 fixedValueFvPatchScalarField(p, iF),
53 fixedValueFvPatchScalarField(p, iF, dict,
false),
68 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(db().time().value());
81 fixedValueFvPatchScalarField(sppsf, p, iF, mapper),
93 phiName_(sppsf.phiName_),
104 fixedValueFvPatchScalarField(sppsf, iF),
116 phiName_(sppsf.phiName_),
126 fixedValueFvPatchScalarField(sppsf),
138 phiName_(sppsf.phiName_),
145 Foam::scalar Foam::syringePressureFvPatchScalarField::Vs(
const scalar t)
const 155 + 0.5*Ap_*Sp_*
sqr(t - tas_)/(tae_ - tas_);
161 + 0.5*Ap_*Sp_*(tae_ - tas_)
162 + Ap_*Sp_*(t - tae_);
168 + 0.5*Ap_*Sp_*(tae_ - tas_)
169 + Ap_*Sp_*(tds_ - tae_)
171 - 0.5*Ap_*Sp_*
sqr(t - tds_)/(tde_ - tds_);
177 + 0.5*Ap_*Sp_*(tae_ - tas_)
178 + Ap_*Sp_*(tds_ - tae_)
179 + 0.5*Ap_*Sp_*(tde_ - tds_);
191 if (curTimeIndex_ != db().time().
timeIndex())
194 curTimeIndex_ = db().time().timeIndex();
197 scalar t = db().time().value();
198 scalar deltaT = db().time().deltaTValue();
208 ams_ = ams0_ + deltaT*
sum((*
this*psi_)*phip);
212 ams_ = ams0_ + deltaT*
sum(phip);
217 <<
"dimensions of phi are not correct" 218 <<
"\n on patch " << this->patch().name()
219 <<
" of field " << this->internalField().name()
220 <<
" in file " << this->internalField().objectPath()
224 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(t);
228 fixedValueFvPatchScalarField::updateCoeffs();
246 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
248 writeEntry(
"value", os);
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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.
Macros for easy insertion into run-time selection tables.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
const dimensionSet & dimensions() const
Return dimensions.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
const dimensionSet dimDensity
syringePressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This boundary condition provides a pressure condition, obtained from a zero-D model of the cylinder o...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const dimensionSet dimArea(sqr(dimLength))
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dimensionSet dimVelocity