ParticleForce< CloudType > Class Template Reference

Abstract base class for particle forces. More...

Inheritance diagram for ParticleForce< CloudType >:
[legend]

Public Types

typedef VectorSpace< Vector< vector >, vector, 2 > returnType
 Convenience typedef for return type. More...
 

Public Member Functions

 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 autoPtr< ParticleForce< CloudType > > clone () const
 Construct and return a clone. More...
 
virtual ~ParticleForce ()
 Destructor. More...
 
const CloudTypeowner () const
 Return const access to the cloud owner. More...
 
CloudTypeowner ()
 Return reference to the cloud owner. More...
 
const fvMeshmesh () const
 Return the mesh database. More...
 
const dictionarycoeffs () const
 Return the force coefficients dictionary. 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 coupled force. 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...
 
virtual scalar massAdd (const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
 Return the added mass. More...
 

Static Public Member Functions

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::ParticleForce< CloudType >

Abstract base class for particle forces.

Source files

Definition at line 59 of file ParticleForce.H.

Member Typedef Documentation

◆ returnType

Convenience typedef for return type.

Definition at line 94 of file ParticleForce.H.

Constructor & Destructor Documentation

◆ ParticleForce() [1/2]

ParticleForce ( CloudType owner,
const fvMesh mesh,
const dictionary dict,
const word forceType,
const bool  readCoeffs 
)

Construct from mesh.

Definition at line 33 of file ParticleForce.C.

References dict, dictionary::dictName(), Foam::exit(), Foam::FatalIOError, and FatalIOErrorInFunction.

Here is the call graph for this function:

◆ ParticleForce() [2/2]

Construct copy.

Definition at line 56 of file ParticleForce.C.

◆ ~ParticleForce()

~ParticleForce
virtual

Destructor.

Definition at line 67 of file ParticleForce.C.

Member Function Documentation

◆ TypeName()

TypeName ( "particleForce"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
ParticleForce< CloudType ,
dictionary  ,
(CloudType &owner, const fvMesh &mesh, const dictionary &dict ,
(owner, mesh, dict  
)

Declare runtime constructor selection table.

◆ clone()

◆ New()

Foam::autoPtr< Foam::ParticleForce< CloudType > > New ( CloudType owner,
const fvMesh mesh,
const dictionary dict,
const word forceType 
)
static

Selector.

Definition at line 35 of file ParticleForceNew.C.

References Foam::abort(), dict, Foam::endl(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, and mesh.

Here is the call graph for this function:

◆ owner() [1/2]

const CloudType & owner
inline

Return const access to the cloud owner.

Definition at line 31 of file ParticleForceI.H.

Referenced by TomiyamaLiftForce< CloudType >::Cl().

Here is the caller graph for this function:

◆ owner() [2/2]

CloudType & owner
inline

Return reference to the cloud owner.

Definition at line 38 of file ParticleForceI.H.

◆ mesh()

const Foam::fvMesh & mesh
inline

Return the mesh database.

Definition at line 45 of file ParticleForceI.H.

◆ coeffs()

const Foam::dictionary & coeffs
inline

Return the force coefficients dictionary.

Definition at line 52 of file ParticleForceI.H.

◆ cacheFields()

◆ 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 coupled force.

Reimplemented in DistortedSphereDragForce< CloudType >, ErgunWenYuDragForce< CloudType >, NonSphereDragForce< CloudType >, PlessisMasliyahDragForce< CloudType >, SphereDragForce< CloudType >, WenYuDragForce< CloudType >, LiftForce< CloudType >, PressureGradientForce< CloudType >, VirtualMassForce< CloudType >, and BrownianMotionForce< CloudType >.

Definition at line 79 of file ParticleForce.C.

References forceSuSp::Sp(), forceSuSp::Su(), and Foam::Zero.

Here is the call graph for this function:

◆ calcNonCoupled()

Foam::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
virtual

◆ 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 in PressureGradientForce< CloudType >, and VirtualMassForce< CloudType >.

Definition at line 117 of file ParticleForce.C.


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