Go to the documentation of this file.
43 fixedValueFvPatchScalarField(
p, iF),
56 fixedValueFvPatchScalarField(
p, iF,
dict, false),
68 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
71 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(db().time().value());
84 fixedValueFvPatchScalarField(sppsf,
p, iF, mapper),
96 phiName_(sppsf.phiName_),
107 fixedValueFvPatchScalarField(sppsf, iF),
119 phiName_(sppsf.phiName_),
129 fixedValueFvPatchScalarField(sppsf),
141 phiName_(sppsf.phiName_),
148 Foam::scalar Foam::syringePressureFvPatchScalarField::Vs(
const scalar t)
const
158 + 0.5*Ap_*Sp_*
sqr(t - tas_)/(tae_ - tas_);
164 + 0.5*Ap_*Sp_*(tae_ - tas_)
165 + Ap_*Sp_*(t - tae_);
171 + 0.5*Ap_*Sp_*(tae_ - tas_)
172 + Ap_*Sp_*(tds_ - tae_)
174 - 0.5*Ap_*Sp_*
sqr(t - tds_)/(tde_ - tds_);
180 + 0.5*Ap_*Sp_*(tae_ - tas_)
181 + Ap_*Sp_*(tds_ - tae_)
182 + 0.5*Ap_*Sp_*(tde_ - tds_);
194 if (curTimeIndex_ != db().time().
timeIndex())
197 curTimeIndex_ = db().time().timeIndex();
200 scalar t = db().time().value();
201 scalar deltaT = db().time().deltaTValue();
206 const fvsPatchField<scalar>& phip =
211 ams_ = ams0_ + deltaT*
sum((*
this*psi_)*phip);
215 ams_ = ams0_ + deltaT*
sum(phip);
220 <<
"dimensions of phi are not correct"
221 <<
"\n on patch " << this->
patch().name()
222 <<
" of field " << this->internalField().name()
223 <<
" in file " << this->internalField().objectPath()
227 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(t);
231 fixedValueFvPatchScalarField::updateCoeffs();
251 writeEntry(
"value",
os);
262 syringePressureFvPatchScalarField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
This boundary condition provides a pressure condition, obtained from a zero-D model of the cylinder o...
A class for handling words, derived from Foam::string.
const dimensionSet dimVelocity
const dimensionSet dimDensity
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual void write(Ostream &) const
const dimensionSet dimArea(sqr(dimLength))
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
syringePressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
Ostream & writeEntry(const keyType &key, const T &value)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Generic GeometricField class.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...