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

#include <advectionDiffusionForces.h>

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

Public Member Functions

 AdvDiffBuoyancyForce3D (UnitConverter< T, DESCRIPTOR > const &converter_, Vector< T, 3 > g, T pRho_)
 
 ~AdvDiffBuoyancyForce3D () 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::AdvDiffBuoyancyForce3D< T, DESCRIPTOR, ADLattice >

Definition at line 79 of file advectionDiffusionForces.h.

Constructor & Destructor Documentation

◆ AdvDiffBuoyancyForce3D()

template<typename T , typename DESCRIPTOR , typename ADLattice >
olb::AdvDiffBuoyancyForce3D< T, DESCRIPTOR, ADLattice >::AdvDiffBuoyancyForce3D ( UnitConverter< T, DESCRIPTOR > const & converter_,
Vector< T, 3 > g,
T pRho_ )

Definition at line 83 of file advectionDiffusionForces.hh.

84{
85 initArg = 8;
86 densDiff = (pRho_ - converter_.getPhysDensity())*converter_.getConversionFactorTime()/pRho_;
87 gravity[0] = converter_.getLatticeVelocity(g[0]);
88 gravity[1] = converter_.getLatticeVelocity(g[1]);
89 gravity[2] = converter_.getLatticeVelocity(g[2]);
90}

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

+ Here is the call graph for this function:

◆ ~AdvDiffBuoyancyForce3D()

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

Definition at line 82 of file advectionDiffusionForces.h.

82{};

Member Function Documentation

◆ applyForce()

template<typename T , typename DESCRIPTOR , typename ADLattice >
void olb::AdvDiffBuoyancyForce3D< 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 94 of file advectionDiffusionForces.hh.

95{
96 for (int i=0; i < DESCRIPTOR::d; i++) {
97 force[i] += densDiff*gravity[i];
98 }
99}

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