Go to the documentation of this file.
40 fixedValueFvPatchScalarField(
p, iF),
53 fixedValueFvPatchScalarField(
p, iF),
65 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
68 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(db().time().value());
81 fixedValueFvPatchScalarField(sppsf,
p, iF, mapper),
104 fixedValueFvPatchScalarField(sppsf, iF),
126 fixedValueFvPatchScalarField(sppsf),
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()
224 scalar ps = (psI_*VsI_ + ams_/psi_)/Vs(t);
228 fixedValueFvPatchScalarField::updateCoeffs();
247 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.
scalar VsI_
Initial syringe volume.
This boundary condition provides a pressure condition, obtained from a zero-D model of the cylinder o...
scalar tds_
Start of piston deceleration.
A class for handling words, derived from string.
const dimensionSet dimVelocity
const dimensionSet dimDensity
scalar psI_
Initial syringe pressure.
rDeltaT dimensionedInternalField()
scalar Ap_
Syringe piston area.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual void write(Ostream &) const
Write.
scalar Vs(const scalar t) const
Return the volume of the syringe at time t.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
word phiName_
Name of the flux transporting the field.
const dimensionSet dimArea(sqr(dimLength))
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
scalar tas_
Start of piston acceleration.
syringePressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
scalar tae_
End of piston acceleration.
scalar tde_
End of piston deceleration.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
errorManipArg< error, int > exit(error &err, const int errNo=1)
scalar ams0_
Added gas mass at previous time step.
scalar psi_
Gas compressibility.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
scalar Sp_
Syringe piston speed.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
scalar ams_
Added gas mass.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...