Abstract base class for particle forces. More...
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 CloudType & | owner () const |
Return const access to the cloud owner. More... | |
CloudType & | owner () |
Return references to the cloud owner. More... | |
const fvMesh & | mesh () const |
Return the mesh database. More... | |
const dictionary & | coeffs () 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... | |
Abstract base class for particle forces.
Definition at line 53 of file ParticleForce.H.
typedef VectorSpace<Vector<vector>, vector, 2> returnType |
Convenience typedef for return type.
Definition at line 88 of file ParticleForce.H.
ParticleForce | ( | CloudType & | owner, |
const fvMesh & | mesh, | ||
const dictionary & | dict, | ||
const word & | forceType, | ||
const bool | readCoeffs | ||
) |
Construct from mesh.
Definition at line 32 of file ParticleForce.C.
ParticleForce | ( | const ParticleForce< CloudType > & | pf | ) |
Construct copy.
Definition at line 61 of file ParticleForce.C.
|
virtual |
Destructor.
Definition at line 72 of file ParticleForce.C.
Referenced by ParticleForce< Foam::DSMCCloud >::clone().
TypeName | ( | "particleForce" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
ParticleForce< CloudType > | , | ||
dictionary | , | ||
(CloudType &owner, const fvMesh &mesh, const dictionary &dict) | , | ||
(owner, mesh, dict) | |||
) |
Declare runtime constructor selection table.
|
inlinevirtual |
Construct and return a clone.
Reimplemented in BrownianMotionForce< CloudType >, NonSphereDragForce< CloudType >, NonInertialFrameForce< CloudType >, LiftForce< CloudType >, TomiyamaLiftForce< CloudType >, SaffmanMeiLiftForce< CloudType >, ParamagneticForce< CloudType >, PressureGradientForce< CloudType >, WenYuDragForce< CloudType >, SphereDragForce< CloudType >, ScaledForce< CloudType >, SchillerNaumannDragForce< CloudType >, GravityForce< CloudType >, SRFForce< CloudType >, VirtualMassForce< CloudType >, ErgunWenYuDragForce< CloudType >, PlessisMasliyahDragForce< CloudType >, and DistortedSphereDragForce< CloudType >.
Definition at line 107 of file ParticleForce.H.
|
static |
Selector.
Definition at line 33 of file ParticleForceNew.C.
Referenced by ParticleForce< Foam::DSMCCloud >::clone().
|
inline |
Return const access to the cloud owner.
Definition at line 29 of file ParticleForceI.H.
Referenced by LiftForce< CloudType >::cacheFields(), and ParticleForce< Foam::DSMCCloud >::clone().
|
inline |
Return references to the cloud owner.
Definition at line 36 of file ParticleForceI.H.
|
inline |
Return the mesh database.
Definition at line 43 of file ParticleForceI.H.
Referenced by LiftForce< CloudType >::cacheFields(), and ParticleForce< Foam::DSMCCloud >::clone().
|
inline |
Return the force coefficients dictionary.
Definition at line 50 of file ParticleForceI.H.
Referenced by ParticleForce< Foam::DSMCCloud >::clone().
|
virtual |
Cache fields.
Reimplemented in BrownianMotionForce< CloudType >, NonInertialFrameForce< CloudType >, LiftForce< CloudType >, ParamagneticForce< CloudType >, PressureGradientForce< CloudType >, SRFForce< CloudType >, VirtualMassForce< CloudType >, and DenseDragForce< CloudType >.
Definition at line 79 of file ParticleForce.C.
Referenced by ParticleForce< Foam::DSMCCloud >::clone().
|
virtual |
Calculate the coupled force.
Reimplemented in BrownianMotionForce< CloudType >, NonSphereDragForce< CloudType >, LiftForce< CloudType >, PressureGradientForce< CloudType >, WenYuDragForce< CloudType >, SphereDragForce< CloudType >, ScaledForce< CloudType >, SchillerNaumannDragForce< CloudType >, VirtualMassForce< CloudType >, ErgunWenYuDragForce< CloudType >, PlessisMasliyahDragForce< CloudType >, and DistortedSphereDragForce< CloudType >.
Definition at line 85 of file ParticleForce.C.
Referenced by ParticleForce< Foam::DSMCCloud >::cacheFields(), and ParticleForce< Foam::DSMCCloud >::clone().
|
virtual |
Calculate the non-coupled force.
Reimplemented in NonInertialFrameForce< CloudType >, ParamagneticForce< CloudType >, ScaledForce< CloudType >, GravityForce< CloudType >, and SRFForce< CloudType >.
Definition at line 104 of file ParticleForce.C.
Referenced by ParticleForce< Foam::DSMCCloud >::calcCoupled(), and ParticleForce< Foam::DSMCCloud >::clone().
|
virtual |
Return the added mass.
Reimplemented in PressureGradientForce< CloudType >, ScaledForce< CloudType >, and VirtualMassForce< CloudType >.
Definition at line 123 of file ParticleForce.C.
Referenced by ParticleForce< Foam::DSMCCloud >::calcNonCoupled(), and ParticleForce< Foam::DSMCCloud >::clone().