Go to the documentation of this file.
42 fixedValueFvPatchScalarField(
p, iF),
55 fixedValueFvPatchScalarField(
p, iF,
dict,
false),
56 Ap_(
dict.get<scalar>(
"Ap")),
57 Sp_(
dict.get<scalar>(
"Sp")),
58 VsI_(
dict.get<scalar>(
"VsI")),
59 tas_(
dict.get<scalar>(
"tas")),
60 tae_(
dict.get<scalar>(
"tae")),
61 tds_(
dict.get<scalar>(
"tds")),
62 tde_(
dict.get<scalar>(
"tde")),
63 psI_(
dict.get<scalar>(
"psI")),
64 psi_(
dict.get<scalar>(
"psi")),
65 ams_(
dict.get<scalar>(
"ams")),
67 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
70 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(db().time().value());
83 fixedValueFvPatchScalarField(sppsf,
p, iF, mapper),
95 phiName_(sppsf.phiName_),
106 fixedValueFvPatchScalarField(sppsf, iF),
118 phiName_(sppsf.phiName_),
128 fixedValueFvPatchScalarField(sppsf),
140 phiName_(sppsf.phiName_),
147 Foam::scalar Foam::syringePressureFvPatchScalarField::Vs(
const scalar t)
const
157 + 0.5*Ap_*Sp_*
sqr(t - tas_)/(tae_ - tas_);
163 + 0.5*Ap_*Sp_*(tae_ - tas_)
164 + Ap_*Sp_*(t - tae_);
170 + 0.5*Ap_*Sp_*(tae_ - tas_)
171 + Ap_*Sp_*(tds_ - tae_)
173 - 0.5*Ap_*Sp_*
sqr(t - tds_)/(tde_ - tds_);
179 + 0.5*Ap_*Sp_*(tae_ - tas_)
180 + Ap_*Sp_*(tds_ - tae_)
181 + 0.5*Ap_*Sp_*(tde_ - tds_);
193 if (curTimeIndex_ != db().time().
timeIndex())
196 curTimeIndex_ = db().time().timeIndex();
199 scalar t = db().time().value();
200 scalar deltaT = db().time().deltaTValue();
210 ams_ = ams0_ + deltaT*
sum((*
this*psi_)*phip);
214 ams_ = ams0_ + deltaT*
sum(phip);
219 <<
"dimensions of phi are not correct"
220 <<
"\n on patch " << this->
patch().name()
221 <<
" of field " << this->internalField().name()
222 <<
" in file " << this->internalField().objectPath()
226 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(t);
230 fixedValueFvPatchScalarField::updateCoeffs();
250 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.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
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
Write.
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 > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const std::string patch
OpenFOAM patch number as a std::string.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...