Public Member Functions | Protected Attributes | List of all members
PressureGradientForce< CloudType > Class Template Reference

Calculates particle pressure gradient force. More...

Inheritance diagram for PressureGradientForce< CloudType >:
Inheritance graph
[legend]
Collaboration diagram for PressureGradientForce< CloudType >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("pressureGradient")
 Runtime type information. More...
 
 PressureGradientForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
 Construct from mesh. More...
 
 PressureGradientForce (const PressureGradientForce &pgf)
 Construct copy. More...
 
virtual autoPtr< ParticleForce< CloudType > > clone () const
 Construct and return a clone. More...
 
virtual ~PressureGradientForce ()
 Destructor. More...
 
const interpolation< vector > & DUcDtInterp () const
 Return the rate of change of carrier phase velocity interpolator. More...
 
virtual void cacheFields (const bool store)
 Cache fields. More...
 
virtual forceSuSp calcCoupled (const typename CloudType::parcelType &p, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
 Calculate the non-coupled force. More...
 
virtual scalar massAdd (const typename CloudType::parcelType &p, const scalar mass) const
 Return the added mass. More...
 
- Public Member Functions inherited from ParticleForce< CloudType >
 TypeName ("particleForce")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, ParticleForce, dictionary,( CloudType &owner, const fvMesh &mesh, const dictionary &dict ),(owner, mesh, dict))
 Declare runtime constructor selection table. More...
 
 ParticleForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs)
 Construct from mesh. More...
 
 ParticleForce (const ParticleForce &pf)
 Construct copy. More...
 
virtual ~ParticleForce ()
 Destructor. More...
 
const CloudTypeowner () const
 Return const access to the cloud owner. More...
 
CloudTypeowner ()
 Return refernce to the cloud owner. More...
 
const fvMeshmesh () const
 Return the mesh database. More...
 
const dictionarycoeffs () const
 Return the force coefficients dictionary. More...
 
virtual forceSuSp calcNonCoupled (const typename CloudType::parcelType &p, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
 Calculate the non-coupled force. More...
 

Protected Attributes

const word UName_
 Name of velocity field. More...
 
autoPtr< interpolation< vector > > DUcDtInterpPtr_
 Rate of change of carrier phase velocity interpolator. More...
 

Additional Inherited Members

- Public Types inherited from ParticleForce< CloudType >
typedef VectorSpace< Vector< vector >, vector, 2 > returnType
 Convenience typedef for return type. More...
 
- Static Public Member Functions inherited from ParticleForce< CloudType >
static autoPtr< ParticleForce< CloudType > > New (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType)
 Selector. More...
 

Detailed Description

template<class CloudType>
class Foam::PressureGradientForce< CloudType >

Calculates particle pressure gradient force.

Source files

Definition at line 52 of file PressureGradientForce.H.

Constructor & Destructor Documentation

PressureGradientForce ( CloudType owner,
const fvMesh mesh,
const dictionary dict,
const word forceType = typeName 
)

Construct from mesh.

Definition at line 34 of file PressureGradientForce.C.

Construct copy.

Definition at line 49 of file PressureGradientForce.C.

~PressureGradientForce ( )
virtual

Destructor.

Definition at line 62 of file PressureGradientForce.C.

Referenced by PressureGradientForce< CloudType >::clone().

Here is the caller graph for this function:

Member Function Documentation

TypeName ( "pressureGradient"  )

Runtime type information.

virtual autoPtr<ParticleForce<CloudType> > clone ( ) const
inlinevirtual
const Foam::interpolation< Foam::vector > & DUcDtInterp ( ) const
inline

Return the rate of change of carrier phase velocity interpolator.

Definition at line 30 of file PressureGradientForceI.H.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

Referenced by PressureGradientForce< CloudType >::clone().

Here is the call graph for this function:

Here is the caller graph for this function:

void cacheFields ( const bool  store)
virtual

Cache fields.

Reimplemented from ParticleForce< CloudType >.

Reimplemented in VirtualMassForce< CloudType >.

Definition at line 69 of file PressureGradientForce.C.

References PressureGradientForce< CloudType >::calcCoupled(), Foam::fvc::ddt(), Foam::fvc::grad(), and mesh.

Referenced by PressureGradientForce< CloudType >::clone().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::forceSuSp calcCoupled ( const typename CloudType::parcelType p,
const scalar  dt,
const scalar  mass,
const scalar  Re,
const scalar  muc 
) const
virtual

Calculate the non-coupled force.

Reimplemented from ParticleForce< CloudType >.

Reimplemented in VirtualMassForce< CloudType >.

Definition at line 120 of file PressureGradientForce.C.

References PressureGradientForce< CloudType >::massAdd(), and forceSuSp::Su().

Referenced by PressureGradientForce< CloudType >::cacheFields(), and PressureGradientForce< CloudType >::clone().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::scalar massAdd ( const typename CloudType::parcelType p,
const scalar  mass 
) const
virtual

Return the added mass.

Reimplemented from ParticleForce< CloudType >.

Reimplemented in VirtualMassForce< CloudType >.

Definition at line 141 of file PressureGradientForce.C.

Referenced by PressureGradientForce< CloudType >::calcCoupled(), and PressureGradientForce< CloudType >::clone().

Here is the caller graph for this function:

Member Data Documentation

const word UName_
protected

Name of velocity field.

Definition at line 61 of file PressureGradientForce.H.

autoPtr<interpolation<vector> > DUcDtInterpPtr_
protected

Rate of change of carrier phase velocity interpolator.

Definition at line 64 of file PressureGradientForce.H.


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