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

uniformDensityHydrostaticPressureFvPatchScalarField Class Reference

Hydrostatic pressure boundary condition calculated as. More...

Collaboration diagram for uniformDensityHydrostaticPressureFvPatchScalarField:

List of all members.


Public Member Functions

 TypeName ("uniformDensityHydrostaticPressure")
 Runtime type information.
 uniformDensityHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 uniformDensityHydrostaticPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given.
 uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &)
 Construct as copy.
virtual tmp< fvPatchScalarField > clone () const
 Construct and return a clone.
 uniformDensityHydrostaticPressureFvPatchScalarField (const uniformDensityHydrostaticPressureFvPatchScalarField &, 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.
scalar rho () const
 Return the constant density in the far-field.
scalar & rho ()
 Return reference to the constant density in the far-field.
scalar pRefValue () const
 Return the reference pressure.
scalar & pRefValue ()
 Return reference to the reference pressure to allow adjustment.
const vector & pRefPoint () const
 Return the pressure reference location.
vector & pRefPoint ()
 Return reference to the pressure reference location.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Detailed Description

Hydrostatic pressure boundary condition calculated as.

pRefValue + rho*g.(x - pRefPoint)

where rho is provided and assumed uniform.

Source files

Definition at line 48 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.


Constructor & Destructor Documentation

Construct from patch and internal field.

Definition at line 29 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.

Construct from patch, internal field and dictionary.

Definition at line 43 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.

Construct as copy setting internal field reference.

Definition at line 99 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.


Member Function Documentation

TypeName ( "uniformDensityHydrostaticPressure"   ) 

Runtime type information.

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

Construct and return a clone.

Definition at line 106 of file uniformDensityHydrostaticPressureFvPatchScalarField.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 123 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.

scalar rho (  )  const [inline]

Return the constant density in the far-field.

Definition at line 143 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.

scalar& rho (  )  [inline]

Return reference to the constant density in the far-field.

to allow adjustment

Definition at line 152 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.

scalar pRefValue (  )  const [inline]

Return the reference pressure.

Definition at line 158 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.

scalar& pRefValue (  )  [inline]

Return reference to the reference pressure to allow adjustment.

Definition at line 164 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.

const vector& pRefPoint (  )  const [inline]

Return the pressure reference location.

Definition at line 170 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.

vector& pRefPoint (  )  [inline]

Return reference to the pressure reference location.

to allow adjustment

Definition at line 179 of file uniformDensityHydrostaticPressureFvPatchScalarField.H.

void updateCoeffs (  )  [virtual]

Update the coefficients associated with the patch field.

Definition at line 113 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.

void write ( Ostream &  os  )  const [virtual]

Write.

Definition at line 134 of file uniformDensityHydrostaticPressureFvPatchScalarField.C.


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