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

functor returns pointwise pore radius for packings of spheres given by indicators returns NAN for non-pore voxels More...

#include <latticePhysTauFromBoundaryDistance3D.h>

+ Inheritance diagram for olb::BlockLatticePhysTauFromBoundaryDistance3D< T, DESCRIPTOR, TDESCRIPTOR >:
+ Collaboration diagram for olb::BlockLatticePhysTauFromBoundaryDistance3D< T, DESCRIPTOR, TDESCRIPTOR >:

Public Member Functions

 BlockLatticePhysTauFromBoundaryDistance3D (BlockLattice< T, DESCRIPTOR > &blockLattice, BlockGeometry< T, 3 > &blockGeometry, XMLreader const &xmlReader, ThermalUnitConverter< T, DESCRIPTOR, TDESCRIPTOR > const &converter, const T p, const T T_avg, const T c_p, const T beta, const T lambda_0, const T sigma, const T p_0, const T n_0)
 
bool operator() (T output[], const int input[]) override
 has to be implemented for 'every' derived class
 
 BlockLatticePhysTauFromBoundaryDistance3D (BlockLattice< T, DESCRIPTOR > &blockLattice, BlockGeometry< T, 3 > &blockGeometry, XMLreader const &xmlReader, ThermalUnitConverter< T, DESCRIPTOR, TDESCRIPTOR > const &converter, const T p, const T T_avg, const T c_p, const T beta, const T lambda_0, const T sigma, const T p_0, const T n_0)
 
bool operator() (T output[], const int input[]) override
 has to be implemented for 'every' derived class
 
- Public Member Functions inherited from olb::BlockLatticeF3D< T, TDESCRIPTOR >
BlockLattice< T, TDESCRIPTOR > & getBlock ()
 Copy Constructor.
 
- Public Member Functions inherited from olb::BlockF3D< T >
 ~BlockF3D () override
 virtual destructor for defined behaviour
 
virtual BlockStructureD< 3 > & getBlockStructure () const
 
BlockF3D< T > & operator- (BlockF3D< T > &rhs)
 
BlockF3D< T > & operator+ (BlockF3D< T > &rhs)
 
BlockF3D< T > & operator* (BlockF3D< T > &rhs)
 
BlockF3D< T > & operator/ (BlockF3D< T > &rhs)
 
- Public Member Functions inherited from olb::GenericF< T, int >
virtual ~GenericF ()=default
 
int getSourceDim () const
 read only access to member variable _m
 
int getTargetDim () const
 read only access to member variable _n
 
std::string & getName ()
 read and write access to name
 
std::string const & getName () const
 read only access to name
 
bool operator() (T output[])
 wrapper that call the pure virtual operator() (T output[], const S input[]) from above
 
bool operator() (T output[], int input0)
 
bool operator() (T output[], int input0, int input1)
 
bool operator() (T output[], int input0, int input1, int input2)
 
bool operator() (T output[], int input0, int input1, int input2, int input3)
 

Additional Inherited Members

- Public Types inherited from olb::GenericF< T, int >
using targetType
 
using sourceType
 
- Public Attributes inherited from olb::GenericF< T, int >
std::shared_ptr< GenericF< T, int > > _ptrCalcC
 memory management, frees resouces (calcClass)
 
- Protected Member Functions inherited from olb::BlockLatticeThermalPhysF3D< T, DESCRIPTOR, TDESCRIPTOR >
 BlockLatticeThermalPhysF3D (BlockLattice< T, TDESCRIPTOR > &blockLattice, const ThermalUnitConverter< T, DESCRIPTOR, TDESCRIPTOR > &converter, int targetDim)
 
- Protected Member Functions inherited from olb::BlockLatticeF3D< T, TDESCRIPTOR >
 BlockLatticeF3D (BlockLattice< T, TDESCRIPTOR > &blockLattice, int targetDim)
 
