CG  Version 25
InsParameters.h
Go to the documentation of this file.
1 #ifndef INS_PARAMETERS
2 #define INS_PARAMETERS
3 
4 #include "Parameters.h"
5 // Here are the run time and PDE parameters
6 class InsParameters : public Parameters
7 {
8 public:
9 
11 {
18 };
19 
21 {
23  BoussinesqModel, // add a Temperature equation and buoyancy
24  viscoPlasticModel, // add a Temperature equation and nonlinear "viscosity"
25  twoPhaseFlowModel, // two-phase flow
27 };
28 
30 {
31  implicitViscous=0, // viscous terms are implicit
32  implicitAdvectionAndViscous, // viscous and advection terms are implicit
33  implicitFullLinearized // build full lineared implicit operator
34 };
35 
36 
37 enum InsImplicitMatrixOptionsEnum // option for insImplicitMatrix
38 {
43 };
44 
45 enum DiscretizationOptions // compact or non-compact
46 {
49 };
50 
52 
53 InsParameters(const int & numberOfDimensions0=3);
55 
56 virtual int
57 displayPdeParameters(FILE *file = stdout );
58 
59 // compute the normal force on a boundary (for moving grid problems)
60 virtual int
61 getNormalForce( realCompositeGridFunction & u, realSerialArray & normalForce, int *ipar, real *rpar );
62 
63 int
64 getModelVariables( const aString & name, const GridFunction & cgf, realCompositeGridFunction & r,
65  const int component );
66 
67 int
68 getModelVariables( const aString & name, const realMappedGridFunction & uIn, realMappedGridFunction & vIn,
69  const int grid,
70  const int component,
71  const real t );
72 int
73 getTurbulenceModelVariables( const aString & name, const GridFunction & cgf, realCompositeGridFunction & r,
74  const int component );
75 
76 int
77 getTurbulenceModelVariables( const aString & name, const realMappedGridFunction & uIn, realMappedGridFunction & vIn,
78  const int grid,
79  const int component,
80  const real t );
81 
82 
83 int
84 getTwoPhaseFlowVariables( const aString & name, const GridFunction & cgf, realCompositeGridFunction & r, const int component );
85 
86 int
87 getTwoPhaseFlowVariables( const aString & name, const realMappedGridFunction & uIn, realMappedGridFunction & vIn,
88  const int grid,
89  const int component,
90  const real t );
91 int
92 getViscoPlasticVariables( const aString & name, const GridFunction & cgf, realCompositeGridFunction & r, const int component );
93 
94 int
95 getViscoPlasticVariables( const aString & name, const realMappedGridFunction & uIn, realMappedGridFunction & vIn,
96  const int grid,
97  const int component,
98  const real t );
99 
100 
101 virtual int
103 
104 virtual int
105 setParameters(const int & numberOfDimensions0=2,
106  const aString & reactionName =nullString);
107 
108 virtual int
109 setPdeParameters(CompositeGrid & cg, const aString & command = nullString,
110  DialogData *interface =NULL );
111 
112 virtual int
114  const int & degreeSpace =2,
115  const int & degreeTime =1 );
116 
117 virtual int
119 
120 virtual
121 bool isMixedBC( int bc );
122 
123 virtual
124 int numberOfGhostPointsNeeded() const; // number of ghost points needed by this method.
125 
126 virtual
127 int numberOfGhostPointsNeededForImplicitMatrix() const; // number of ghost points needed for implicit matrix
128 
129 virtual
130 int getComponents( IntegerArray &components );
131 
132 virtual
133 bool saveLinearizedSolution(); // save the linearized solution for implicit methods.
134 
135 virtual
137  const int & axis,
138  const int & grid,
139  CompositeGrid & cg);
140 
141 virtual
142 int
143 getDerivedFunction( const aString & name, const realMappedGridFunction & u,
144  realMappedGridFunction & v, const int grid,
145  const int component, const real t, Parameters & parameters);
146 
147 };
148 
149 #endif