Public Member Functions | List of all members
pressureTools Class Reference

This function object includes tools to manipulate the pressure into different forms. These currently include: More...

Public Member Functions

 TypeName ("pressureTools")
 Runtime type information. More...
 
 pressureTools (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false)
 Construct for given objectRegistry and dictionary. More...
 
virtual ~pressureTools ()
 Destructor. More...
 
virtual const wordname () const
 Return name of the set of pressureTools. More...
 
virtual void read (const dictionary &)
 Read the pressureTools data. More...
 
virtual void execute ()
 Execute, currently does nothing. More...
 
virtual void end ()
 Execute at the final time-loop, currently does nothing. More...
 
virtual void timeSet ()
 Called when time was set at the end of the Time::operator++. More...
 
virtual void write ()
 Calculate the pressureTools and write. More...
 
virtual void updateMesh (const mapPolyMesh &)
 Update for changes of mesh. More...
 
virtual void movePoints (const polyMesh &)
 Update for changes of mesh. More...
 

Detailed Description

This function object includes tools to manipulate the pressure into different forms. These currently include:

- static pressure

\[ p_s = \rho p_k \]

where

$ \rho $ = density [kg/m3]
$ U $ = velocity [m/s]
$ \rho_{\inf} $ = freestream density [kg/m3]
$ p_{\inf} $ = freestream pressure [Pa]
$ U_{\inf} $ = freestream velocity [m/s]
$ p_k $ = kinematic pressure (p/rho)[m2/s2]
$ p_s $ = pressure [Pa]
$ p_T $ = total pressure [Pa]
$ p_{ref} $ = reference pressure level [Pa]
$ Cp_{s} $ = pressure coefficient
$ Cp_{T} $ = total pressure coefficient

The function object will operate on both kinematic ( $ p_k $) and static pressure ( $ p_s $) fields, and the result is written as a volScalarField.

The modes of operation are:

Mode calcTotal calcCoeff
static pressure no no
total pressure yes no
pressure coefficient no yes
total pressure coefficient yes yes

Example of function object specification to calculate pressure coefficient:

    pressureTools1
    {
        type        pressureTools;
        functionObjectLibs ("libutilityFunctionObjects.so");
        ...
        calcTotal   no;
        calcCoeff   yes;
    }


Function object usage

Property Description Required Default value
type type name: pressureTools yes
calcTotal Calculate total coefficient yes
pRef Reference pressure for total pressure no 0.0
calcCoeff Calculate pressure coefficient yes
pInf Freestream pressure for coefficient calculation no
UInf Freestream velocity for coefficient calculation no
rhoInf Freestream density for coefficient calculation no
Source files

Definition at line 233 of file pressureTools.H.

Constructor & Destructor Documentation

pressureTools ( const word name,
const objectRegistry obr,
const dictionary dict,
const bool  loadFromFiles = false 
)

Construct for given objectRegistry and dictionary.

Allow the possibility to load fields from files

Definition at line 183 of file pressureTools.C.

References Foam::dimPressure, Foam::endl(), mesh, Foam::nl, IOobject::NO_READ, IOobject::NO_WRITE, Foam::read(), fvMesh::time(), Time::timeName(), and WarningIn.

Here is the call graph for this function:

~pressureTools ( )
virtual

Destructor.

Definition at line 257 of file pressureTools.C.

Member Function Documentation

TypeName ( "pressureTools"  )

Runtime type information.

virtual const word& name ( ) const
inlinevirtual

Return name of the set of pressureTools.

Definition at line 333 of file pressureTools.H.

References pressureTools::end(), pressureTools::execute(), pressureTools::read(), pressureTools::timeSet(), and pressureTools::write().

Here is the call graph for this function:

void read ( const dictionary dict)
virtual

Read the pressureTools data.

Definition at line 263 of file pressureTools.C.

References Foam::endl(), dictionary::lookup(), Foam::mag(), Foam::magSqr(), dictionary::readIfPresent(), Foam::type(), and WarningIn.

Referenced by pressureTools::name().

Here is the call graph for this function:

Here is the caller graph for this function:

void execute ( )
virtual

Execute, currently does nothing.

Definition at line 304 of file pressureTools.C.

References pDyn(), and pRef.

Referenced by pressureTools::name().

Here is the call graph for this function:

Here is the caller graph for this function:

void end ( )
virtual

Execute at the final time-loop, currently does nothing.

Definition at line 321 of file pressureTools.C.

Referenced by pressureTools::name().

Here is the caller graph for this function:

void timeSet ( )
virtual

Called when time was set at the end of the Time::operator++.

Definition at line 330 of file pressureTools.C.

Referenced by pressureTools::name().

Here is the caller graph for this function:

void write ( )
virtual

Calculate the pressureTools and write.

Definition at line 336 of file pressureTools.C.

References Foam::endl(), Foam::Info, IOobject::name(), Foam::nl, Foam::type(), and regIOobject::write().

Referenced by pressureTools::name().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void updateMesh ( const mapPolyMesh )
inlinevirtual

Update for changes of mesh.

Definition at line 354 of file pressureTools.H.

virtual void movePoints ( const polyMesh )
inlinevirtual

Update for changes of mesh.

Definition at line 358 of file pressureTools.H.


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