Loading...
Searching...
No Matches
VirtualMassForce< CloudType > Class Template Reference

Calculates particle virtual mass force. More...

#include <VirtualMassForce.H>

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

Public Member Functions

 TypeName ("virtualMass")
 Runtime type information.
 VirtualMassForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
 Construct from mesh.
 VirtualMassForce (const VirtualMassForce &pgf)
 Construct copy.
virtual autoPtr< ParticleForce< CloudType > > clone () const
 Construct and return a clone.
virtual ~VirtualMassForce ()
 Destructor.
virtual void cacheFields (const bool store)
 Cache fields.
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.
virtual scalar massAdd (const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
 Return the added mass.
Public Member Functions inherited from PressureGradientForce< CloudType >
 TypeName ("pressureGradient")
 Runtime type information.
 PressureGradientForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName)
 Construct from mesh.
 PressureGradientForce (const PressureGradientForce &pgf)
 Construct copy.
virtual ~PressureGradientForce ()
 Destructor.
const interpolation< vector > & DUcDtInterp () const
 Return the rate of change of carrier phase velocity interpolator.
Public Member Functions inherited from ParticleForce< CloudType >
 TypeName ("particleForce")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, ParticleForce, dictionary,(CloudType &owner, const fvMesh &mesh, const dictionary &dict),(owner, mesh, dict))
 Declare runtime constructor selection table.
 ParticleForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs)
 Construct from mesh.
 ParticleForce (const ParticleForce &pf)
 Construct copy.
virtual ~ParticleForce ()
 Destructor.
const CloudTypeowner () const noexcept
 Return const access to the cloud owner.
CloudTypeowner () noexcept
 Return reference to the cloud owner.
const fvMeshmesh () const noexcept
 Return the mesh database.
const dictionarycoeffs () const noexcept
 Return the force coefficients dictionary.
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.

Additional Inherited Members

Public Types inherited from ParticleForce< CloudType >
typedef VectorSpace< Vector< vector >, vector, 2 > returnType
 Convenience typedef for return type.
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.
Protected Attributes inherited from PressureGradientForce< CloudType >
const word UName_
 Name of velocity field.
autoPtr< interpolation< vector > > DUcDtInterpPtr_
 Rate of change of carrier phase velocity interpolator.

Detailed Description

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

Calculates particle virtual mass force.

Source files

Definition at line 50 of file VirtualMassForce.H.

Constructor & Destructor Documentation

◆ VirtualMassForce() [1/2]

template<class CloudType>
VirtualMassForce ( CloudType & owner,
const fvMesh & mesh,
const dictionary & dict,
const word & forceType = typeName )

Construct from mesh.

Definition at line 26 of file VirtualMassForce.C.

References ParticleForce< CloudType >::coeffs(), dict, ParticleForce< CloudType >::mesh(), ParticleForce< CloudType >::owner(), and PressureGradientForce< CloudType >::PressureGradientForce().

Referenced by clone(), TypeName(), and VirtualMassForce().

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

◆ VirtualMassForce() [2/2]

template<class CloudType>
VirtualMassForce ( const VirtualMassForce< CloudType > & pgf)

Construct copy.

Definition at line 40 of file VirtualMassForce.C.

References PressureGradientForce< CloudType >::PressureGradientForce(), and VirtualMassForce().

Here is the call graph for this function:

◆ ~VirtualMassForce()

template<class CloudType>
~VirtualMassForce ( )
virtual

Destructor.

Definition at line 53 of file VirtualMassForce.C.

Member Function Documentation

◆ TypeName()

template<class CloudType>
TypeName ( "virtualMass" )

◆ clone()

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

Construct and return a clone.

Reimplemented from PressureGradientForce< CloudType >.

Definition at line 91 of file VirtualMassForce.H.

References VirtualMassForce().

Here is the call graph for this function:

◆ cacheFields()

template<class CloudType>
void cacheFields ( const bool store)
virtual

Cache fields.

Reimplemented from PressureGradientForce< CloudType >.

Definition at line 60 of file VirtualMassForce.C.

References PressureGradientForce< CloudType >::cacheFields().

Here is the call graph for this function:

◆ calcCoupled()

template<class CloudType>
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 67 of file VirtualMassForce.C.

References PressureGradientForce< CloudType >::calcCoupled(), p, Foam::Re(), forceSuSp::Su(), and td().

Here is the call graph for this function:

◆ massAdd()

template<class CloudType>
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 87 of file VirtualMassForce.C.

References p, and td().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • src/lagrangian/intermediate/submodels/Kinematic/ParticleForces/VirtualMass/VirtualMassForce.H
  • src/lagrangian/intermediate/submodels/Kinematic/ParticleForces/VirtualMass/VirtualMassForce.C