Public Member Functions | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for syringePressureFvPatchScalarField:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("syringePressure")
 
 syringePressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 syringePressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 syringePressureFvPatchScalarField (const syringePressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 syringePressureFvPatchScalarField (const syringePressureFvPatchScalarField &)
 
 syringePressureFvPatchScalarField (const syringePressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 

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 [m2] yes
Sp syringe piston speed [m/s] yes
VsI initial syringe volume [m3] 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 [m2/s2] 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 148 of file syringePressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ syringePressureFvPatchScalarField() [1/5]

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

Definition at line 31 of file syringePressureFvPatchScalarField.C.

Referenced by syringePressureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ syringePressureFvPatchScalarField() [2/5]

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

Definition at line 43 of file syringePressureFvPatchScalarField.C.

◆ syringePressureFvPatchScalarField() [3/5]

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

Definition at line 70 of file syringePressureFvPatchScalarField.C.

◆ syringePressureFvPatchScalarField() [4/5]

Definition at line 118 of file syringePressureFvPatchScalarField.C.

◆ syringePressureFvPatchScalarField() [5/5]

Definition at line 95 of file syringePressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "syringePressure"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Definition at line 234 of file syringePressureFvPatchScalarField.H.

References syringePressureFvPatchScalarField::syringePressureFvPatchScalarField().

Here is the call graph for this function:

◆ clone() [2/2]

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

Definition at line 257 of file syringePressureFvPatchScalarField.H.

References syringePressureFvPatchScalarField::syringePressureFvPatchScalarField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Definition at line 228 of file syringePressureFvPatchScalarField.C.

References os(), fvPatchField::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

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