Memosa-FVM  0.2
PlateModelOptions< T > Struct Template Reference

#include <PlateBC.h>

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

Public Member Functions

 PlateModelOptions ()
 
LinearSolver & getDeformationLinearSolver ()
 
- Public Member Functions inherited from FloatVarDict< T >
bool hasVar (const string varName) const
 
T operator[] (const string varName) const
 
bool isField (const string varName) const
 
Field & getField (const string varName) const
 
FloatVal< T > getVal (const string varName) const
 

Public Attributes

bool printNormalizedResiduals
 
double deformationTolerance
 
bool transient
 
int timeDiscretizationOrder
 
double scf
 
bool variableTimeStep
 
double timeStepN1
 
double timeStepN2
 
LinearSolver * deformationLinearSolver
 
bool creep
 
bool constForce
 
int creepModel
 
double A
 
double B
 
double m
 
double n
 
double Sy0
 
int nz
 
bool incompressible
 

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

Definition at line 39 of file PlateBC.h.

Constructor & Destructor Documentation

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

Definition at line 41 of file PlateBC.h.

References PlateModelOptions< T >::A, PlateModelOptions< T >::B, PlateModelOptions< T >::constForce, PlateModelOptions< T >::creep, PlateModelOptions< T >::creepModel, FloatVarDict< T >::defineVar(), PlateModelOptions< T >::deformationLinearSolver, PlateModelOptions< T >::deformationTolerance, PlateModelOptions< T >::incompressible, PlateModelOptions< T >::m, PlateModelOptions< T >::n, PlateModelOptions< T >::nz, PlateModelOptions< T >::printNormalizedResiduals, PlateModelOptions< T >::scf, PlateModelOptions< T >::Sy0, PlateModelOptions< T >::timeDiscretizationOrder, PlateModelOptions< T >::timeStepN1, PlateModelOptions< T >::timeStepN2, and PlateModelOptions< T >::variableTimeStep.

42  {
43  this->defineVar("initialXRotation",T(0.0));
44  this->defineVar("initialYRotation",T(0.0));
45  this->defineVar("initialZDeformation",T(0.0));
46  this->defineVar("deformationURF",T(0.7));
47  this->defineVar("timeStep",T(0.1));
48  this->defineVar("operatingTemperature",T(300.0));
49  this->defineVar("residualStressXX",T(0.0));
50  this->defineVar("residualStressYY",T(0.0));
51  this->defineVar("residualStressZZ",T(0.0));
52  this->defineVar("residualStressXY",T(0.0));
53  this->defineVar("residualStressYZ",T(0.0));
54  this->defineVar("residualStressXZ",T(0.0));
55 
56  this->deformationTolerance=1e-4;
57  this->printNormalizedResiduals = true;
58  this->transient = false;
60  this->scf=1.0; //lateral shear correction factor
61  this->variableTimeStep = false;
62  this->timeStepN1=0.1;
63  this->timeStepN2=0.1;
64  this->deformationLinearSolver = 0;
65  this->creep = false;
66  this->constForce = true;
67  this->creepModel=1;
68  this->A = 0.03/3600.;
69  this->B = 1.8e8;
70  this->m = 2.0;
71  this->n = 2.0;
72  this->Sy0 = 1.0e9;
73  this->nz = 20;
74 
75  this->incompressible = true;
76  }
double timeStepN1
Definition: PlateBC.h:84
double timeStepN2
Definition: PlateBC.h:85
double deformationTolerance
Definition: PlateBC.h:79
bool variableTimeStep
Definition: PlateBC.h:83
bool incompressible
Definition: PlateBC.h:97
void defineVar(const string varName, const T defaultValue)
Definition: FloatVarDict.h:94
int timeDiscretizationOrder
Definition: PlateBC.h:81
LinearSolver * deformationLinearSolver
Definition: PlateBC.h:86
bool printNormalizedResiduals
Definition: PlateBC.h:78

Member Function Documentation

template<class T>
LinearSolver& PlateModelOptions< T >::getDeformationLinearSolver ( )
inline

Definition at line 99 of file PlateBC.h.

References PlateModelOptions< T >::deformationLinearSolver, LinearSolver::nMaxIterations, LinearSolver::relativeTolerance, and LinearSolver::verbosity.

100  {
101  if (this->deformationLinearSolver == 0)
102  {
103  LinearSolver* ls(new AMG());
104  ls->relativeTolerance = 1e-1;
105  ls->nMaxIterations = 20;
106  ls->verbosity=0;
107  this->deformationLinearSolver = ls;
108  }
109  return *this->deformationLinearSolver ;
110  }
Definition: AMG.h:27
LinearSolver * deformationLinearSolver
Definition: PlateBC.h:86

Member Data Documentation

template<class T>
double PlateModelOptions< T >::A

Definition at line 90 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
double PlateModelOptions< T >::B

Definition at line 91 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
bool PlateModelOptions< T >::constForce

Definition at line 88 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
bool PlateModelOptions< T >::creep

Definition at line 87 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
int PlateModelOptions< T >::creepModel

Definition at line 89 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
LinearSolver* PlateModelOptions< T >::deformationLinearSolver
template<class T>
double PlateModelOptions< T >::deformationTolerance

Definition at line 79 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
bool PlateModelOptions< T >::incompressible

Definition at line 97 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
double PlateModelOptions< T >::m

Definition at line 92 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
double PlateModelOptions< T >::n

Definition at line 93 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
int PlateModelOptions< T >::nz

Definition at line 95 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

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

Definition at line 78 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
double PlateModelOptions< T >::scf

Definition at line 82 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
double PlateModelOptions< T >::Sy0

Definition at line 94 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

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

Definition at line 81 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
double PlateModelOptions< T >::timeStepN1

Definition at line 84 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

template<class T>
double PlateModelOptions< T >::timeStepN2

Definition at line 85 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().

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

Definition at line 80 of file PlateBC.h.

template<class T>
bool PlateModelOptions< T >::variableTimeStep

Definition at line 83 of file PlateBC.h.

Referenced by PlateModelOptions< T >::PlateModelOptions().


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