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

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

#include <smoothingFunctionals3D.h>

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

Protected Member Functions

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

Abstact class for all the volume-averaging smoothing functionals.

Definition at line 98 of file smoothingFunctionals3D.h.

Constructor & Destructor Documentation

◆ VolumeAveragingSmoothingFunctional()

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

Constructor.

Definition at line 154 of file smoothingFunctionals3D.hh.

156 : SmoothingFunctional<T, Lattice>(kernelLength, converter, sLattice, nVoxelInterpPoints)
157{}

Member Function Documentation

◆ compute()

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

Returns the weight for smoothing.

Implements olb::SmoothingFunctional< T, Lattice >.

Definition at line 160 of file smoothingFunctionals3D.hh.

161{
162 return this->smoothingFunction(physPosP[0] - physPosL[0])
163 * this->smoothingFunction(physPosP[1] - physPosL[1])
164 * this->smoothingFunction(physPosP[2] - physPosL[2]);
165}
virtual T smoothingFunction(T delta)=0
The actual smoothing function.

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