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

Calculates particle non-inertial reference frame force. Variable names as from Landau and Lifshitz, Mechanics, 3rd Ed, p126-129. More...

#include <NonInertialFrameForce.H>

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

Public Member Functions

 TypeName ("nonInertialFrame")
 Runtime type information.
 NonInertialFrameForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict)
 Construct from mesh.
 NonInertialFrameForce (const NonInertialFrameForce &niff)
 Construct copy.
virtual autoPtr< ParticleForce< CloudType > > clone () const
 Construct and return a clone.
virtual ~NonInertialFrameForce ()
 Destructor.
const vectorW () const noexcept
 Return the linear acceleration of the reference frame.
const vectoromega () const noexcept
 Return the angular velocity of the reference frame.
const vectoromegaDot () const noexcept
 Return the angular acceleration of the reference frame.
const vectorcentreOfRotation () const noexcept
 Return the centre of rotation of the reference frame.
virtual void cacheFields (const bool store)
 Cache fields.
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.
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 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.
virtual scalar massAdd (const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
 Return the added mass.

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.

Detailed Description

template<class CloudType>
class Foam::NonInertialFrameForce< CloudType >

Calculates particle non-inertial reference frame force. Variable names as from Landau and Lifshitz, Mechanics, 3rd Ed, p126-129.

Source files

Definition at line 51 of file NonInertialFrameForce.H.

Constructor & Destructor Documentation

◆ NonInertialFrameForce() [1/2]

template<class CloudType>
NonInertialFrameForce ( CloudType & owner,
const fvMesh & mesh,
const dictionary & dict )

Construct from mesh.

Definition at line 28 of file NonInertialFrameForce.C.

References ParticleForce< CloudType >::coeffs(), dict, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, ParticleForce< CloudType >::mesh(), ParticleForce< CloudType >::owner(), ParticleForce< CloudType >::ParticleForce(), and Foam::Zero.

Referenced by NonInertialFrameForce(), and TypeName().

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

◆ NonInertialFrameForce() [2/2]

template<class CloudType>
NonInertialFrameForce ( const NonInertialFrameForce< CloudType > & niff)

Construct copy.

Definition at line 76 of file NonInertialFrameForce.C.

References NonInertialFrameForce(), and ParticleForce< CloudType >::ParticleForce().

Here is the call graph for this function:

◆ ~NonInertialFrameForce()

template<class CloudType>
~NonInertialFrameForce ( )
virtual

Destructor.

Definition at line 96 of file NonInertialFrameForce.C.

Member Function Documentation

◆ TypeName()

template<class CloudType>
TypeName ( "nonInertialFrame" )

Runtime type information.

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

Here is the call graph for this function:

◆ clone()

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

Construct and return a clone.

Reimplemented from ParticleForce< CloudType >.

Definition at line 126 of file NonInertialFrameForce.H.

References ParticleForce< CloudType >::ParticleForce().

Here is the call graph for this function:

◆ W()

template<class CloudType>
const vector & W ( ) const
inlinenoexcept

Return the linear acceleration of the reference frame.

Definition at line 148 of file NonInertialFrameForce.H.

References Foam::noexcept.

Referenced by cacheFields().

Here is the caller graph for this function:

◆ omega()

template<class CloudType>
const vector & omega ( ) const
inlinenoexcept

Return the angular velocity of the reference frame.

Definition at line 153 of file NonInertialFrameForce.H.

References Foam::noexcept.

Referenced by cacheFields().

Here is the caller graph for this function:

◆ omegaDot()

template<class CloudType>
const vector & omegaDot ( ) const
inlinenoexcept

Return the angular acceleration of the reference frame.

Definition at line 158 of file NonInertialFrameForce.H.

References Foam::noexcept.

Referenced by cacheFields().

Here is the caller graph for this function:

◆ centreOfRotation()

template<class CloudType>
const vector & centreOfRotation ( ) const
inlinenoexcept

Return the centre of rotation of the reference frame.

Definition at line 163 of file NonInertialFrameForce.H.

References Foam::noexcept.

Referenced by cacheFields().

Here is the caller graph for this function:

◆ cacheFields()

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

Cache fields.

Reimplemented from ParticleForce< CloudType >.

Definition at line 103 of file NonInertialFrameForce.C.

References centreOfRotation(), mesh, omega(), omegaDot(), W(), and Foam::Zero.

Here is the call graph for this function:

◆ calcNonCoupled()

template<class CloudType>
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

Calculate the non-coupled force.

Reimplemented from ParticleForce< CloudType >.

Definition at line 177 of file NonInertialFrameForce.C.

References p, Foam::Re(), forceSuSp::Su(), td(), and Foam::Zero.

Here is the call graph for this function:

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