Salome HOME
suite chgt copyright et menage
[tools/eficas.git] / mascaret / mascaret_V7_cata.py
1 # -*- coding: utf-8 -*-
2 #
3 #  Copyright (C) 2012-2013 EDF
4 #
5 #  This file is part of SALOME HYDRO module.
6 #
7 #  SALOME HYDRO module is free software: you can redistribute it and/or modify
8 #  it under the terms of the GNU General Public License as published by
9 #  the Free Software Foundation, either version 3 of the License, or
10 #  (at your option) any later version.
11 #
12 #  SALOME HYDRO module is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #  GNU General Public License for more details.
16 #
17 #  You should have received a copy of the GNU General Public License
18 #  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
19
20 from Accas import *
21
22 JdC = JDC_CATA(regles = (UN_PARMI('MASCARET',)),
23                         )
24
25 MASCARET = PROC(
26     nom = "MASCARET", op = None,
27     fr = u"Définition d'un cas d'étude Mascaret",
28     ang = u"Definition of a Mascaret study case",
29     FICHIER_DICO = SIMP(statut = "o", typ = 'Fichier',
30                         fr = u"Fichier Dictionnaire",
31                         ang = u"Dictionary file"),
32     FICHIER_MOT_CLE = SIMP(statut = "o",
33             typ = ('Fichier', 'Fichiers CAS (*.cas);;Tous les fichiers (*)',),
34             fr = u"Fichier Mot Clé",
35             ang = u"Keyword file"),
36     FICHIER_GEOMETRIE = SIMP(statut = "f",
37             typ = ('Fichier', 'Fichiers GEO (*.geo);;Tous les fichiers (*)',),
38             fr = u"Fichier de géométrie",
39             ang = u"Geometry file"),
40     FICHIER_LOI = FACT(statut = 'f', max = '**',
41         NOM = SIMP(statut = "o",
42                    typ = ('Fichier', 'Fichiers LOI (*.loi);;Tous les fichiers (*)',),
43                    fr = u"Fichier de lois",
44                    ang = u"Laws file"),
45                        ),
46     FICHIER_ABAQUES = SIMP(statut = "f",
47             typ = ('Fichier', 'Tous les fichiers (*)',),
48             fr = u"Fichier abaques",
49             ang = u"Abacus file"),
50     FICHIER_CASIER = SIMP(statut = "f",
51             typ = ('Fichier', 'Tous les fichiers (*)',),
52             fr = u"Fichier casier",
53             ang = u"Compartment file"),
54     FICHIER_DAMOCLE = SIMP(statut = "f",
55             typ = ('Fichier', 'Tous les fichiers (*)',),
56             fr = u"Fichier damocle",
57             ang = u"Damocle file"),
58     FICHIER_LIG = SIMP(statut = "o",
59             typ = ('Fichier', 'Fichiers LIG (*.lig);;Tous les fichiers (*)',),
60             fr = u"Fichier LIG",
61             ang = u"LIG file"),
62     LISTING = SIMP(statut = "f",
63             typ = ('Fichier', 'Tous les fichiers (*)', "Sauvegarde"),
64             fr = u"Fichier de listing",
65             ang = u"Listing file"),
66     LISTING_CASIER = SIMP(statut = "f",
67             typ = ('Fichier', 'Tous les fichiers (*)', "Sauvegarde"),
68             fr = u"Fichier de listing casier",
69             ang = u"Compartment listing file"),
70     LISTING_LIAISON = SIMP(statut = "f",
71             typ = ('Fichier', 'Tous les fichiers (*)', "Sauvegarde"),
72             fr = u"Fichier de listing liaison",
73             ang = u"Link listing file"),
74     RESULTAT = SIMP(statut = "f",
75             typ = ('Fichier', 'Tous les fichiers (*)', "Sauvegarde"),
76             fr = u"Fichier de résultat",
77             ang = u"Result file"),
78     RESULTAT_CASIER = SIMP(statut = "f",
79             typ = ('Fichier', 'Tous les fichiers (*)', "Sauvegarde"),
80             fr = u"Fichier de résultat casier",
81             ang = u"Compartment result file"),
82     RESULTAT_LIAISON = SIMP(statut = "f",
83             typ = ('Fichier', 'Tous les fichiers (*)', "Sauvegarde"),
84             fr = u"Fichier de résultat liaison",
85             ang = u"Link result file"),
86     VARIABLE_SORTIE = FACT(statut = 'f', max = '**',
87                            fr = u"Variable de sortie du calcul",
88                            ang = u"Computation output variable",
89         NOM = SIMP(statut = "o", typ = 'TXM',
90                    fr = u"Nom de la variable",
91                    ang = u"Variable name"),
92         VARIABLE_MASCARET = SIMP(statut = "o", typ = 'TXM',
93                    fr = u'Variable Mascaret (ex : "Etat.Z(1,0,0)")',
94                    ang = u'Mascaret variable (ex : "Etat.Z(1,0,0)")'),
95                            ),
96     VARIABLE_ENTREE = FACT(statut = 'f', max = '**',
97                            fr = u"Variable d'entrée du calcul",
98                            ang = u"Computation input variable",
99         NOM = SIMP(statut = "o", typ = 'TXM',
100                    fr = u"Nom de la variable",
101                    ang = u"Variable name"),
102         VARIABLE_MASCARET = SIMP(statut = "o", typ = 'TXM',
103                    fr = u'Variable Mascaret (ex : "Modele.Lois.Debit(1,1-2,0)")',
104                    ang = u'Mascaret variable (ex : "Modele.Lois.Debit(1,1-2,0)")'),
105                            ),
106 )
107 TEXTE_NEW_JDC="MASCARET()"