40 fixedValueFvPatchScalarField(
p, iF,
dict, false),
52 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
55 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(
time().value());
68 fixedValueFvPatchScalarField(sppsf,
p, iF, mapper),
80 phiName_(sppsf.phiName_),
91 fixedValueFvPatchScalarField(sppsf, iF),
103 phiName_(sppsf.phiName_),
110 Foam::scalar Foam::syringePressureFvPatchScalarField::Vs(
const scalar t)
const
120 + 0.5*Ap_*Sp_*
sqr(t - tas_)/(tae_ - tas_);
126 + 0.5*Ap_*Sp_*(tae_ - tas_)
127 + Ap_*Sp_*(t - tae_);
133 + 0.5*Ap_*Sp_*(tae_ - tas_)
134 + Ap_*Sp_*(tds_ - tae_)
136 - 0.5*Ap_*Sp_*
sqr(t - tds_)/(tde_ - tds_);
142 + 0.5*Ap_*Sp_*(tae_ - tas_)
143 + Ap_*Sp_*(tds_ - tae_)
144 + 0.5*Ap_*Sp_*(tde_ - tds_);
159 curTimeIndex_ =
time().timeIndex();
162 scalar t =
time().value();
163 scalar deltaT =
time().deltaTValue();
173 ams_ = ams0_ + deltaT*
sum((*
this*psi_)*phip);
177 ams_ = ams0_ + deltaT*
sum(phip);
182 <<
"dimensions of phi are not correct"
183 <<
"\n on patch " << this->patch().name()
184 <<
" of field " << this->internalField().name()
185 <<
" in file " << this->internalField().objectPath()
189 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(t);
193 fixedValueFvPatchScalarField::updateCoeffs();
211 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Generic GeometricField class.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
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 operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
This boundary condition provides a pressure condition, obtained from a zero-D model of the cylinder o...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
syringePressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
const dimensionSet & dimMassFlux
makePatchTypeField(fvPatchScalarField, atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField)
SurfaceField< scalar > surfaceScalarField
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
const dimensionSet & dimVolumetricFlux