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

#include <linearDampingForceForMagDipoleMoment3D.h>

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

Public Member Functions

 LinearDampingForceForMagDipoleMoment3D (T dynVisc, T frictionFac)
 
 LinearDampingForceForMagDipoleMoment3D (LinearDampingForceForMagDipoleMoment3D< T, PARTICLETYPE, DESCRIPTOR > &f)
 
 ~LinearDampingForceForMagDipoleMoment3D () 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::LinearDampingForceForMagDipoleMoment3D< T, PARTICLETYPE, DESCRIPTOR >

Definition at line 38 of file linearDampingForceForMagDipoleMoment3D.h.

Constructor & Destructor Documentation

◆ LinearDampingForceForMagDipoleMoment3D() [1/2]

template<typename T , template< typename U > class PARTICLETYPE, typename DESCRIPTOR >
olb::LinearDampingForceForMagDipoleMoment3D< T, PARTICLETYPE, DESCRIPTOR >::LinearDampingForceForMagDipoleMoment3D ( T dynVisc,
T frictionFac )

Definition at line 40 of file linearDampingForceForMagDipoleMoment3D.hh.

40 :
41 Force3D<T, PARTICLETYPE>(), _dynVisc(dynVisc), _frictionFac(frictionFac)
42{
43// this->_name = "LinearDampingForceForMagDipoleMoment3D";
44}

◆ LinearDampingForceForMagDipoleMoment3D() [2/2]

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

◆ ~LinearDampingForceForMagDipoleMoment3D()

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

Definition at line 44 of file linearDampingForceForMagDipoleMoment3D.h.

44{};

Member Function Documentation

◆ applyForce()

template<typename T , template< typename U > class PARTICLETYPE, typename DESCRIPTOR >
void olb::LinearDampingForceForMagDipoleMoment3D< 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 47 of file linearDampingForceForMagDipoleMoment3D.hh.

50{
51
52 Vector<T, 3> dampingForce = {T(0), T(0), T(0)} ;
53
54 for (int i = 0; i < 3; i++) {
55
56 dampingForce[i] = - 8 * M_PI * util::pow(p->getRad(), 3.) * _dynVisc * p->getAVel()[i] * _frictionFac ;
57 p->getTorque()[i] += dampingForce[i] ;
58 }
59}
#define M_PI
cpu::simd::Pack< T > pow(cpu::simd::Pack< T > base, cpu::simd::Pack< T > exp)
Definition pack.h:112

References M_PI, and olb::util::pow().

+ Here is the call graph for this function:

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