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

Smoothing functional as in Deen et al (2004), Chem. More...

#include <smoothingFunctionals3D.h>

+ Inheritance diagram for olb::DeenSmoothingFunctional< T, Lattice >:
+ Collaboration diagram for olb::DeenSmoothingFunctional< T, Lattice >:

Public Member Functions

 DeenSmoothingFunctional (T kernelLength, UnitConverter< T, Lattice > &converter, SuperLattice< T, Lattice > &sLattice)
 Constructor.
 
- Public Member Functions inherited from olb::SmoothingFunctional< T, Lattice >
virtual bool update (T physPosP[], int globic)
 
const std::deque< LatticePosAndWeight< T > > getData () const
 
int getNvoxelInterpPoints ()
 

Protected Member Functions

virtual T smoothingFunction (T delta) override
 The actual smoothing function.
 
- Protected Member Functions inherited from olb::LinearAveragingSmoothingFunctional< T, Lattice >
 LinearAveragingSmoothingFunctional (T kernelLength, UnitConverter< T, Lattice > &converter, SuperLattice< T, Lattice > &sLattice, int nVoxelInterpPoints=2)
 Constructor.
 
virtual T compute (T physPosP[], T physPosL[]) override
 Returns the weight for smoothing.
 
- Protected Member Functions inherited from olb::SmoothingFunctional< T, Lattice >
 SmoothingFunctional (T kernelLength, UnitConverter< T, Lattice > &converter, SuperLattice< T, Lattice > &sLattice, int nVoxelInterpPoints=2)
 Constructor.
 

Additional Inherited Members

- Protected Attributes inherited from olb::SmoothingFunctional< T, Lattice >
_kernelLength
 
UnitConverter< T, Lattice > & _converter
 
SuperLattice< T, Lattice > & _sLattice
 
std::deque< LatticePosAndWeight< T > > _latticePosAndWeight
 
int _nVoxelInterpPoints
 

Detailed Description

template<typename T, typename Lattice>
class olb::DeenSmoothingFunctional< T, Lattice >

Smoothing functional as in Deen et al (2004), Chem.

Eng. Sci 59.

Definition at line 110 of file smoothingFunctionals3D.h.

Constructor & Destructor Documentation

◆ DeenSmoothingFunctional()

template<typename T , typename Lattice >
olb::DeenSmoothingFunctional< T, Lattice >::DeenSmoothingFunctional ( T kernelLength,
UnitConverter< T, Lattice > & converter,
SuperLattice< T, Lattice > & sLattice )

Constructor.

Definition at line 171 of file smoothingFunctionals3D.hh.

173 : LinearAveragingSmoothingFunctional<T, Lattice>(kernelLength, converter, sLattice)
174{}

Member Function Documentation

◆ smoothingFunction()

template<typename T , typename Lattice >
T olb::DeenSmoothingFunctional< T, Lattice >::smoothingFunction ( T delta)
overrideprotectedvirtual

The actual smoothing function.

Implements olb::SmoothingFunctional< T, Lattice >.

Definition at line 177 of file smoothingFunctionals3D.hh.

178{
179 return ( util::pow(delta, 4)/util::pow(this->_kernelLength, 5)
180 - 2.*util::pow(delta, 2)/util::pow(this->_kernelLength, 3)
181 + 1./this->_kernelLength
182 );
183}
cpu::simd::Pack< T > pow(cpu::simd::Pack< T > base, cpu::simd::Pack< T > exp)
Definition pack.h:112

References olb::util::pow().

+ Here is the call graph for this function:

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