Memosa-FVM  0.2
COMETModelOptions< T > Struct Template Reference

#include <COMETBC.h>

Inheritance diagram for COMETModelOptions< T >:
Collaboration diagram for COMETModelOptions< T >:

Public Member Functions

 COMETModelOptions ()
 
LinearSolvergetKineticLinearSolver ()
 
 COMETModelOptions ()
 
- Public Member Functions inherited from FloatVarDict< T >
bool hasVar (const string varName) const
 
operator[] (const string varName) const
 
bool isField (const string varName) const
 
FieldgetField (const string varName) const
 
FloatVal< T > getVal (const string varName) const
 

Public Attributes

bool printNormalizedResiduals
 
double Tolerance
 
bool transient
 
double BoltzmannConstant
 
double Planck
 
double relativeTolerance
 
double absoluteTolerance
 
double epsilon_ES
 
double pi
 
int NewtonsMethod_ktrial
 
int timeDiscretizationOrder
 
int conOrder
 
double absTolerance
 
double relTolerance
 
int showResidual
 
int maxLevels
 
double underRelaxation
 
string AgglomerationMethod
 
int preSweeps
 
int postSweeps
 
int preCoarsestSweeps
 
int postCoarsestSweeps
 
int method
 
int relaxDistribution
 
int minCells
 
bool CentralDifference
 
LinearSolverKineticLinearSolver
 
int printCellNumber
 
int fgamma
 
int Knq_direction
 
double Prandtl
 
double SpHeatRatio
 
double relFactor
 
bool withNormal
 
double NewtonTol
 
int BinsPerBand
 
string Convection
 
string DomainStats
 
int minNewton
 
int maxNewton
 
string Scattering
 
bool Source
 

Additional Inherited Members

- Public Types inherited from FloatVarDict< T >
typedef map< string, FloatVal
< T > > 
T_Parent
 
- Protected Member Functions inherited from FloatVarDict< T >
void defineVar (const string varName, const T defaultValue)
 

Detailed Description

template<class T>
struct COMETModelOptions< T >

Definition at line 48 of file esbgkbase/COMETBC.h.

Constructor & Destructor Documentation

template<class T>
COMETModelOptions< T >::COMETModelOptions ( )
inline

Definition at line 50 of file esbgkbase/COMETBC.h.

51  {
52  this->defineVar("initialXVelocity",T(0.0));
53  this->defineVar("initialYVelocity",T(0.0));
54  this->defineVar("initialZVelocity",T(0.0));
55  this->defineVar("initialPressure",T(0.0));
56  this->defineVar("momentumURF",T(0.7));
57  this->defineVar("velocityURF",T(1.0));
58  this->defineVar("pressureURF",T(0.3));
59  this->defineVar("timeStep",T(1E-3));
60 
61  this->defineVar("rho_init",T(9.28E-6));
62  this->defineVar("T_init",T(273.15));
63  this->defineVar("nonDimLt",T(1.0));
64  this->defineVar("nonDimLx",T(1.0));
65  this->defineVar("nonDimLy",T(1.0));
66  this->defineVar("nonDimLz",T(1.0));
67 
68 
69  this->defineVar("operatingPressure",T(101325.0));
70  this->defineVar("operatingTemperature",T(300.0));
71 
72  this->defineVar("molecularWeight",T(40.0));
73  this ->defineVar("Tmuref",T(273.15));
74  this ->defineVar("muref",T(2.117e-5));
75  this ->defineVar("mu_w",T(0.81));
76  this->Prandtl=2.0/3.0;
77  this->SpHeatRatio=5.0/3.0;
78  // Argon 2.117e-5,0.81
79  // Helium 1.865e-5,0.66
80  // Air 1.7116e-5, 0.74
81  // Nitrogen 1.781e-5,
82 
83  // Argon, Helium Pr=2/3, gamma=5/3
84  // Air, Nitrogen Pr=3/4, gamma=7/5
85 
86  this->Tolerance=1e-4;
87  this->printNormalizedResiduals = true;
88  this->transient = false;
89 
90  this->fgamma=2;
91 
92 
94  this->conOrder=1;
95  this->showResidual=5;
96  this->maxLevels=2;
97  this->AgglomerationMethod="FaceArea";
98  this->preSweeps=0;
99  this->postSweeps=2;
100  this->preCoarsestSweeps=1;
101  this->postCoarsestSweeps=1;
102  this->method=1;
103  this->relaxDistribution=0;
104  this->underRelaxation=1.0;
105  this->minCells=1;
106  this->CentralDifference=false;
107  this->KineticLinearSolver = 0;
108 
109  this-> printCellNumber=0;
110  this->defineVar("printDirectionNumber",545);
111 
112  this->NewtonsMethod_ktrial=50;
113  this->relativeTolerance=1e-14;
114  this->absoluteTolerance=1e-22;
115 
116  this->BoltzmannConstant=1.38e-23;
117  this->Planck=6.26068E-34;
118  this->epsilon_ES=1e-50;
119  this->pi=acos(-1.0);//3.14159;
120 
121  this->Knq_direction=0;
122  //used in Newton's Method for Equilibrium distribution function
123  this->defineVar("ToleranceX",T(1e-8));
124  this->defineVar("ToleranceF",T(1e-16));
125  }
LinearSolver * KineticLinearSolver
void defineVar(const string varName, const T defaultValue)
Definition: FloatVarDict.h:94
template<class T>
COMETModelOptions< T >::COMETModelOptions ( )
inline

