Memosa-FVM  0.2
KeModelOptions< T > Struct Template Reference

#include <KeBC.h>

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

Public Member Functions

 KeModelOptions ()
 
LinearSolvergetLinearSolver ()
 
- 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
 
bool transient
 
int timeDiscretizationOrder
 
double relativeTolerance
 
double absoluteTolerance
 
double cmu
 
double c2mu
 
double c1mu
 
double vk
 
double emp
 
double sigmak
 
double sigmae
 
bool useCentralDifference
 
LinearSolverlinearSolver
 

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 KeModelOptions< T >

Definition at line 36 of file KeBC.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file KeBC.h.

39  {
40  this->defineVar("timeStep",T(0.1));
41  this->relativeTolerance=1e-7;
42  this->absoluteTolerance=1e-7;
43  this->defineVar("energyURF",T(0.8));
44  this->defineVar("dissipationURF",T(0.8));
45  this->linearSolver = 0;
46  this->useCentralDifference=false;
47  this->transient = false;
49  this-> cmu=0.09;
50  this-> c2mu=1.92;
51  this-> c1mu=1.44;
52  this-> vk=0.4187;
53  this-> emp=9.793;
54  this-> sigmak =1.0;
55  this-> sigmae =1.3;
56  this->printNormalizedResiduals = true;
57 
58  }
bool useCentralDifference
Definition: KeBC.h:72
double sigmak
Definition: KeBC.h:70
bool printNormalizedResiduals
Definition: KeBC.h:60
double absoluteTolerance
Definition: KeBC.h:64
int timeDiscretizationOrder
Definition: KeBC.h:62
LinearSolver * linearSolver
Definition: KeBC.h:73
double vk
Definition: KeBC.h:68
void defineVar(const string varName, const T defaultValue)
Definition: FloatVarDict.h:94
double emp
Definition: KeBC.h:69
double c2mu
Definition: KeBC.h:66
double c1mu
Definition: KeBC.h:67
double relativeTolerance
Definition: KeBC.h:63
double cmu
Definition: KeBC.h:65
double sigmae
Definition: KeBC.h:71

Member Function Documentation

template<class T>
LinearSolver& KeModelOptions< T >::getLinearSolver ( )
inline

Definition at line 76 of file KeBC.h.

77  {
78  if (this->linearSolver == 0)
79  {
80  LinearSolver* ls(new AMG());
81  ls->relativeTolerance = 1e-1;
82  ls->nMaxIterations = 20;
83  ls->verbosity=0;
84  this->linearSolver = ls;
85  }
86  return *this->linearSolver ;
87  }
LinearSolver * linearSolver
Definition: KeBC.h:73
Definition: AMG.h:27

Member Data Documentation

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

Definition at line 64 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().

template<class T>
double KeModelOptions< T >::c1mu
template<class T>
double KeModelOptions< T >::c2mu
template<class T>
double KeModelOptions< T >::cmu

Definition at line 65 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().

template<class T>
double KeModelOptions< T >::emp

Definition at line 69 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().

template<class T>
LinearSolver* KeModelOptions< T >::linearSolver
template<class T>
bool KeModelOptions< T >::printNormalizedResiduals

Definition at line 60 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().

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

Definition at line 63 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().

template<class T>
double KeModelOptions< T >::sigmae

Definition at line 71 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().

template<class T>
double KeModelOptions< T >::sigmak

Definition at line 70 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().

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

Definition at line 62 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().

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

Definition at line 61 of file KeBC.h.

template<class T>
bool KeModelOptions< T >::useCentralDifference

Definition at line 72 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().

template<class T>
double KeModelOptions< T >::vk

Definition at line 68 of file KeBC.h.

Referenced by KeModelOptions< T_Scalar >::KeModelOptions().


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