- Protected Member Functions inherited from olb::BlockF3D< T >
 BlockF3D (BlockStructureD< 3 > &blockStructure, int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, int >
 GenericF (int targetDim, int sourceDim)
 
- Protected Attributes inherited from olb::BlockLatticeThermalPhysF3D< T, DESCRIPTOR, TDESCRIPTOR >
const ThermalUnitConverter< T, DESCRIPTOR, TDESCRIPTOR > & _converter
 
- Protected Attributes inherited from olb::BlockLatticeF3D< T, TDESCRIPTOR >
BlockLattice< T, TDESCRIPTOR > & _blockLattice
 
- Protected Attributes inherited from olb::BlockF3D< T >
BlockStructureD< 3 > & _blockStructure
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename TDESCRIPTOR>
class olb::BlockLatticePhysTauFromBoundaryDistance3D< T, DESCRIPTOR, TDESCRIPTOR >

functor returns pointwise pore radius for packings of spheres given by indicators returns NAN for non-pore voxels

Definition at line 64 of file latticePhysTauFromBoundaryDistance3D.h.

Constructor & Destructor Documentation

◆ BlockLatticePhysTauFromBoundaryDistance3D() [1/2]

template<typename T , typename DESCRIPTOR , typename TDESCRIPTOR >
olb::BlockLatticePhysTauFromBoundaryDistance3D< T, DESCRIPTOR, TDESCRIPTOR >::BlockLatticePhysTauFromBoundaryDistance3D ( BlockLattice< T, DESCRIPTOR > & blockLattice,
BlockGeometry< T, 3 > & blockGeometry,
XMLreader const & xmlReader,
ThermalUnitConverter< T, DESCRIPTOR, TDESCRIPTOR > const & converter,
const T p,
const T T_avg,
const T c_p,
const T beta,
const T lambda_0,
const T sigma,
const T p_0,
const T n_0 )

Definition at line 62 of file latticeTauFromBoundaryDistance3D.hh.

64 : BlockLatticeThermalPhysF3D<T,DESCRIPTOR,TDESCRIPTOR>(blockLattice,converter,1), _blockGeometry(blockGeometry), _distanceFunctor(blockLattice, blockGeometry, xmlReader), _tmp1(lambda_0 * 287.058 * T_avg / p / c_p), _tmp2(2. * beta / (util::sqrt(2.) * M_PI * sigma * sigma * p * n_0 / p_0))
65{
66 this->getName() = "physTauFromBoundaryDistance";
67}
#define M_PI
std::string & getName()
read and write access to name
Definition genericF.hh:51
cpu::simd::Pack< T > sqrt(cpu::simd::Pack< T > value)
Definition pack.h:100

References olb::GenericF< T, int >::getName().

+ Here is the call graph for this function:

◆ BlockLatticePhysTauFromBoundaryDistance3D() [2/2]

template<typename T , typename DESCRIPTOR , typename TDESCRIPTOR >
olb::BlockLatticePhysTauFromBoundaryDistance3D< T, DESCRIPTOR, TDESCRIPTOR >::BlockLatticePhysTauFromBoundaryDistance3D ( BlockLattice< T, DESCRIPTOR > & blockLattice,
BlockGeometry< T, 3 > & blockGeometry,
XMLreader const & xmlReader,
ThermalUnitConverter< T, DESCRIPTOR, TDESCRIPTOR > const & converter,
const T p,
const T T_avg,
const T c_p,
const T beta,
const T lambda_0,
const T sigma,
const T p_0,
const T n_0 )

Member Function Documentation

◆ operator()() [1/2]

template<typename T , typename DESCRIPTOR , typename TDESCRIPTOR >
bool olb::BlockLatticePhysTauFromBoundaryDistance3D< T, DESCRIPTOR, TDESCRIPTOR >::operator() ( T output[],
const int input[] )
overridevirtual

has to be implemented for 'every' derived class

Implements olb::GenericF< T, int >.

Definition at line 71 of file latticeTauFromBoundaryDistance3D.hh.

72{
73 T L[1] = {0.};
74 _distanceFunctor(L, input);
75 if ( L[0] < this->_converter.getPhysDeltaX() ) {
76 L[0] = this->_converter.getPhysDeltaX();
77 }
78
79 const T alpha = _tmp1 / ( 1. + _tmp2 / L[0] );
80
81 output[0] = alpha / this->_converter.getConversionFactorViscosity() * descriptors::invCs2<T,TDESCRIPTOR>() + 0.5;
82
83 // std::cout << L[0] << " " << alpha << " " << output[0] << std::endl;
84
85 return true;
86}
const ThermalUnitConverter< T, DESCRIPTOR, TDESCRIPTOR > & _converter
constexpr T getConversionFactorViscosity() const
access (read-only) to private member variable
constexpr T getPhysDeltaX() const
returns grid spacing (voxel length) in m

◆ operator()() [2/2]

template<typename T , typename DESCRIPTOR , typename TDESCRIPTOR >
bool olb::BlockLatticePhysTauFromBoundaryDistance3D< T, DESCRIPTOR, TDESCRIPTOR >::operator() ( T output[],
const int input[] )
overridevirtual

has to be implemented for 'every' derived class

Implements olb::GenericF< T, int >.


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