FreeFOAM The Cross-Platform CFD Toolkit
timeVaryingUniformTotalPressureFvPatchScalarField Class Reference

A time-varying form of a uniform total pressure boundary condition. More...

#include <finiteVolume/timeVaryingUniformTotalPressureFvPatchScalarField.H>


Detailed Description

List of all members.

Public Member Functions

 TypeName ("timeVaryingTotalPressure")
 Runtime type information.
 timeVaryingUniformTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field.
 timeVaryingUniformTotalPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 timeVaryingUniformTotalPressureFvPatchScalarField (const timeVaryingUniformTotalPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given patch field onto a new patch.
 timeVaryingUniformTotalPressureFvPatchScalarField (const timeVaryingUniformTotalPressureFvPatchScalarField &)
 Construct as copy.
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone.
 timeVaryingUniformTotalPressureFvPatchScalarField (const timeVaryingUniformTotalPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference.
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference.
const wordUName () const
 Return the name of the velocity field.
wordUName ()
 Return reference to the name of the velocity field.
scalar gamma () const
 Return the heat capacity ratio.
scalar & gamma ()
 Return reference to the heat capacity ratio to allow adjustment.
scalar p0 () const
 Return the total pressure.
scalar p0 ()
 Return reference to the total pressure to allow adjustment.
const interpolationTable
< scalar > & 
totalPressureTimeSeries () const
 Return the time series used.
virtual void updateCoeffs (const vectorField &Up)
 Update the coefficients associated with the patch field.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Constructor & Destructor Documentation

Construct from patch and internal field.

Definition at line 36 of file timeVaryingUniformTotalPressureFvPatchScalarField.C.

Referenced by timeVaryingUniformTotalPressureFvPatchScalarField::clone().

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

Construct from patch, internal field and dictionary.

Definition at line 54 of file timeVaryingUniformTotalPressureFvPatchScalarField.C.

References dictionary::found(), scalarField(), and fvPatch::size().

Construct by mapping given patch field onto a new patch.

Definition at line 85 of file timeVaryingUniformTotalPressureFvPatchScalarField.C.

Construct as copy setting internal field reference.

Definition at line 122 of file timeVaryingUniformTotalPressureFvPatchScalarField.C.


Member Function Documentation

TypeName ( "timeVaryingTotalPressure"  )

Runtime type information.

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

Construct and return a clone setting internal field reference.

Definition at line 139 of file timeVaryingUniformTotalPressureFvPatchScalarField.H.

References timeVaryingUniformTotalPressureFvPatchScalarField::timeVaryingUniformTotalPressureFvPatchScalarField().

const word& UName ( ) const
inline

Return the name of the velocity field.

Definition at line 155 of file timeVaryingUniformTotalPressureFvPatchScalarField.H.

word& UName ( )
inline

Return reference to the name of the velocity field.

to allow adjustment

Definition at line 162 of file timeVaryingUniformTotalPressureFvPatchScalarField.H.

scalar gamma ( ) const
inline

Return the heat capacity ratio.

Definition at line 168 of file timeVaryingUniformTotalPressureFvPatchScalarField.H.

scalar& gamma ( )
inline

Return reference to the heat capacity ratio to allow adjustment.

Definition at line 174 of file timeVaryingUniformTotalPressureFvPatchScalarField.H.

scalar p0 ( ) const
inline

Return the total pressure.

Definition at line 180 of file timeVaryingUniformTotalPressureFvPatchScalarField.H.

scalar p0 ( )
inline

Return reference to the total pressure to allow adjustment.

Definition at line 186 of file timeVaryingUniformTotalPressureFvPatchScalarField.H.

const interpolationTable<scalar>& totalPressureTimeSeries ( ) const
inline

Return the time series used.

Definition at line 192 of file timeVaryingUniformTotalPressureFvPatchScalarField.H.

void updateCoeffs ( const vectorField Up)
virtual

Update the coefficients associated with the patch field.

using the given patch velocity field

Definition at line 141 of file timeVaryingUniformTotalPressureFvPatchScalarField.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, magSqr(), Foam::operator==(), pos(), Foam::pow(), and rho.

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 210 of file timeVaryingUniformTotalPressureFvPatchScalarField.C.

void write ( Ostream os) const
virtual

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