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

Abstact class for all the linear-averaging smoothing functionals. More...

#include <smoothingFunctionals3D.h>

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

Protected Member Functions

 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.
 
virtual T smoothingFunction (T delta)=0
 The actual smoothing function.
 

Additional Inherited Members

- 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 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::LinearAveragingSmoothingFunctional< T, Lattice >

Abstact class for all the linear-averaging smoothing functionals.

Definition at line 86 of file smoothingFunctionals3D.h.

Constructor & Destructor Documentation

◆ LinearAveragingSmoothingFunctional()

template<typename T , typename Lattice >
olb::LinearAveragingSmoothingFunctional< T, Lattice >::LinearAveragingSmoothingFunctional ( T kernelLength,
UnitConverter< T, Lattice > & converter,
SuperLattice< T, Lattice > & sLattice,
int nVoxelInterpPoints = 2 )
protected

Constructor.

Definition at line 136 of file smoothingFunctionals3D.hh.

138 : SmoothingFunctional<T, Lattice>(kernelLength, converter, sLattice, nVoxelInterpPoints)
139{}

Member Function Documentation

◆ compute()

template<typename T , typename Lattice >
T olb::LinearAveragingSmoothingFunctional< T, Lattice >::compute ( T physPosP[],
T physPosL[] )
overrideprotectedvirtual

Returns the weight for smoothing.

Implements olb::SmoothingFunctional< T, Lattice >.

Definition at line 142 of file smoothingFunctionals3D.hh.

143{
144 return this->smoothingFunction ( util::sqrt (
145 util::pow(physPosP[0] - physPosL[0], 2) +
146 util::pow(physPosP[1] - physPosL[1], 2) +
147 util::pow(physPosP[2] - physPosL[2], 2) ) );
148}
virtual T smoothingFunction(T delta)=0
The actual smoothing function.
cpu::simd::Pack< T > sqrt(cpu::simd::Pack< T > value)
Definition pack.h:100
cpu::simd::Pack< T > pow(cpu::simd::Pack< T > base, cpu::simd::Pack< T > exp)
Definition pack.h:112

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

+ Here is the call graph for this function:

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