Salome HOME
sauvegarde du 2 mai
[tools/eficas.git] / Telemac / enumDicoTelemac.py
1 DicoEnumCasEn={
2 'Psi_Scheme_Option' : { 
3     1 : "Explicit",
4     2 : "Predictor-corrector"
5   },
6
7 # on regroupe les enum quand on separe
8 'Type_Of_Advection' : {
9     1 : "Characteristics", 
10     2 : "SUPG", 
11     3 : "Conservative N-scheme", 
12     4 : "Conservative N-scheme", 
13     5 : "Conservative PSI-scheme", 
14     6 : "Non conservative PSI-scheme", 
15     7 : "Implicit non conservative N-scheme", 
16     13 : "Edge-based N-scheme", 
17     14 : "Edge-based N-scheme" 
18   },
19
20  
21 'Geometry_File_Format' : {
22     'SERAFIN': 'Serafin',
23     'MED': 'MED',
24     'SERAFIND': 'SerafinD',
25   },
26
27 'Previous_Computation_File_Format' : {
28     'SERAFIN': 'Serafin',
29     'MED': 'MED',
30     'SERAFIND': 'SerafinD',
31   },
32  
33 'Reference_File_Format' : {
34     'SERAFIN': 'Serafin',
35     'MED': 'MED',
36     'SERAFIND': 'SerafinD',
37   },
38
39 'Results_File_Format' : {
40     'SERAFIN': 'Serafin',
41     'MED': 'MED',
42     'SERAFIND': 'SerafinD',
43      },
44
45 'Preconditioning'  : {
46     0 : "No preconditioning", 
47     2 : "Diagonal",
48     3 : "Diagonal condensee",
49     7 : "Crout",
50     11 : "Gauss-Seidel", 
51     14 : "Diagonal and Crout", 
52     21 : "Diagonal condensed and Crout"
53    },
54
55 'Initial_Guess_For_H'  : {
56     1 : "Previous", 
57     0 : "Zero", 
58     2 : "Extrapolation" 
59   },
60  
61 'Law_Of_Bottom_Friction' : {
62     0 : "No friction", 
63     1 : "Haaland", 
64     2 : "Chezy", 
65     3 : "Strickler", 
66     4 : "Manning", 
67     5 : "Nikuradse" 
68   },
69  
70 'Solver_For_Diffusion_Of_Tracers' : {
71     1 : "Conjugate gradient", 
72     2 : "Conjugate residual", 
73     3 : "Conjugate gradient on a normal equation", 
74     4 : "Minimum error", 
75     5 : "Squared conjugate gradient", 
76     6 : "CGSTAB", 
77     7 : "GMRES", 
78     8 : "Direct" 
79   },
80
81 'Solver' : {
82     3 : "Conjugate gradient on a normal equation", 
83     1 : "Conjugate gradient", 
84     2 : "Conjugate residual", 
85     4 : "Minimum error", 
86     6 : "CGSTAB", 
87     7 : "GMRES", 
88     8 : "Direct" 
89   },
90  
91 'Preconditioning_For_Diffusion_Of_Tracers' : {
92     2 : "Diagonal",
93     0 : "No preconditioning", 
94     3 : "Diagonal condensed",
95     7 : "Crout", 
96     14 : "Diagonal and Crout",
97     21 : "Diagonal condensed and Crout" 
98   },
99
100 'Solver_For_K_Epsilon_Model' : {
101     1 : "Conjugate gradient", 
102     2 : "Conjugate residuals", 
103     3 : "Conjugate gradient on normal equation", 
104     4 : "Minimum error", 
105     5 : "Conjugate gradient squared", 
106     6 : "Conjugate gradient squared stabilised (CGSTAB)", 
107     7 : "GMRES", 
108     8 : "Direct" 
109   },
110
111 'Preconditioning_For_K_Epsilon_Model' : {
112     2 : "Diagonal",
113     0 : "No preconditioning", 
114     3 : "Diagonal condensed",
115     7 : "Crout", 
116     14 : "Diagonal and Crout",
117     21 : "Diagonal condensed and Crout" 
118   },
119
120 'Turbulence_Model_For_Solid_Boundaries' : {
121     1 : "Smooth",
122     2 : "Rough" 
123   },
124
125 'PNPN_Friction_Coefficient' : {
126     1 : "Linear coefficient",
127     2 : "Chezy coefficient",
128     3 : "Strickler coefficient",
129     4 : "Manning coefficient",
130     5 : "Nikuradse grain size",
131   },
132  
133
134 'Turbulence_Model' : {
135     1 : "Constant Viscosity",
136     2 : "Elder",
137     3 : "K-Epsilon Model", 
138     4 : "Smagorinski",
139   },
140  
141
142  
143 'Roughness_Coefficient_Of_Boundaries' : {
144     1 : "Non programme",
145     2 : "Coefficient de Chezy",
146     3 : "Coefficient de Strickler",
147     4 : "Coefficient de Manning",
148     5 : "Hauteur de rugosite de Nikuradse",
149   },
150  
151
152 'Variables_For_Graphic_Printouts' : {
153     "U" : "Velocity along X axis (m/s)", 
154     "V" : "Velocity along Y axis (m/s)", 
155     "C" : "Wave celerity (m/s)", 
156     "H" : "Water depth (m)", 
157     "S" : "Free surface elevation (m)", 
158     "B" : "Bottom elevation (m)", 
159     "F" : "Froude number", 
160     "Q" : "Scalar flowrate of fluid (m2/s)", 
161     "T1" : "Tracer 1 etc. ", 
162     "K" : "Turbulent kinetic energy in K-Epsilon model (J/kg)", 
163     "E" : "Dissipation of turbulent energy (W/kg)", 
164     "D" : "Turbulent viscosity of K-Epsilon model (m2/s)", 
165     "I" : "Flowrate along X axis (m2/s)", 
166     "J" : "Flowrate along Y axis (m2/s)", 
167     "M" : "Scalar velocity (m/s)", 
168     "X" : "Wind along X axis (m/s)", 
169     "Y" : "Wind along Y axis (m/s)", 
170     "P" : "Air pressure (Pa)", 
171     "W" : "Friction coefficient", 
172     "A" : "Drift along X (m)", 
173     "G" : "Drift along Y (m)", 
174     "L" : "Courant number", 
175     "N" : "Supplementary variable N", 
176     "O" : "Supplementary variable O", 
177     "R" : "Supplementary variable R", 
178     "Z" : "Supplementary variable Z", 
179     "MAXZ" : "Maximum elevation", 
180     "TMXZ" : "Time of maximum elevation", 
181     "MAXV" : "Maximum velocity", 
182     "TMXV" : "Time of maximum velocity", 
183     "US" : "Friction velocity" 
184   },
185  
186 'Variables_TO_Be_Printed' : {
187     "U" : "Velocity along X axis (m/s)", 
188     "V" : "Velocity along Y axis (m/s)", 
189     "C" : "Wave celerity (m/s)", 
190     "H" : "Water depth (m)", 
191     "S" : "Free surface elevation (m)", 
192     "B" : "Bottom elevation (m)", 
193     "F" : "Froude number", 
194     "Q" : "Scalar flowrate of fluid (m2/s)", 
195     "T" : "Tracer", 
196     "K" : "Turbulent kinetic energy in K-Epsilon model (J/kg)", 
197     "E" : "Dissipation of turbulent energy (W/kg)", 
198     "D" : "Turbulent viscosity of K-Epsilon model (m2/s)", 
199     "I" : "Flowrate along X axis (m2/s)", 
200     "J" : "Flowrate along Y axis (m2/s)", 
201     "M" : "Scalar velocity (m/s)", 
202     "X" : "Wind along X axis (m/s)", 
203     "Y" : "Wind along Y axis (m/s)", 
204     "P" : "Air pressure (Pa)", 
205     "W" : "Friction coefficient", 
206     "A" : "Drift along X  (m)", 
207     "G" : "Drift along Y  (m)", 
208     "L" : "Nombre de courants ", 
209     "N" : "Supplementary variable N", 
210     "O" : "Supplementary variable O", 
211     "R" : "Supplementary variable R", 
212     "Z" : "Supplementary variable Z" 
213   },
214  
215  
216 'Initial_Conditions' : {
217     "ZERO ELEVATION" : "Zero elevation",
218     "CONSTANT ELEVATION" :  "Constant elevation", 
219     "ZERO DEPTH" : "Zero depth",
220     "CONSTANT DEPTH" : "Constant depth",
221     "SPECIAL"  : "Special" ,
222     "TPXO SATELLITE ALTIMETRY" : "TPXO satellite altimetry",
223   },
224  
225 # on regroupe pour Supg
226 'Supg_Option' : {
227    0 : "No upwinding", 
228    1 : "Classical SUPG",
229    2 : "Modified SUPG"
230   }, 
231  
232
233 'Option_For_The_Treatment_Of_Tidal_Flats' : {
234     1 : "Equations solved everywhere with correction on tidal flats",
235     2 : "Dry elements frozen",
236     3 : "1 but with porosity (defina method)",
237   },
238  
239 'Initial_Guess_For_U' : {
240     0 : "Zero",
241     1 : "Previous",
242     2 : "Extrapolation", 
243   },
244  
245 'Discretizations_In_Space' : {
246     11 : "Linear",
247     12 : "Quasi-bubble",
248     13 : "Quadratic",
249   },
250  
251 'Matrix_Vector_Product' : {
252     1 : "Classic", 
253     2 : "Frontal"
254   },
255
256 'Matrix_Storage' : {
257     1 : "Classical EBE" , 
258     3 : "Edge-based storage" 
259   },
260 'Option_For_Liquid_Boundaries' : {
261     1 : "Classical boundary conditions",
262     2 : "Thompson method based on characteristics",
263   },
264  
265 'Treatment_Of_The_Linear_System' : {
266     1 : "Coupled",
267     2 : "Wave equation"
268 },
269  
270 'Equations' : {
271    "SAINT-VENANT EF" : "Saint-Venant EF",
272    "SAINT-VENANT VF" : "Saint-Venant VF",
273    "BOUSSINESQ" : "Boussinesq" 
274   },
275
276 'Velocity_ProFiles' : {
277     1 : "Constant normal profile",
278     2 : "U and V given in the conlim file",
279     3 : "Normal velocity given in ubor in the conlim file",
280     4 : "Velocity proportional to square root of depth",
281     5 : "Velocity proportional to square root of depth, variant",
282     5 : "QRT(depth) profile, variant",
283   },
284                                                                     
285 'Option_For_The_Diffusion_Of_Tracers' : {
286     1 : "Div( nu grad(T) )",                                           
287     2 : "1/h Div ( h nu grad(T)" ,                                              
288   },
289
290 'Option_For_The_Diffusion_Of_Velocities' : { 
291     1 : "Normal",
292     2 : "Dirac"                                            
293   },
294  
295  
296 'Parameter_Estimation' : {
297     "Friction" : "Friction",
298     "FROTTEMENT" : "Frottement", 
299     "STEADY" : "Steady" 
300   },
301  
302
303 'Identification_Method' : {
304     0 : "List of tests",  
305     1 : "Gradient simple", 
306     2 : "Conj gradient", 
307     3 : "Lagrange interp." 
308   },
309  
310
311 'Finite_Volume_Scheme' : {
312     0 : "Roe scheme",
313     1 : "Kinetic order 1", 
314     2 : "Kinetic order 2", 
315     3 : "Zokagoa scheme order 1", 
316     4 : "Tchamen scheme order 1", 
317     5 : "HLLC scheme order 1", 
318     6 : "WAF scheme order 2"
319   },
320
321 'Stage-Discharge_Curves' : {
322     0 : "No one",
323     1 : "Z(Q)",
324     2 : "Q(Z)" 
325   },
326
327 'Treatment_Of_Negative_Depths' : {
328     0 : "No treatment",
329     1 : "Smoothing",
330     2 : "Flux control",
331   },
332
333 'Depth_In_Friction_Terms' : {
334     1 : "Nodal",
335     2 : "Average", 
336   },
337
338 'Law_Of_Friction_On_Lateral_Boundaries' : {
339     0 : "No friction", 
340     1 : "Haaland", 
341     2 : "Chezy", 
342     3 : "Strickler", 
343     4 : "Manning", 
344     5 : "Nikuradse", 
345     6 : "Log law", 
346     7 : "Colebrook-white" 
347   },
348  
349
350 'Treatment_Of_Fluxes_AT_The_Boundaries': {
351     1 : "Priority to prescribed values",
352     2 : "Priority to fluxes",
353   },
354
355 'Option_For_Tidal_Boundary_Conditions': {
356     0 : "No tide",
357     1 : "Real tide (recommended methodology)",
358     2 : "Astronomical tide",
359     3 : "Mean spring tide",
360     4 : "Mean tide",
361     5 : "Mean neap tide",
362     6 : "Astronomical neap tide",
363     7 : "Real tide (methodology before 2010)"
364   },
365
366 'Option_For_Tsunami_Generation': {
367     0 : "No Tsunami",
368     1 : "Tsunami generated on the basis of the Okada model 1992"
369   },
370
371 #'PHYSICAL Characteristics Of The TSUNAMI': {
372 #AIDE1  :      '
373 #    Physical characteristics of the chosen Tsunami model:
374 # - the focal depth (HH),
375 # - the fault length (L),
376 # - the fault width (W)
377 # - the dislocation (D),
378 # - the strike direction (TH),
379 # - the dip angle (DL),
380 # - the slip (RD),
381 # - the epicentre latitude (Y0) and
382 # - the epicentre longitude (X0)
383 # - the ellipse ( WxL ) area of influence    
384 # },
385
386 'Tidal_Data_Base': {
387     1 : "JMJ",
388     2 : "TPXO",
389     3 : "Miscellaneous (LEGOS-NEA, FES20XX, PREVIMER...)"
390   },
391
392 'Geographic_System': {
393     0 : "Defined by user",
394     1 : "WGS84 longitude/latitude in real degrees",
395     2 : "WGS84 northern UTM",
396     3 : "WGS84 southern UTM",
397     4 : "Lambert",
398     5 : "Mercator"
399   },
400
401
402 'Zone_Number_In_Geographic_System': {
403     1 : "Lambert 1 north",
404     2 : "Lambert 2 center",
405     3 : "Lambert 3 south",
406     4 : "Lambert 4 corsica",
407     22 : "Lambert 2 extended",
408     30 : "UTM zone, E.G."
409   },
410
411
412 'Law_Of_Tracers_Degradation': {
413     0 : "No degradation",
414     1 : "F(T90) law"
415   },
416
417 'Spatial_Projection_Type': {
418     1 : "Cartesian, not georeferenced",
419     2 : "Mercator",
420     3 : "Latitude longitude"
421   },
422
423 'Algae_Type': {
424     1 : "Sphere",
425     2 : "Iridaea flaccida (close to ulva)",
426     3 : "Pelvetiopsis limitata",
427     4 : "Gigartina leptorhynchos"
428   },
429
430 'Option_For_Characteristics': {
431     1 : "Strong",
432     2 : "Weak"
433   },
434
435 'Stochastic_Diffusion_Model' : {
436     0 : "No model",    
437     2 : "??"
438   },
439
440 'Number_Of_Gauss_Points_For_Weak_Characteristics' : {
441     1 : "1 point",
442     3 : "3 points",
443     6 : "6 points"
444   },
445
446 'Type_Of_Weirs': {
447     1 : "Horizontal with same number of nodes upstream/downstream (Historical solution with bord)",
448     2 : "General (New solution with sources points)"
449   },
450
451 'Scheme_For_Advection_Of_Velocities': {
452     1 : "Characteristics",
453     2 : "Explicit + SUPG",
454     3 : "Explicit leo postma",
455     4 : "Explicit + murd scheme N",
456     5 : "Explicit + murd scheme PSI",
457     13 : "N-scheme for tidal flats",
458     14 : "N-scheme for tidal flats"
459   },
460
461 'Scheme_For_Advection_Of_Tracers': {
462     0 : "No advection",
463     1 : "Characteristics",
464     2 : "Explicit + SUPG",
465     3 : "Explicit leo postma",
466     4 : "Explicit + murd scheme N",
467     5 : "Explicit + murd scheme PSI",
468     13 : "Leo postma for tidal flats",
469     14 : "N-scheme for tidal flats"
470   },
471
472
473 'Scheme_For_Advection_Of_K_Epsilon': {
474     0 : "No advection",
475     1 : "Characteristics",
476     2 : "Explicit + SUPG",
477     3 : "Explicit leo postma",
478     4 : "Explicit + murd scheme-N",
479     5 : "Explicit + murd scheme-PSI",
480     13 : "Leo postma for tidal flats",
481     14 : "N-scheme for tidal flats"
482   },
483
484
485 'Scheme_Option_For_Advection_Of_Tracers': {
486     1 : "explicit",
487     2 : "predictor-corrector",
488   },
489
490
491 'Scheme_Option_For_Advection_Of_Velocities': {
492     1 : "Explicit",
493     2 : "Predictor-corrector",
494   },
495
496 'Scheme_Option_For_Advection_Of_K_Epsilon': {
497     1 : "Explicit",
498     2 : "Predictor-corrector",
499   },
500
501 'Option_For_Wind': {
502     0 :  "No wind",
503     1 :  "Constant in time and space",
504     2 :  "Variable in time and (constant in space)",
505     3 :  "Variable in time and space"  
506   },
507
508 'Newmark_Time_Integration_Coefficient' :{
509    1. :  "Euler explicit",
510    0.5 : "Order 2 in time",
511   },
512
513  'Option_For_The_Diffusion_Of_Velocities' : {
514   1: 'Diffusion in the form div( nu grad(U))',
515   2: 'Diffusion in the form 1/h div ( h nu grad(U))',
516   },
517
518 }
519 DicoEnumCasEnInverse={}
520
521 for motClef in DicoEnumCasEn.keys():
522     d={}
523     for valTelemac in DicoEnumCasEn[motClef].keys():
524         valEficas= DicoEnumCasEn[motClef][valTelemac]
525         d[valEficas]=valTelemac
526     DicoEnumCasEnInverse[motClef]=d
527     
528 #print DicoEnumCasEnInverse