Memosa-FVM  0.2
StructureModelOptions< T > Struct Template Reference

#include <StructureBC.h>

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

Public Member Functions

 StructureModelOptions ()
 
LinearSolvergetDeformationLinearSolver ()
 
- 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 deformationTolerance
 
bool transient
 
int timeDiscretizationOrder
 
bool variableTimeStep
 
double timeStepN1
 
double timeStepN2
 
bool thermo
 
bool residualStress
 
LinearSolverdeformationLinearSolver
 
LinearSolvercoupledLinearSolver
 
bool creep
 
int creepModel
 
double A
 
double B
 
double m
 
double n
 
double Sy0
 
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 StructureModelOptions< T >

Definition at line 52 of file StructureBC.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file StructureBC.h.

References StructureModelOptions< T >::A, StructureModelOptions< T >::B, StructureModelOptions< T >::coupledLinearSolver, StructureModelOptions< T >::creep, StructureModelOptions< T >::creepModel, FloatVarDict< T >::defineVar(), StructureModelOptions< T >::deformationLinearSolver, StructureModelOptions< T >::deformationTolerance, StructureModelOptions< T >::incompressible, StructureModelOptions< T >::m, StructureModelOptions< T >::n, StructureModelOptions< T >::printNormalizedResiduals, StructureModelOptions< T >::residualStress, StructureModelOptions< T >::Sy0, StructureModelOptions< T >::thermo, StructureModelOptions< T >::timeDiscretizationOrder, StructureModelOptions< T >::timeStepN1, StructureModelOptions< T >::timeStepN2, and StructureModelOptions< T >::variableTimeStep.

55  {
56  this->defineVar("initialXDeformation",T(0.0));
57  this->defineVar("initialYDeformation",T(0.0));
58  this->defineVar("initialZDeformation",T(0.0));
59  this->defineVar("deformationURF",T(0.7));
60  this->defineVar("timeStep",T(0.1));
61  this->defineVar("operatingTemperature",T(300.0));
62  this->defineVar("residualXXStress",T(0.));
63  this->defineVar("residualYYStress",T(0.));
64  this->defineVar("residualZZStress",T(0.));
65 
66  this->deformationTolerance=1e-4;
67  this->printNormalizedResiduals = true;
68  this->transient = false;
70  this->variableTimeStep = false;
71  this->timeStepN1=0.1;
72  this->timeStepN2=0.1;
73  this->thermo = false;
74  this->residualStress = false;
75  this->deformationLinearSolver = 0;
76  this->coupledLinearSolver = 0;
77  this->creep = false;
78  this->creepModel=1;
79  this->A = 0.03/3600.;
80  this->B = 1.8e8;
81  this->m = 2.0;
82  this->n = 2.0;
83  this->Sy0 = 1.0e9;
84 
85  this->incompressible = true;
86  }
LinearSolver * deformationLinearSolver
Definition: StructureBC.h:97
void defineVar(const string varName, const T defaultValue)
Definition: FloatVarDict.h:94
LinearSolver * coupledLinearSolver
Definition: StructureBC.h:98

Member Function Documentation

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

Definition at line 109 of file StructureBC.h.

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

110  {
111  if (this->deformationLinearSolver == 0)
112  {
113  LinearSolver* ls(new AMG());
114  ls->relativeTolerance = 1e-1;
115  ls->nMaxIterations = 20;
116  ls->verbosity=0;
117  this->deformationLinearSolver = ls;
118  }
119  return *this->deformationLinearSolver ;
120  }
LinearSolver * deformationLinearSolver
Definition: StructureBC.h:97
Definition: AMG.h:27

Member Data Documentation

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

Definition at line 101 of file StructureBC.h.

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

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

Definition at line 102 of file StructureBC.h.

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

template<class T>
LinearSolver* StructureModelOptions< T >::coupledLinearSolver

Definition at line 98 of file StructureBC.h.

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

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

Definition at line 99 of file StructureBC.h.

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

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

Definition at line 100 of file StructureBC.h.

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

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

Definition at line 89 of file StructureBC.h.

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

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

Definition at line 107 of file StructureBC.h.

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

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

Definition at line 103 of file StructureBC.h.

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

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

Definition at line 104 of file StructureBC.h.

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

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

Definition at line 88 of file StructureBC.h.

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

template<class T>
bool StructureModelOptions< T >::residualStress

Definition at line 96 of file StructureBC.h.

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

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

Definition at line 105 of file StructureBC.h.

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

template<class T>
bool StructureModelOptions< T >::thermo

Definition at line 95 of file StructureBC.h.

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

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

Definition at line 91 of file StructureBC.h.

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

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

Definition at line 93 of file StructureBC.h.

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

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

Definition at line 94 of file StructureBC.h.

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

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

Definition at line 90 of file StructureBC.h.

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

Definition at line 92 of file StructureBC.h.

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


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