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

#include <advectionDiffusionForces.h>

+ Inheritance diagram for olb::AdvDiffDragForce3D< T, DESCRIPTOR, ADLattice >:
+ Collaboration diagram for olb::AdvDiffDragForce3D< T, DESCRIPTOR, ADLattice >:

Public Member Functions

 AdvDiffDragForce3D (UnitConverter< T, DESCRIPTOR > const &converter_, T St_)
 
 AdvDiffDragForce3D (UnitConverter< T, DESCRIPTOR > const &converter_, T pRadius_, T pRho_)
 
 ~AdvDiffDragForce3D () override
 
void applyForce (T force[], Cell< T, DESCRIPTOR > *nsCell, Cell< T, ADLattice > *adCell, T vel[], int latticeR[]) override
 
- Public Member Functions inherited from olb::AdvectionDiffusionForce3D< T, DESCRIPTOR, ADLattice >
 AdvectionDiffusionForce3D ()
 
virtual ~AdvectionDiffusionForce3D ()
 
int getInitArg ()
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename ADLattice = descriptors::D3Q7<descriptors::VELOCITY,descriptors::VELOCITY2>>
class olb::AdvDiffDragForce3D< T, DESCRIPTOR, ADLattice >

Definition at line 51 of file advectionDiffusionForces.h.

Constructor & Destructor Documentation

◆ AdvDiffDragForce3D() [1/2]

template<typename T , typename DESCRIPTOR , typename ADLattice >
olb::AdvDiffDragForce3D< T, DESCRIPTOR, ADLattice >::AdvDiffDragForce3D ( UnitConverter< T, DESCRIPTOR > const & converter_,
T St_ )

Definition at line 33 of file advectionDiffusionForces.hh.

34{
35 initArg = 8;
36 dragCoeff = (converter_.getCharPhysVelocity()*converter_.getConversionFactorTime()) / (St_ * converter_.getCharPhysLength());
37}

References olb::UnitConverter< T, DESCRIPTOR >::getCharPhysLength(), olb::UnitConverter< T, DESCRIPTOR >::getCharPhysVelocity(), and olb::UnitConverter< T, DESCRIPTOR >::getConversionFactorTime().

+ Here is the call graph for this function:

◆ AdvDiffDragForce3D() [2/2]

template<typename T , typename DESCRIPTOR , typename ADLattice >
olb::AdvDiffDragForce3D< T, DESCRIPTOR, ADLattice >::AdvDiffDragForce3D ( UnitConverter< T, DESCRIPTOR > const & converter_,
T pRadius_,
T pRho_ )

Definition at line 41 of file advectionDiffusionForces.hh.

42{
43 initArg = 8;
44 dragCoeff = (9.*converter_.getPhysViscosity()*converter_.getPhysDensity()*converter_.getConversionFactorTime()) / (2.*pRho_*pRadius_*pRadius_);
45}

References olb::UnitConverter< T, DESCRIPTOR >::getConversionFactorTime(), olb::UnitConverter< T, DESCRIPTOR >::getPhysDensity(), and olb::UnitConverter< T, DESCRIPTOR >::getPhysViscosity().

+ Here is the call graph for this function:

◆ ~AdvDiffDragForce3D()

template<typename T , typename DESCRIPTOR , typename ADLattice = descriptors::D3Q7<descriptors::VELOCITY,descriptors::VELOCITY2>>
olb::AdvDiffDragForce3D< T, DESCRIPTOR, ADLattice >::~AdvDiffDragForce3D ( )
inlineoverride

Definition at line 55 of file advectionDiffusionForces.h.

55{};

Member Function Documentation

◆ applyForce()

template<typename T , typename DESCRIPTOR , typename ADLattice >
void olb::AdvDiffDragForce3D< T, DESCRIPTOR, ADLattice >::applyForce ( T force[],
Cell< T, DESCRIPTOR > * nsCell,
Cell< T, ADLattice > * adCell,
T vel[],
int latticeR[] )
overridevirtual

Implements olb::AdvectionDiffusionForce3D< T, DESCRIPTOR, ADLattice >.

Definition at line 49 of file advectionDiffusionForces.hh.

50{
51 T velF[3] = {0.,0.,0.};
52 nsCell->computeU(velF);
53 for (int i=0; i < DESCRIPTOR::d; i++) {
54 force[i] += dragCoeff*(velF[i]-vel[i]);
55 }
56}

References olb::ConstCell< T, DESCRIPTOR >::computeU().

+ Here is the call graph for this function:

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