Definition at line 30 of file phononbase/COMETBC.h.

31  {
32  this->defineVar("timeStep",T(0.1));
33  this->defineVar("initialTemperature",T(310.0));
34  this->defineVar("Tref",T(299.0));
35  this->printNormalizedResiduals = true;
36  this->transient = false;
38  this->absTolerance=1e-8;
39  this->relTolerance=1-4;
40  this->showResidual=5;
41  this->maxLevels=2;
42  this->AgglomerationMethod="FaceArea";
43  this->preSweeps=0;
44  this->postSweeps=2;
45  this->relFactor=.1;
46  this->withNormal=false;
47  this->NewtonTol=1e-4;
48  this->BinsPerBand=10;
49  this->Convection="FirstOrder";
50  this->DomainStats="Quiet";
51  this->minNewton=0;
52  this->maxNewton=15;
53  this->Scattering="SMRT";
54  this->Source=false;
55  }
void defineVar(const string varName, const T defaultValue)
Definition: FloatVarDict.h:94

Member Function Documentation

template<class T>
LinearSolver& COMETModelOptions< T >::getKineticLinearSolver ( )
inline

Definition at line 166 of file esbgkbase/COMETBC.h.

167  {
168  if (this->KineticLinearSolver == 0)
169  {
170  LinearSolver* ls(new AMG());
171  ls->relativeTolerance = 1e-15;
172  ls->nMaxIterations = 100;
173  ls->verbosity=0;
174  this->KineticLinearSolver = ls;
175  }
176  return *this->KineticLinearSolver ;
177  }
LinearSolver * KineticLinearSolver
Definition: AMG.h:27

Member Data Documentation

template<class T>
double COMETModelOptions< T >::absoluteTolerance

Definition at line 135 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
double COMETModelOptions< T >::absTolerance

Definition at line 143 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
string COMETModelOptions< T >::AgglomerationMethod

Definition at line 148 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::BinsPerBand

Definition at line 70 of file phononbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
double COMETModelOptions< T >::BoltzmannConstant

Definition at line 131 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
bool COMETModelOptions< T >::CentralDifference

Definition at line 156 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::conOrder

Definition at line 142 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
string COMETModelOptions< T >::Convection

Definition at line 71 of file phononbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
string COMETModelOptions< T >::DomainStats

Definition at line 72 of file phononbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
double COMETModelOptions< T >::epsilon_ES

Definition at line 137 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::fgamma

Definition at line 160 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
LinearSolver* COMETModelOptions< T >::KineticLinearSolver
template<class T>
int COMETModelOptions< T >::Knq_direction

Definition at line 161 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::maxLevels

Definition at line 146 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::method

Definition at line 153 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::minCells

Definition at line 155 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::NewtonsMethod_ktrial

Definition at line 140 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
double COMETModelOptions< T >::Planck

Definition at line 132 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::postCoarsestSweeps

Definition at line 152 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::postSweeps

Definition at line 150 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
double COMETModelOptions< T >::Prandtl

Definition at line 162 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::preCoarsestSweeps

Definition at line 151 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::preSweeps

Definition at line 149 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::printCellNumber

Definition at line 159 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
bool COMETModelOptions< T >::printNormalizedResiduals

Definition at line 127 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
double COMETModelOptions< T >::relativeTolerance

Definition at line 134 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::relaxDistribution

Definition at line 154 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
double COMETModelOptions< T >::relFactor

Definition at line 67 of file phononbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
double COMETModelOptions< T >::relTolerance

Definition at line 144 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
string COMETModelOptions< T >::Scattering

Definition at line 75 of file phononbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::showResidual

Definition at line 145 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
bool COMETModelOptions< T >::Source

Definition at line 76 of file phononbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
int COMETModelOptions< T >::timeDiscretizationOrder

Definition at line 141 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
double COMETModelOptions< T >::Tolerance

Definition at line 128 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().

template<class T>
bool COMETModelOptions< T >::transient

Definition at line 129 of file esbgkbase/COMETBC.h.

template<class T>
double COMETModelOptions< T >::underRelaxation

Definition at line 147 of file esbgkbase/COMETBC.h.

Referenced by COMETModelOptions< X >::COMETModelOptions().


The documentation for this struct was generated from the following file: