LBMD3Q19Thermal< DataType > Class Template Reference

Standard 3d Navier-Stokes LBM stencil operator. More...

#include <LBMD3Q19Thermal.h>

Inheritance diagram for LBMD3Q19Thermal< DataType >:
LBMBase< Vector< DataType, 26 >, Vector< DataType, 5 >, 3 > LBMBase< Vector< DataType, 26 >, Vector< DataType, 5 >, 3 > SchemeBase< vector_type, dim > SchemeBase< vector_type, dim > AMRBase< vector_type, dim > AMRBase< vector_type, dim > controlable controlable

List of all members.

Public Types

enum  ICPredefined {
  GasAtRest, ConstantMacro, ConstantMicro, GasAtRest,
  ConstantMacro, ConstantMicro
}
enum  BCPredefined {
  Symmetry, SlipWall, NoSlipWall, Inlet,
  Outlet, Pressure, SlidingWall, ExtrapolationEquilibrium,
  SlipWallTemperature, NoSlipWallTemperature, Symmetry, SlipWall,
  NoSlipWall, Inlet, Outlet, Pressure,
  SlidingWall, ExtrapolationEquilibrium, SlipWallTemperature, NoSlipWallTemperature,
  BounceBackDirichlet
}
enum  GFMPredefined {
  GFMExtrapolation, GFMSlipWallTemp, GFMNoSlipWallTemp, GFMWallLaw,
  GFMExtrapolation, GFMSlipWallTemp, GFMNoSlipWallTemp, GFMWallLaw,
  GFMBounceBack
}
enum  TurbulenceModel {
  laminar, LES_Smagorinsky, LES_dynamic, laminar,
  LES_Smagorinsky, LES_dynamic
}
enum  ICPredefined {
  GasAtRest, ConstantMacro, ConstantMicro, GasAtRest,
  ConstantMacro, ConstantMicro
}
enum  BCPredefined {
  Symmetry, SlipWall, NoSlipWall, Inlet,
  Outlet, Pressure, SlidingWall, ExtrapolationEquilibrium,
  SlipWallTemperature, NoSlipWallTemperature, Symmetry, SlipWall,
  NoSlipWall, Inlet, Outlet, Pressure,
  SlidingWall, ExtrapolationEquilibrium, SlipWallTemperature, NoSlipWallTemperature,
  BounceBackDirichlet
}
enum  GFMPredefined {
  GFMExtrapolation, GFMSlipWallTemp, GFMNoSlipWallTemp, GFMWallLaw,
  GFMExtrapolation, GFMSlipWallTemp, GFMNoSlipWallTemp, GFMWallLaw,
  GFMBounceBack
}
enum  TurbulenceModel {
  laminar, LES_Smagorinsky, LES_dynamic, laminar,
  LES_Smagorinsky, LES_dynamic
}
typedef base::vec_grid_data_type vec_grid_data_type
typedef base::grid_data_type grid_data_type
typedef base::MicroType MicroType
typedef base::MacroType MacroType
typedef GridData< MacroType, 3 > macro_grid_data_type
typedef base::SideName SideName
typedef base::point_type point_type
typedef base::vec_grid_data_type vec_grid_data_type
typedef base::grid_data_type grid_data_type
typedef base::MicroType MicroType
typedef base::MacroType MacroType
typedef GridData< MacroType, 3 > macro_grid_data_type
typedef base::SideName SideName
typedef base::point_type point_type

Public Member Functions

 LBMD3Q19Thermal ()
virtual ~LBMD3Q19Thermal ()
virtual void register_at (ControlDevice &Ctrl, const std::string &prefix)
virtual void SetupData (GridHierarchy *gh, const int &ghosts)
virtual MacroType MacroVariables (const MicroType &f) const
virtual MicroType Equilibrium (const MacroType &q) const
virtual void Collision (MicroType &f, const DataType dt) const
virtual int IncomingIndices (const int side, int indices[]) const
virtual int OutgoingIndices (const int side, int indices[]) const
virtual void ReverseStream (vec_grid_data_type &fvec, const BBox &bb, const int side) const
virtual void LocalStep (vec_grid_data_type &fvec, vec_grid_data_type &ovec, const BBox &bb, const double &dt) const
virtual double Step (vec_grid_data_type &fvec, vec_grid_data_type &ovec, vec_grid_data_type *Flux[], const double &t, const double &dt, const int &mpass) const
virtual void ICStandard (vec_grid_data_type &fvec, const int type, DataType *aux=0, const int naux=0, const int scaling=0) const
virtual void BCStandard (vec_grid_data_type &fvec, const BBox &bb, const int type, const int side, DataType *aux=0, const int naux=0, const int scaling=0) const
virtual void GFMBCStandard (vec_grid_data_type &fvec, const int type, const int &nc, const int *idx, const MicroType *f, const point_type *xc, const DataType *distance, const point_type *normal, DataType *aux=0, const int naux=0, const int scaling=0) const
virtual void Output (vec_grid_data_type &fvec, grid_data_type &workvec, const int cnt, const int skip_ghosts=1) const
virtual void Input (vec_grid_data_type &fvec, grid_data_type &workvec, const int cnt, const int skip_ghosts=1) const
virtual int Check (vec_grid_data_type &fvec, const BBox &bb, const double &time, const int verbose) const
virtual int NMethodOrder () const
const DataTypeL0 () const
const DataTypeT0 () const
void SetDensityScale (const DataType r0)
void SetPressureScale (const DataType p0)
void SetVelocityScale (const DataType u0)
void SetSpeedUp (const DataType s0)
virtual void SetTimeScale (const DataType t0)
void SetTemperatureScale (const DataType tpmin, const DataType tpmax)
const DataTypeDensityScale () const
const DataTypePressureScale () const
const DataType VelocityScale () const
const DataTypeTemperatureScale () const
const DataTypeSpeedUp () const
DataType LatticeViscosity (const DataType omega) const
DataType LatticeViscosityT (const DataType omega) const
DataType LatticeSpeedOfSound () const
DataType LatticeSpeedOfSoundT () const
void SetGas (DataType pr, DataType rho, DataType nu, DataType cs)
void SetThermalGas (const DataType tmin, const DataType tmax, const DataType diff, const DataType gp, const DataType betap)
virtual const DataType Omega (const DataType dt) const
virtual const DataType OmegaT (const DataType dt) const
const DataType Omega_LES_Smagorinsky (const MicroType &f, const MicroType &feq, const MacroType &q, const DataType dt) const
const DataType Omega_LES_dynamic (const MicroType &f, const MicroType &feq, const MacroType &q, const DataType dt) const
const int TurbulenceType () const
const DataTypeSmagorinskyConstant ()
const DataTypeGasDensity () const
const DataTypeGasPressure () const
const DataTypeGasViscosity () const
const DataTypeGasViscosityT () const
const DataTypeGasSpeedofSound () const
const DataType GasViscosity (const DataType omega, const DataType cs, const DataType dt) const
const DataType GasViscosityT (const DataType omegat, const DataType cs, const DataType dt) const
void SetGasProp (DataType g, DataType W, DataType R)
 LBMD3Q19Thermal ()
virtual ~LBMD3Q19Thermal ()
virtual void register_at (ControlDevice &Ctrl, const std::string &prefix)
virtual void SetupData (GridHierarchy *gh, const int &ghosts)
virtual MacroType MacroVariables (const MicroType &f) const
virtual MicroType Equilibrium (const MacroType &q) const
virtual void Collision (MicroType &f, const DataType dt) const
virtual int IncomingIndices (const int side, int indices[]) const
virtual int OutgoingIndices (const int side, int indices[]) const
virtual void ReverseStream (vec_grid_data_type &fvec, const BBox &bb, const int side) const
virtual void LocalStep (vec_grid_data_type &fvec, vec_grid_data_type &ovec, const BBox &bb, const double &dt) const
virtual double Step (vec_grid_data_type &fvec, vec_grid_data_type &ovec, vec_grid_data_type *Flux[], const double &t, const double &dt, const int &mpass) const
virtual void ICStandard (vec_grid_data_type &fvec, const int type, DataType *aux=0, const int naux=0, const int scaling=0) const
virtual void BCStandard (vec_grid_data_type &fvec, const BBox &bb, const int type, const int side, DataType *aux=0, const int naux=0, const int scaling=0) const
virtual void GFMBCStandard (vec_grid_data_type &fvec, const int type, const int &nc, const int *idx, const MicroType *f, const point_type *xc, const DataType *distance, const point_type *normal, DataType *aux=0, const int naux=0, const int scaling=0) const
virtual void Output (vec_grid_data_type &fvec, grid_data_type &workvec, const int cnt, const int skip_ghosts=1) const
virtual void Input (vec_grid_data_type &fvec, grid_data_type &workvec, const int cnt, const int skip_ghosts=1) const
virtual int Check (vec_grid_data_type &fvec, const BBox &bb, const double &time, const int verbose) const
virtual int NMethodOrder () const
const DataTypeL0 () const
const DataTypeT0 () const
void SetDensityScale (const DataType r0)
void SetPressureScale (const DataType p0)
void SetVelocityScale (const DataType u0)
void SetSpeedUp (const DataType s0)
virtual void SetTimeScale (const DataType t0)
void SetTemperatureScale (const DataType tpmin, const DataType tpmax)
const DataTypeDensityScale () const
const DataTypePressureScale () const
const DataType VelocityScale () const
const DataTypeTemperatureScale () const
const DataTypeSpeedUp () const
DataType LatticeViscosity (const DataType omega) const
DataType LatticeViscosityT (const DataType omega) const
DataType LatticeSpeedOfSound () const
DataType LatticeSpeedOfSoundT () const
void SetGas (DataType pr, DataType rho, DataType nu, DataType cs)
void SetThermalGas (const DataType tmin, const DataType tmax, const DataType diff, const DataType gp, const DataType betap)
virtual const DataType Omega (const DataType dt) const
virtual const DataType OmegaT (const DataType dt) const
const DataType Omega_LES_Smagorinsky (const MicroType &f, const MicroType &feq, const MacroType &q, const DataType dt) const
const DataType Omega_LES_dynamic (const MicroType &f, const MicroType &feq, const MacroType &q, const DataType dt) const
const int TurbulenceType () const
const DataTypeSmagorinskyConstant ()
const DataTypeGasDensity () const
const DataTypeGasPressure () const
const DataTypeGasViscosity () const
const DataTypeGasViscosityT () const
const DataTypeGasSpeedofSound () const
const DataType GasViscosity (const DataType omega, const DataType cs, const DataType dt) const
const DataType GasViscosityT (const DataType omegat, const DataType cs, const DataType dt) const
void SetGasProp (DataType g, DataType W, DataType R)

Protected Attributes

DataType cs2
DataType cs22
DataType cssq
DataType ds2
DataType dcs2
DataType P0
DataType R0
DataType U0
DataType S0
DataType Temp0
DataType prp
DataType rhop
DataType Tpmin
DataType Tpmax
DataType Tref
DataType csp
DataType cs2p
DataType nup
DataType nutp
DataType gbeta
DataType gp
DataType Wp
DataType Rp
DataType Cs_Smagorinsky
DataType turbulence
int method [1]
int mdx [26]
int mdy [26]
int mdz [26]

Detailed Description

template<class DataType>
class LBMD3Q19Thermal< DataType >

Standard 3d Navier-Stokes LBM stencil operator.

Density distribution indexing used, 3D-BGK-operator

X-Z:+ C13 | C10--C3--C7 | C11

X-Z:0 C16 C6 C17 \ | / C2--C0--C1 / | \ C18 C5 C15

X-Z:- C12 | C8--C4--C9 | C14

X-Z:+ Temp

| --C22-- |

X-Z:0 Temp C25 | C21--C19--C20 | C24

X-Z:- Temp

| --C23-- |

Author:
Stephen Wood, Ralf Deiterding
Version:
1.0
Date:
Jan-2013

Member Typedef Documentation

template<class DataType >
typedef base::grid_data_type LBMD3Q19Thermal< DataType >::grid_data_type

Reimplemented from SchemeBase< vector_type, dim >.

template<class DataType >
typedef base::grid_data_type LBMD3Q19Thermal< DataType >::grid_data_type

Reimplemented from SchemeBase< vector_type, dim >.

template<class DataType >
typedef GridData<MacroType,3> LBMD3Q19Thermal< DataType >::macro_grid_data_type
template<class DataType >
typedef GridData<MacroType,3> LBMD3Q19Thermal< DataType >::macro_grid_data_type
template<class DataType >
typedef base::point_type LBMD3Q19Thermal< DataType >::point_type

Reimplemented from SchemeBase< vector_type, dim >.

template<class DataType >
typedef base::point_type LBMD3Q19Thermal< DataType >::point_type

Reimplemented from SchemeBase< vector_type, dim >.

template<class DataType >
typedef base::SideName LBMD3Q19Thermal< DataType >::SideName

Reimplemented from SchemeBase< vector_type, dim >.

template<class DataType >
typedef base::SideName LBMD3Q19Thermal< DataType >::SideName

Reimplemented from SchemeBase< vector_type, dim >.


Member Enumeration Documentation

template<class DataType >
enum LBMD3Q19Thermal::BCPredefined
Enumerator:
Symmetry 
SlipWall 
NoSlipWall 
Inlet 
Outlet 
Pressure 
SlidingWall 
ExtrapolationEquilibrium 
SlipWallTemperature 
NoSlipWallTemperature 
Symmetry 
SlipWall 
NoSlipWall 
Inlet 
Outlet 
Pressure 
SlidingWall 
ExtrapolationEquilibrium 
SlipWallTemperature 
NoSlipWallTemperature 
BounceBackDirichlet 
template<class DataType >
enum LBMD3Q19Thermal::BCPredefined
Enumerator:
Symmetry 
SlipWall 
NoSlipWall 
Inlet 
Outlet 
Pressure 
SlidingWall 
ExtrapolationEquilibrium 
SlipWallTemperature 
NoSlipWallTemperature 
Symmetry 
SlipWall 
NoSlipWall 
Inlet 
Outlet 
Pressure 
SlidingWall 
ExtrapolationEquilibrium 
SlipWallTemperature 
NoSlipWallTemperature 
BounceBackDirichlet 
template<class DataType >
enum LBMD3Q19Thermal::GFMPredefined
Enumerator:
GFMExtrapolation 
GFMSlipWallTemp 
GFMNoSlipWallTemp 
GFMWallLaw 
GFMExtrapolation 
GFMSlipWallTemp 
GFMNoSlipWallTemp 
GFMWallLaw 
GFMBounceBack 
template<class DataType >
enum LBMD3Q19Thermal::GFMPredefined
Enumerator:
GFMExtrapolation 
GFMSlipWallTemp 
GFMNoSlipWallTemp 
GFMWallLaw 
GFMExtrapolation 
GFMSlipWallTemp 
GFMNoSlipWallTemp 
GFMWallLaw 
GFMBounceBack 
template<class DataType >
enum LBMD3Q19Thermal::ICPredefined
Enumerator:
GasAtRest 
ConstantMacro 
ConstantMicro 
GasAtRest 
ConstantMacro 
ConstantMicro 
template<class DataType >
enum LBMD3Q19Thermal::ICPredefined
Enumerator:
GasAtRest 
ConstantMacro 
ConstantMicro 
GasAtRest 
ConstantMacro 
ConstantMicro 
template<class DataType >
enum LBMD3Q19Thermal::TurbulenceModel
Enumerator:
laminar 
LES_Smagorinsky 
LES_dynamic 
laminar 
LES_Smagorinsky 
LES_dynamic 
template<class DataType >
enum LBMD3Q19Thermal::TurbulenceModel
Enumerator:
laminar 
LES_Smagorinsky 
LES_dynamic 
laminar 
LES_Smagorinsky 
LES_dynamic 

Constructor & Destructor Documentation

template<class DataType >
virtual LBMD3Q19Thermal< DataType >::~LBMD3Q19Thermal (  )  [inline, virtual]
template<class DataType >
virtual LBMD3Q19Thermal< DataType >::~LBMD3Q19Thermal (  )  [inline, virtual]

Member Function Documentation

template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::DensityScale (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::DensityScale (  )  const [inline]
template<class DataType >
virtual MicroType LBMD3Q19Thermal< DataType >::Equilibrium ( const MacroType q  )  const [inline, virtual]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasDensity (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasDensity (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasPressure (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasPressure (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasSpeedofSound (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasSpeedofSound (  )  const [inline]
template<class DataType >
const DataType LBMD3Q19Thermal< DataType >::GasViscosity ( const DataType  omega,
const DataType  cs,
const DataType  dt 
) const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasViscosity (  )  const [inline]
template<class DataType >
const DataType LBMD3Q19Thermal< DataType >::GasViscosity ( const DataType  omega,
const DataType  cs,
const DataType  dt 
) const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasViscosity (  )  const [inline]
template<class DataType >
const DataType LBMD3Q19Thermal< DataType >::GasViscosityT ( const DataType  omegat,
const DataType  cs,
const DataType  dt 
) const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasViscosityT (  )  const [inline]
template<class DataType >
const DataType LBMD3Q19Thermal< DataType >::GasViscosityT ( const DataType  omegat,
const DataType  cs,
const DataType  dt 
) const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::GasViscosityT (  )  const [inline]
template<class DataType >
virtual void LBMD3Q19Thermal< DataType >::GFMBCStandard ( vec_grid_data_type fvec,
const int  type,
const int &  nc,
const int *  idx,
const MicroType f,
const point_type xc,
const DataType distance,
const point_type normal,
DataType aux = 0,
const int  naux = 0,
const int  scaling = 0 
) const [inline, virtual]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::L0 (  )  const [inline]
template<class DataType >
DataType LBMD3Q19Thermal< DataType >::LatticeSpeedOfSound (  )  const [inline]
template<class DataType >
DataType LBMD3Q19Thermal< DataType >::LatticeSpeedOfSound (  )  const [inline]
template<class DataType >
DataType LBMD3Q19Thermal< DataType >::LatticeSpeedOfSoundT (  )  const [inline]
template<class DataType >
DataType LBMD3Q19Thermal< DataType >::LatticeSpeedOfSoundT (  )  const [inline]
template<class DataType >
DataType LBMD3Q19Thermal< DataType >::LatticeViscosity ( const DataType  omega  )  const [inline]
template<class DataType >
DataType LBMD3Q19Thermal< DataType >::LatticeViscosity ( const DataType  omega  )  const [inline]
template<class DataType >
DataType LBMD3Q19Thermal< DataType >::LatticeViscosityT ( const DataType  omega  )  const [inline]
template<class DataType >
DataType LBMD3Q19Thermal< DataType >::LatticeViscosityT ( const DataType  omega  )  const [inline]
template<class DataType >
virtual MacroType LBMD3Q19Thermal< DataType >::MacroVariables ( const MicroType f  )  const [inline, virtual]
template<class DataType >
virtual int LBMD3Q19Thermal< DataType >::NMethodOrder (  )  const [inline, virtual]
template<class DataType >
virtual int LBMD3Q19Thermal< DataType >::NMethodOrder (  )  const [inline, virtual]
template<class DataType >
virtual const DataType LBMD3Q19Thermal< DataType >::Omega ( const DataType  dt  )  const [inline, virtual]
template<class DataType >
const DataType LBMD3Q19Thermal< DataType >::Omega_LES_Smagorinsky ( const MicroType f,
const MicroType feq,
const MacroType q,
const DataType  dt 
) const [inline]
template<class DataType >
virtual const DataType LBMD3Q19Thermal< DataType >::OmegaT ( const DataType  dt  )  const [inline, virtual]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::PressureScale (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::PressureScale (  )  const [inline]
template<class DataType >
void LBMD3Q19Thermal< DataType >::SetDensityScale ( const DataType  r0  )  [inline]
template<class DataType >
void LBMD3Q19Thermal< DataType >::SetDensityScale ( const DataType  r0  )  [inline]
template<class DataType >
void LBMD3Q19Thermal< DataType >::SetGasProp ( DataType  g,
DataType  W,
DataType  R 
) [inline]
template<class DataType >
void LBMD3Q19Thermal< DataType >::SetGasProp ( DataType  g,
DataType  W,
DataType  R 
) [inline]
template<class DataType >
void LBMD3Q19Thermal< DataType >::SetPressureScale ( const DataType  p0  )  [inline]
template<class DataType >
void LBMD3Q19Thermal< DataType >::SetPressureScale ( const DataType  p0  )  [inline]
template<class DataType >
void LBMD3Q19Thermal< DataType >::SetSpeedUp ( const DataType  s0  )  [inline]
template<class DataType >
void LBMD3Q19Thermal< DataType >::SetSpeedUp ( const DataType  s0  )  [inline]
template<class DataType >
void LBMD3Q19Thermal< DataType >::SetTemperatureScale ( const DataType  tpmin,
const DataType  tpmax 
) [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::SmagorinskyConstant (  )  [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::SmagorinskyConstant (  )  [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::SpeedUp (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::SpeedUp (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::T0 (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::TemperatureScale (  )  const [inline]
template<class DataType >
const DataType& LBMD3Q19Thermal< DataType >::TemperatureScale (  )  const [inline]
template<class DataType >
const int LBMD3Q19Thermal< DataType >::TurbulenceType (  )  const [inline]
template<class DataType >
const int LBMD3Q19Thermal< DataType >::TurbulenceType (  )  const [inline]
template<class DataType >
const DataType LBMD3Q19Thermal< DataType >::VelocityScale (  )  const [inline]
template<class DataType >
const DataType LBMD3Q19Thermal< DataType >::VelocityScale (  )  const [inline]

Member Data Documentation


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