syringePressureFvPatchScalarField Class Reference

This boundary condition provides a pressure condition, obtained from a zero-D model of the cylinder of a syringe. More...

Inheritance diagram for syringePressureFvPatchScalarField:
Collaboration diagram for syringePressureFvPatchScalarField:

Public Member Functions

 TypeName ("syringePressure")
 Runtime type information. More...
 
 syringePressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 syringePressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 syringePressureFvPatchScalarField (const syringePressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given syringePressureFvPatchScalarField. More...
 
 syringePressureFvPatchScalarField (const syringePressureFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 syringePressureFvPatchScalarField (const syringePressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

This boundary condition provides a pressure condition, obtained from a zero-D model of the cylinder of a syringe.

The syringe cylinder is defined by its initial volume, piston area and velocity profile specified by regions of constant acceleration, speed and deceleration. The gas in the cylinder is described by its initial pressure and compressibility which is assumed constant, i.e. isothermal expansion/compression.

Usage
Property Description Required Default value
Ap syringe piston area [m^2] yes
Sp syringe piston speed [m/s] yes
VsI initial syringe volume [m^3] yes
tas start of piston acceleration [s] yes
tae end of piston acceleration [s] yes
tds start of piston deceleration [s] yes
tde end of piston deceleration [s] yes
psI initial syringe pressure [Pa] yes
psi gas compressibility [m^2/s^2] yes
ams added (or removed) gas mass [kg] yes

Example of the BC specification:

    <patchName>
    {
        type            syringePressure;
        Ap              1.388e-6;
        Sp              0.01;
        VsI             1.388e-8;
        tas             0.001;
        tae             0.002;
        tds             0.005;
        tde             0.006;
        psI             1e5;
        psi             1e-5;
        ams             0;
        value           uniform 0;
    }
See also
Foam::fixedValueFvPatchField
Source files

Definition at line 147 of file syringePressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ syringePressureFvPatchScalarField() [1/5]

syringePressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Construct from patch and internal field.

Definition at line 35 of file syringePressureFvPatchScalarField.C.

Referenced by syringePressureFvPatchScalarField::clone(), and syringePressureFvPatchScalarField::syringePressureFvPatchScalarField().

Here is the caller graph for this function:

◆ syringePressureFvPatchScalarField() [2/5]

syringePressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 47 of file syringePressureFvPatchScalarField.C.

References syringePressureFvPatchScalarField::syringePressureFvPatchScalarField().

Here is the call graph for this function:

◆ syringePressureFvPatchScalarField() [3/5]

syringePressureFvPatchScalarField ( const syringePressureFvPatchScalarField sppsf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Construct by mapping given syringePressureFvPatchScalarField.

onto a new patch

Definition at line 74 of file syringePressureFvPatchScalarField.C.

References syringePressureFvPatchScalarField::syringePressureFvPatchScalarField().

Here is the call graph for this function:

◆ syringePressureFvPatchScalarField() [4/5]

Disallow copy without setting internal field reference.

◆ syringePressureFvPatchScalarField() [5/5]

Copy constructor setting internal field reference.

Definition at line 99 of file syringePressureFvPatchScalarField.C.

References Foam::sqr().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "syringePressure"  )

Runtime type information.

◆ clone()

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 247 of file syringePressureFvPatchScalarField.H.

References syringePressureFvPatchScalarField::syringePressureFvPatchScalarField(), syringePressureFvPatchScalarField::updateCoeffs(), and syringePressureFvPatchScalarField::write().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 162 of file syringePressureFvPatchScalarField.C.

References DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimFlux, Foam::dimMassFlux, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::operator==(), phi, Foam::sum(), and timeIndex.

Referenced by syringePressureFvPatchScalarField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 210 of file syringePressureFvPatchScalarField.C.

References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().

Referenced by syringePressureFvPatchScalarField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: