OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR > Class Template Reference

#include <stokesDragForceForHomVelField3D.h>

+ Inheritance diagram for olb::StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR >:
+ Collaboration diagram for olb::StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR >:

Public Member Functions

 StokesDragForceForHomVelField3D (T dynVisc, Vector< T, 3 > fluidVel)
 
 StokesDragForceForHomVelField3D (StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR > &f)
 
 ~StokesDragForceForHomVelField3D () override
 
void applyForce (typename std::deque< PARTICLETYPE< T > >::iterator p, int pInt, ParticleSystem3D< T, PARTICLETYPE > &psSys) override
 
- Public Member Functions inherited from olb::Force3D< T, PARTICLETYPE >
 Force3D ()
 
 Force3D (Force3D< T, PARTICLETYPE > &)
 
 Force3D (const Force3D< T, PARTICLETYPE > &)
 
virtual ~Force3D ()
 

Additional Inherited Members

- Protected Attributes inherited from olb::Force3D< T, PARTICLETYPE >
OstreamManager clout
 

Detailed Description

template<typename T, template< typename U > class PARTICLETYPE, typename DESCRIPTOR>
class olb::StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR >

Definition at line 38 of file stokesDragForceForHomVelField3D.h.

Constructor & Destructor Documentation

◆ StokesDragForceForHomVelField3D() [1/2]

template<typename T , template< typename U > class PARTICLETYPE, typename DESCRIPTOR >
olb::StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR >::StokesDragForceForHomVelField3D ( T dynVisc,
Vector< T, 3 > fluidVel )

Definition at line 34 of file stokesDragForceForHomVelField3D.hh.

34 :
35 Force3D<T, PARTICLETYPE>(), _dynVisc(dynVisc), _fluidVel(fluidVel)
36{
37// this->_name = "StokesDragForceForHomVelField3D";
38}

◆ StokesDragForceForHomVelField3D() [2/2]

template<typename T , template< typename U > class PARTICLETYPE, typename DESCRIPTOR >
olb::StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR >::StokesDragForceForHomVelField3D ( StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR > & f)

◆ ~StokesDragForceForHomVelField3D()

template<typename T , template< typename U > class PARTICLETYPE, typename DESCRIPTOR >
olb::StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR >::~StokesDragForceForHomVelField3D ( )
inlineoverride

Definition at line 44 of file stokesDragForceForHomVelField3D.h.

44{};

Member Function Documentation

◆ applyForce()

template<typename T , template< typename U > class PARTICLETYPE, typename DESCRIPTOR >
void olb::StokesDragForceForHomVelField3D< T, PARTICLETYPE, DESCRIPTOR >::applyForce ( typename std::deque< PARTICLETYPE< T > >::iterator p,
int pInt,
ParticleSystem3D< T, PARTICLETYPE > & psSys )
overridevirtual

Implements olb::Force3D< T, PARTICLETYPE >.

Definition at line 41 of file stokesDragForceForHomVelField3D.hh.

44{
45
46 Vector<T, 3> force = {T(0), T(0), T(0)} ;
47
48 for (int i = 0; i < 3; i++) {
49
50 force[i] = -1 * 6 * M_PI * p->getRad() * (p->getVel()[i] - _fluidVel[i]) * _dynVisc ;
51 p->getForce()[i] += force[i] ;
52 }
53
54}
#define M_PI

References M_PI.


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