OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

syringePressureFvPatchScalarField Class Reference

Pressure boundary condition obtained from a 0-D model of the cylinder of a syringe. More...

Collaboration diagram for syringePressureFvPatchScalarField:

List of all members.


Public Member Functions

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

Detailed Description

Pressure boundary condition obtained from a 0-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.

Example of the BC specification:

    outlet
    {
        type            syringePressure;
        Ap              1.388e-6; // syringe piston area
        Sp              0.01;     // syringe piston speed
        VsI             1.388e-8; // Initial syringe volume
        tas             0.001;    // Start of piston acceleration
        tae             0.002;    // End of piston acceleration
        tds             0.005;    // Start of piston deceleration
        tde             0.006;    // end of piston deceleration
        psI             1e5;      // Initial syringe pressure
        psi             1e-5;     // Gas compressibility
        ams             0;        // Added (or removed) gas mass
                                  // Initially 0 but used for restarting.
    }

Source files

Definition at line 70 of file syringePressureFvPatchScalarField.H.


Constructor & Destructor Documentation

Construct from patch and internal field.

Definition at line 32 of file syringePressureFvPatchScalarField.C.

References p.

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

Construct from patch, internal field and dictionary.

Definition at line 67 of file syringePressureFvPatchScalarField.C.

Construct by mapping given syringePressureFvPatchScalarField.

onto a new patch

Definition at line 43 of file syringePressureFvPatchScalarField.C.

Construct as copy.

Definition at line 115 of file syringePressureFvPatchScalarField.C.

Construct as copy setting internal field reference.

Definition at line 93 of file syringePressureFvPatchScalarField.C.

References fvPatchField< Type >::operator=().

Here is the call graph for this function:


Member Function Documentation

TypeName ( "syringePressure"   ) 

Runtime type information.

virtual tmp<fvPatchScalarField> clone (  )  const [inline, virtual]

Construct and return a clone.

Definition at line 153 of file syringePressureFvPatchScalarField.H.

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF  )  const [inline, virtual]

Construct and return a clone setting internal field reference.

Definition at line 176 of file syringePressureFvPatchScalarField.H.

void updateCoeffs (  )  [virtual]

Update the coefficients associated with the patch field.

Definition at line 176 of file syringePressureFvPatchScalarField.C.

void write ( Ostream &  os  )  const [virtual]

Write.

Definition at line 224 of file syringePressureFvPatchScalarField.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd