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

Vector force apply to particles to avoid the crossing of particles from one phase to the other. The magnitude is calculated as C*mass*grad(alpha). More...

#include <InterfaceForce.H>

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

Public Member Functions

 TypeName ("interface")
 Runtime type information.
 InterfaceForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict)
 Construct from mesh.
 InterfaceForce (const InterfaceForce &gf)
 Construct copy.
virtual autoPtr< ParticleForce< CloudType > > clone () const
 Construct and return a clone.
virtual ~InterfaceForce ()
 Destructor.
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::InterfaceForce< CloudType >

Vector force apply to particles to avoid the crossing of particles from one phase to the other. The magnitude is calculated as C*mass*grad(alpha).

Source files

Definition at line 51 of file InterfaceForce.H.

Constructor & Destructor Documentation

◆ InterfaceForce() [1/2]

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

Construct from mesh.

Definition at line 27 of file InterfaceForce.C.

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

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

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

◆ InterfaceForce() [2/2]

template<class CloudType>
InterfaceForce ( const InterfaceForce< CloudType > & gf)

Construct copy.

Definition at line 42 of file InterfaceForce.C.

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

Here is the call graph for this function:

◆ ~InterfaceForce()

template<class CloudType>
~InterfaceForce ( )
virtual

Destructor.

Definition at line 54 of file InterfaceForce.C.

Member Function Documentation

◆ TypeName()

template<class CloudType>
TypeName ( "interface" )

Runtime type information.

References dict, InterfaceForce(), ParticleForce< CloudType >::mesh(), 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 101 of file InterfaceForce.H.

References InterfaceForce().

Here is the call graph for this function:

◆ cacheFields()

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

Cache fields.

Reimplemented from ParticleForce< CloudType >.

Definition at line 61 of file InterfaceForce.C.

References alpha, regIOobject::checkOut(), Foam::fvc::grad(), mesh, interpolation< Type >::New(), ParticleForce< CloudType >::owner(), and regIOobject::store().

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 108 of file InterfaceForce.C.

References interpolation< Type >::interpolate(), 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:
  • src/lagrangian/intermediate/submodels/Kinematic/ParticleForces/Interface/InterfaceForce.H
  • src/lagrangian/intermediate/submodels/Kinematic/ParticleForces/Interface/InterfaceForce.C