VirtualMassForce< CloudType > Class Template Reference

Calculates particle virtual mass force. More...

Inheritance diagram for VirtualMassForce< CloudType >:
Collaboration diagram for VirtualMassForce< CloudType >:

Public Member Functions

 TypeName ("virtualMass")
 Runtime type information. More...
 
 VirtualMassForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
 Construct from mesh. More...
 
 VirtualMassForce (const VirtualMassForce &pgf)
 Construct copy. More...
 
virtual autoPtr< ParticleForce< CloudType > > clone () const
 Construct and return a clone. More...
 
virtual ~VirtualMassForce ()
 Destructor. More...
 
virtual void cacheFields (const bool store)
 Cache fields. More...
 
virtual forceSuSp calcCoupled (const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, 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 typename CloudType::parcelType::trackingData &td, const scalar mass) const
 Return the added mass. More...
 
- Public Member Functions inherited from PressureGradientForce< CloudType >
 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 ~PressureGradientForce ()
 Destructor. More...
 
const interpolation< vector > & DUcDtInterp () const
 Return the rate of change of carrier phase velocity interpolator. 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 references 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 typename CloudType::parcelType::trackingData &td, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
 Calculate the non-coupled force. 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...
 
- Protected Attributes inherited from PressureGradientForce< CloudType >
const word UName_
 Name of velocity field. More...
 
autoPtr< interpolation< vector > > DUcDtInterpPtr_
 Rate of change of carrier phase velocity interpolator. More...
 

Detailed Description

template<class CloudType>
class Foam::VirtualMassForce< CloudType >

Calculates particle virtual mass force.

Source files

Definition at line 49 of file VirtualMassForce.H.

Constructor & Destructor Documentation

◆ VirtualMassForce() [1/2]

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

Construct from mesh.

Definition at line 32 of file VirtualMassForce.C.

◆ VirtualMassForce() [2/2]

Construct copy.

Definition at line 46 of file VirtualMassForce.C.

◆ ~VirtualMassForce()

~VirtualMassForce ( )
virtual

Destructor.

Definition at line 58 of file VirtualMassForce.C.

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

Here is the caller graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "virtualMass"  )

Runtime type information.

◆ clone()

virtual autoPtr<ParticleForce<CloudType> > clone ( ) const
inlinevirtual

◆ cacheFields()

void cacheFields ( const bool  store)
virtual

Cache fields.

Reimplemented from PressureGradientForce< CloudType >.

Definition at line 65 of file VirtualMassForce.C.

References VirtualMassForce< CloudType >::calcCoupled().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcCoupled()

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

Calculate the non-coupled force.

Reimplemented from PressureGradientForce< CloudType >.

Definition at line 73 of file VirtualMassForce.C.

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

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ massAdd()

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

Return the added mass.

Reimplemented from PressureGradientForce< CloudType >.

Definition at line 93 of file VirtualMassForce.C.

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

Here is the caller graph for this function:

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