1 ## -*- coding: utf-8 -*-
2 # Copyright (C) 2007-2012 EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 ## --------------------------------------------------
23 ## --------------------------------------------------
29 JdC = JDC_CATA ( code = 'SEP',
31 # regles=(AU_MOINS_UN('STRUCTURE_SIMPLE','STRUCTURE_COMPOSEE',),),
32 regles=(AU_MOINS_UN('STRUCTURE_SIMPLE',),),
37 STRUCTURE_SIMPLE= MACRO (nom = 'STRUCTURE_SIMPLE',
41 UIinfo = {"groupes":("Outils métier",)},
42 fr = "sous epaisseur ",
43 dir_name = SIMP(statut='o', typ='TXM',),
45 CHARGE_LIMITE = SIMP(statut='o', typ='TXM',into=('OUI', 'NON')),
47 TYPE_SEP = SIMP(statut='o', typ='TXM',into=('TUBE_SOUS_EP_INTERNE','COUDE_SOUS_EP_INTERNE')),
50 b_tube_sous_epaisseur =BLOC(condition="(TYPE_SEP=='TUBE_SOUS_EP_INTERNE') ",
52 points_de_mesure = FACT( statut='o',max='**',
53 FICHIER =SIMP(statut='o',typ='Fichier',
54 fr="Format du fichier : CSV.",),
58 MAIL_TUBE = FACT( statut='f',max='**',
59 fr = "Parametres maillage du tube ",
61 unite_longueur=SIMP(statut='o', typ='TXM', defaut='mm',into=('mm',),),
62 r_ext=SIMP(statut='o', typ='R', defaut=228.6,val_min=100,val_max=300, fr="rayon exterieur du tube"),
63 ep_nominale=SIMP(statut='o', typ='R', defaut=22.0, fr="epaisseur nominale du tube sans sous epaisseur"),
64 nb_seg_amortissement=SIMP(statut='o', typ='I', defaut=11, fr="nombre de segments dans la longueur d'amortissement"),
65 nb_seg_transition=SIMP(statut='o', typ='I', defaut=4, fr="nombre de segments dans longueur de transition"),
66 nb_seg_generatrices=SIMP(statut='o', typ='I', defaut=5, fr="nombre de segments dans la longueur des generatrices dans la zone de sous épaisseur"),
67 petite_distance=SIMP(statut='o', typ='R', defaut=100.0, fr="distance entre deux abscisses de points de mesure au dessous de laquelle on discrétise avec nb_seg_petites_distances au lieu de nb_seg_generatrices"),
68 nb_seg_petites_distances=SIMP(statut='o', typ='I', defaut=3, fr="nombre de segments dans les aretes dont la longueur est inferieur a petite distance"),
69 nb_seg_arc=SIMP(statut='o', typ='I', defaut=5, fr="nombre de segments dans l'arc du tube entre deux generatrices"),
70 nb_seg_ep=SIMP(statut='o', typ='I', defaut=3, fr="nombre de segments dans l'epaisseur du tube"),
71 critere_dist_radial=SIMP(statut='o', typ='R', defaut=0.5, fr="Critère de raffinement de maillage"),
73 INFO = SIMP(statut='f',typ='I',defaut=1,into=(0,1,2)),
77 b_coude_sous_epaisseur =BLOC(condition="(TYPE_SEP=='COUDE_SOUS_EP_INTERNE') ",
79 points_de_mesure = FACT( statut='o',max='**',
80 FICHIER =SIMP(statut='o',typ='Fichier',
81 fr="Format du fichier : CSV.",),
82 FORMAT =SIMP(statut='f',typ='TXM',defaut="CSV",into=("CSV"),
83 fr="Format du fichier : CSV",),
85 MAIL_COUDE = FACT( statut='f',max='**',
86 fr = "Parametres maillage du coude ",
88 unite_longueur=SIMP(statut='o', typ='TXM', defaut='mm',into=('mm',),),
89 r_coude=SIMP(statut='o', typ='R', defaut=381.,val_min=100,val_max=500,fr="rayon du coude"),
90 r_ext=SIMP(statut='o', typ='R', defaut=136.5,val_min=100,val_max=200,fr="rayon exterieur"),
91 ep_nominale=SIMP(statut='o', typ='R', defaut=15.1,fr="epaisseur nominale sans sous epaisseur"),
92 angle_coude=SIMP(statut='o', typ='R', defaut=90,fr="angle du coude"),
93 orientation_coude=SIMP(statut='o', typ='TXM', defaut='D',into=('D','G'),fr="orientation du coude"),
94 longueur_prolongement_amont=SIMP(statut='o', typ='R', defaut=150.,fr="longueur du prolongement amont"),
95 longueur_prolongement_aval=SIMP(statut='o', typ='R', defaut=150.,fr="longueur du prologenment aval"),
96 pas_mesure=SIMP(statut='o', typ='I', defaut=80,fr="pas de la mesure"),
97 debut_mesure=SIMP(statut='o', typ='R', defaut=40.,fr="distance de la premiere mesure"),
98 angle_mesure=SIMP(statut='o', typ='R', defaut=45.,fr="angle entre deux generatrices"),
99 nb_seg_prolongement_amont = SIMP(statut='o', typ='I', defaut=6, fr="nombre de segments dans la longueur de prolongement amont"),
100 nb_seg_prolongement_aval = SIMP(statut='o', typ='I', defaut=6, fr="nombre de segments dans la longueur de prolongement aval"),
101 nb_seg_amortissement=SIMP(statut='o', typ='I', defaut=11, fr="nombre de segments dans la longueur d'amortissement"),
102 nb_seg_transition=SIMP(statut='o', typ='I', defaut=5, fr="nombre de segments dans longueur de transition"),
103 nb_seg_generatrices=SIMP(statut='o', typ='I', defaut=25, fr="nombre de segments dans la longueur des generatrices dans la zone de sous épaisseur"),
104 nb_seg_arc=SIMP(statut='o', typ='I', defaut=7, fr="nombre de segments dans l'arc du coude entre deux generatrices"),
105 nb_seg_ep=SIMP(statut='o', typ='I', defaut=3, fr="nombre de segments dans l'epaissuer"),
106 critere_dist_radial=SIMP(statut='o', typ='R', defaut=0.5, fr="critère de rafinement de maillage"),
109 INFO = SIMP(statut='f',typ='I',defaut=1,into=(0,1,2)),
113 b_charge_limite_non=BLOC(condition = "CHARGE_LIMITE == 'NON' ",
114 INFO = SIMP(statut='f',typ='I',defaut=1,into=(0,1,2)),
116 b_charge_limite_oui=BLOC(condition = "CHARGE_LIMITE == 'OUI' ",
118 TYPE_CHARGE_LIMITE= SIMP(statut='o', typ='TXM',into=('CHARGE_LIMITE_INF','CHARGE_LIMITE_SUP')),
120 PARAMETRES = FACT( statut='o',max='**',
121 fr = "Parametres pour calcul de charge limite ",
123 unite_mem=SIMP(statut='o', typ='TXM', defaut='Mo',into=('Mo',),),
124 memoire=SIMP(statut='o', typ='I', defaut=2000,val_min=128,val_max=8000),
125 unite_temps=SIMP(statut='o', typ='TXM', defaut='h',into=('h',),),
126 temps=SIMP(statut='o', typ='R', defaut=50.),
127 machine=SIMP(statut='o', typ='TXM', defaut='locale',into=('locale','distante'),),
128 unite_sig=SIMP(statut='o', typ='TXM', defaut='MPa',into=('Pa','MPa'),),
130 E =SIMP(statut='o', typ='R', defaut=200000., fr="Module d'Young"),
131 NU=SIMP(statut='o', typ='R', defaut=0.3 , fr="coefficient de poisson"),
132 SY=SIMP(statut='o', typ='R', defaut=98.7 , fr="limite d'elasticite"),
135 CHARGE_LIMITE_INF = BLOC(condition="(TYPE_CHARGE_LIMITE =='CHARGE_LIMITE_INF') ",
136 FICHIER =SIMP(statut='o',typ='Fichier',
137 fr="Format du fichier : .COMM",),
140 CHARGE_LIMITE_SUP = BLOC(condition="(TYPE_CHARGE_LIMITE =='CHARGE_LIMITE_SUP') ",
141 FICHIER =SIMP(statut='o',typ='Fichier',
142 fr="Format du fichier : .COMM",),
145 INFO = SIMP(statut='f',typ='I',defaut=1,into=(0,1,2)),