--- /dev/null
+# -*- coding: utf-8 -*-
+# CONFIGURATION MANAGEMENT OF EDF VERSION
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+#
+#
+# ======================================================================
+
+#configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/prefs_OPENTURNS_WRAPPER.py.in
+# ${CMAKE_CURRENT_SOURCE_DIR}/prefs_OPENTURNS_WRAPPER.py
+# @ONLY )
+
+install ( FILES qtEficas_map.py
+ prefs.py
+ style.py
+ prefs_MAP.py
+ configuration_MAP.py
+ catalogues_MAP.ini
+ s_poly_st_1_V1.py
+ s_poly_st_1_V1_clefs_docu
+ s_scc_st_2_V1.py
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/MAP
+ )
+install ( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Doc
+ ${CMAKE_CURRENT_SOURCE_DIR}/Templates
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/MAP
+ )
+
+
+
+### Local Variables:
+### mode: cmake
+### End:
--- /dev/null
+# Choix des catalogues
+import os
+#rep_cata=os.path.dirname(os.path.abspath(__file__))
+rep_cata=os.getcwd()
+
+catalogues = (
+# (ssCode,version,catalogue,formatIn)
+ ('MAP','s_poly_st_1_V1',os.path.join(rep_cata,'s_poly_st_1_V1.py'),'s_poly_st_1'),
+ ('MAP','s_scc_st_2_V1',os.path.join(rep_cata,'s_scc_st_2_V1.py'),'s_scc_st_2'),
+)
+
--- /dev/null
+# -*- coding: utf-8 -*-\r
+# CONFIGURATION MANAGEMENT OF EDF VERSION\r
+# ======================================================================\r
+# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG\r
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY\r
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY\r
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR\r
+# (AT YOUR OPTION) ANY LATER VERSION.\r
+#\r
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT\r
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF\r
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU\r
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.\r
+#\r
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE\r
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,\r
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.\r
+#\r
+#\r
+# ======================================================================\r
+"""\r
+ Ce module sert pour charger les paramètres de configuration d'EFICAS\r
+"""\r
+# Modules Python\r
+import os, sys, string, types, re\r
+import traceback\r
+from PyQt4.QtGui import *\r
+from utils import read_file\r
+\r
+# Modules Eficas\r
+from Editeur import utils\r
+\r
+class CONFIG:\r
+\r
+ #-----------------------------------\r
+ def __init__(self,appli,repIni):\r
+ #-----------------------------------\r
+\r
+ # Classe de base permettant de lire, afficher\r
+ # et sauvegarder les fichiers utilisateurs \r
+ # On a deux directories : la directory generale (Repertoire d instal + Nom du code\r
+ # Par exemple : ~/Install_Eficas/EficasV1_14/Openturns_Wrapper\r
+ # et la directorie de l utilisateur \r
+ # HOME/.Eficas_Openturns\r
+ # Le fichier prefs.py va etre lu dans la directory generale puis surcharge eventuellement \r
+ # par celui de l utilisateur\r
+ # le fichier de catalogue va etre lu dans la directory de l utilisateur s il exite\r
+ # dans le fichier general sinon\r
+ self.appli = appli \r
+ self.code = appli.code\r
+ self.salome = appli.salome\r
+ self.repIni = repIni\r
+ self.REPINI = repIni\r
+ self.INSTALLDIR =os.path.dirname(__file__)\r
+ \r
+ if self.appli: \r
+ self.parent=appli.top\r
+ self.appli.mode_nouv_commande='initial'\r
+ else: self.parent=None\r
+\r
+\r
+ # Valeurs par defaut\r
+ self.rep_user = os.path.join(os.environ['HOME'],'.Eficas_MAP')\r
+ if not os.path.isdir(self.rep_user) : os.mkdir(self.rep_user)\r
+ self.initialdir = self.rep_user\r
+ self.path_doc = self.rep_user\r
+ self.savedir = self.rep_user\r
+ self.exec_acrobat = self.rep_user\r
+ \r
+ self.labels_user=('exec_acrobat', 'catalogues','savedir','path_doc','map_path','PATH_PYGMEE','PATH_BENHUR','PATH_ASTER','PATH_MODULE','PATH_STUDY','NAME_SCHEME')\r
+ self.labels_eficas=("map_path","rep_user","INSTALLDIR","path_doc","exec_acrobat","rep_cata","initialdir","savedir","catalogues",'PATH_PYGMEE','PATH_BENHUR','PATH_ASTER','PATH_MODULE','PATH_STUDY','NAME_SCHEME')\r
+\r
+ #Lecture des fichiers utilisateurs\r
+ self.lecture_fichier_ini_standard()\r
+ self.lecture_fichier_ini_utilisateur()\r
+ self.lecture_catalogues()\r
+\r
+ #--------------------------------------\r
+ def lecture_fichier_ini_standard(self):\r
+ #--------------------------------------\r
+ # Verifie l'existence du fichier "standard"\r
+ # appelle la lecture de ce fichier\r
+ import prefs\r
+ name='prefs_'+prefs.code\r
+ prefsCode=__import__(name)\r
+ self.prefsUser=name+".py"\r
+ for k in self.labels_eficas :\r
+ try :\r
+ valeur=getattr(prefsCode,k)\r
+ setattr(self,k,valeur)\r
+ except :\r
+ pass\r
+ if hasattr(self,'map_path') :\r
+ oldPath=self.map_path\r
+ \r
+\r
+ #--------------------------------------\r
+ def lecture_fichier_ini_utilisateur(self):\r
+ #--------------------------------------\r
+ # Surcharge les paramètres standards par les paramètres utilisateur s'ils existent\r
+ self.fic_ini_utilisateur = os.path.join(self.rep_user,self.prefsUser)\r
+ if not os.path.isfile(self.fic_ini_utilisateur): return\r
+\r
+ txt = utils.read_file(self.fic_ini_utilisateur)\r
+ from styles import style\r
+ d=locals()\r
+ try:\r
+ exec txt in d\r
+ except :\r
+ l=traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],sys.exc_info()[2])\r
+ QMessageBox.critical( None, "Import du fichier de Configuration", \r
+ "Erreur à la lecture du fichier de configuration " + self.fic_ini_utilisateur )\r
+ sys.exit(0)\r
+ for k in self.labels_user :\r
+ try :\r
+ setattr(self,k,d[k])\r
+ except :\r
+ pass\r
+\r
+ if hasattr(self,'map_path') :\r
+ if hasattr(self,'oldPath'):\r
+ if self.map_path != self.oldPath:\r
+ sys.path.remove(self.oldPath)\r
+ sys.path[:0]=[self.map_path]\r
+ else :\r
+ sys.path[:0]=[self.map_path]\r
+\r
+\r
+ #--------------------------------------\r
+ def lecture_catalogues(self):\r
+ #--------------------------------------\r
+ rep_mat=" " # Compatibilite Aster\r
+ if hasattr(self,"catalogues") :\r
+ return\r
+ \r
+ fic_ini = os.path.join(self.repIni,"catalogues_MAP.ini")\r
+ if not os.path.isfile(fic_ini) :\r
+ QMessageBox.critical( None, "Erreur a l'import du fichier des Catalogues", \r
+ "Le fichier de configuration des catalogues "+fic_ini+" n a pas été trouvé" )\r
+ sys.exit(0)\r
+\r
+ txt = utils.read_file(fic_ini)\r
+ d=locals()\r
+ try:\r
+ exec txt in d\r
+ self.catalogues=d["catalogues"]\r
+ except :\r
+ l=traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],sys.exc_info()[2])\r
+ QMessageBox.critical( None, "Import du fichier de Configuration", \r
+ "Erreur à la lecture du fichier de configuration " + fic_ini )\r
+ sys.exit(0)\r
+\r
+\r
+\r
+ #--------------------------------------\r
+ def save_params(self):\r
+ #--------------------------------------\r
+ # sauvegarde\r
+ # les nouveaux paramètres dans le fichier de configuration utilisateur\r
+ #\r
+ texte=""\r
+ for clef in self.labels_user :\r
+ if hasattr(self,clef):\r
+ valeur=getattr(self,clef)\r
+ texte= texte + clef+" = " + repr(valeur) +"\n"\r
+ f=open(self.fic_ini_utilisateur,'w+')\r
+ print self.fic_ini_utilisateur\r
+ f.write(texte) \r
+ f.close()\r
+#\r
+\r
+\r
+def make_config(appli,rep):\r
+ return CONFIG(appli,rep)\r
+\r
+def make_config_style(appli,rep):\r
+ return None\r
+\r
+\r
--- /dev/null
+code='MAP'
--- /dev/null
+# -*- coding: utf-8 -*-\r
+# CONFIGURATION MANAGEMENT OF EDF VERSION\r
+# ======================================================================\r
+# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG\r
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY\r
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY\r
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR\r
+# (AT YOUR OPTION) ANY LATER VERSION.\r
+#\r
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT\r
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF\r
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU\r
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.\r
+#\r
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE\r
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,\r
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.\r
+#\r
+#\r
+# ======================================================================\r
+\r
+import os, sys\r
+# Les variables pouvant positionnees sont :\r
+print "import des prefs de MAP"\r
+\r
+# REPINI sert à localiser le fichier \r
+# initialdir sert comme directory initial des QFileDialog\r
+# positionnee a repin au debut mise a jour dans configuration\r
+REPINI=os.path.dirname(os.path.abspath(__file__))\r
+initialdir=REPINI \r
+\r
+# INSTALLDIR sert à localiser l'installation d'Eficas\r
+INSTALLDIR=os.path.join(REPINI,'..')\r
+PATH_PYGMEE="/local/noyret/MAP/components/pygmee_v1"\r
+PATH_BENHUR="/local/noyret/MAP/components/benhur"\r
+PATH_ASTER="/local/noyret/bin/Aster10/bin"\r
+PATH_MODULE="/local/noyret/MAP/modules/polymers"\r
+PATH_STUDY="/local/noyret/MAP/studies/demonstrateur_poly_st1"\r
+\r
+\r
+# Codage des strings qui accepte les accents (en remplacement de 'ascii')\r
+# lang indique la langue utilisée pour les chaines d'aide : fr ou ang\r
+lang='fr'\r
+encoding='iso-8859-1'\r
+\r
+# Acces a la documentation\r
+rep_cata = INSTALLDIR\r
+path_doc = os.path.join(REPINI,'Doc')\r
+exec_acrobat = "/usr/bin/xpdf"\r
+savedir = os.environ['HOME']\r
+\r
+\r
+sys.path[:0]=[INSTALLDIR]\r
--- /dev/null
+# -*- coding: utf-8 -*-
+# CONFIGURATION MANAGEMENT OF EDF VERSION
+# RESPONSABLE D6BHHHH J-P.LEFEBVRE
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2001 EDF R&D WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+# ======================================================================
+# IDENTIFICATION DU GESTIONNAIRE DE COMMANDE ACCAS A PARTIR
+# DE LA VERSION DU CODE_ASTER ASSOCIE
+#----------------------------------------------------------------------
+version = "7.1.0"
+date = "23/04/2003"
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# CONFIGURATION MANAGEMENT OF EDF VERSION
+# ======================================================================
+# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
+# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
+# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
+# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
+# (AT YOUR OPTION) ANY LATER VERSION.
+#
+# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
+# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
+# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
+# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
+#
+# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
+# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
+# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
+#
+#
+# ======================================================================
+
+"""
+ Ce module sert à lancer EFICAS configuré pour Perfect
+"""
+# Modules Python
+
+# Modules Eficas
+import prefs
+name='prefs_'+prefs.code
+__import__(name)
+
+import sys
+from PyQt4.QtGui import *
+
+from Editeur import import_code
+from Editeur import session
+from qtEficas import Appli
+
+from InterfaceQT4 import eficas_go
+from InterfaceQT4 import monChoixMap
+
+class ChoixCata:
+ def __init__(self):
+ self.schema=""
+ self.module=""
+ self.nom=""
+
+options=session.parse(sys.argv)
+cata=options.cata
+MonChoixCata=ChoixCata()
+if cata == None :
+ app = QApplication(sys.argv)
+ ChoixMap = monChoixMap.MonChoixMap(MonChoixCata)
+ ChoixMap.show()
+ res=app.exec_()
+else :
+ import re
+ p=re.compile('_V\d+')
+ if p.search(cata) == None :
+ print "Ce Catalogue ne convient pas"
+ exit(1)
+ MonChoixCata.nom=cata[0: p.search(cata).start()]
+ #MonChoixCata.nom=cata
+
+#permet de choisir le module
+print MonChoixCata.nom
+eficas_go.lance_eficas(code=prefs.code,ssCode=MonChoixCata.nom)
+#eficas_go.lance_eficas(code=prefs.code,choix="non")
--- /dev/null
+## -*- coding: utf-8 -*-
+#
+## --------------------------------------------------
+## debut entete
+## --------------------------------------------------
+#
+from Accas import *
+from prefs_MAP import PATH_MODULE
+class Tuple:
+ def __init__(self,ntuple):
+ self.ntuple=ntuple
+
+ def __convert__(self,valeur):
+ if type(valeur) == types.StringType:
+ return None
+ if len(valeur) != self.ntuple:
+ return None
+ return valeur
+
+ def info(self):
+ return "Tuple de %s elements" % self.ntuple
+
+ __repr__=info
+ __str__=info
+
+#
+#CONTEXT.debug = 1
+JdC = JDC_CATA ( code = 'MAP',
+ execmodul = None,
+ regles=(AU_MOINS_UN('PYGMEE',),AU_MOINS_UN('BENHUR',), AVANT ('PYGMEE' , 'BENHUR'),),
+ )# Fin JDC_CATA
+#
+
+PYGMEE= PROC(nom="PYGMEE",op=None,
+ fr='definition de la morphologie',
+
+# NBPHASES=SIMP(statut='o',typ='I',defaut=1,into=(1,2)),
+ FUSEAU1=FACT(fr="entree de lecfus", statut='o',
+ FORME=SIMP(statut = "o", typ='TXM', defaut="fichier", into=("manuel","fichier")),
+
+ b_forme=BLOC( condition = "FORME == 'fichier'",
+ FORMAT = SIMP(statut = "o", typ='TXM', defaut="croissant", into=("croissant","decroissant")),
+ FICHIER = SIMP ( statut = "o", typ = "Fichier", defaut=PATH_MODULE+"/s_poly_st_1/inclusion_size_distribution.txt"),
+ ),
+
+ b_manuel=BLOC( condition = "FORME == 'manuel'",
+ LFUSEAU = SIMP ( statut = "o", typ=Tuple(2),validators=VerifTypeTuple(('R','R')), max="**",) ,),),
+# LFUSEAU = SIMP ( statut = "o", typ=Tuple(2), max="**",) ,),),
+
+
+ TAILLE=SIMP(statut = "o",fr="taille du VER", typ='R', defaut=50.),
+ DISTANCE=SIMP(statut = "o",fr="distance de replusions", typ='R', defaut=0.1),
+ LANCEMENT=SIMP(statut = "o",fr="lancement de PYGMEE", typ='TXM', defaut="oui", into=("oui","non")),
+)
+
+BENHUR= PROC(nom="BENHUR",op=None,
+ fr='definition du maillage',
+
+ FINESSE=SIMP(statut = "o",fr="nombre d\'elements par cote", typ='I', into=(10,12), defaut=10),
+ LANCEMENT=SIMP(statut = "o",fr="lancement de BENHUR", typ='TXM', defaut="oui", into=("oui","non")),
+)
+
+FDVGRID = PROC(nom="FDVGRID", op=None,
+ fr='solver',
+ DIMENSION=SIMP(statut = "o",fr="dimension",typ='TXM', defaut="3D", into=("3D","2D")),
+ DIFFUSION=FACT(fr="flux de diffusion", statut='o',
+ COMPOX=SIMP(statut="o",fr="composante en X",typ='R',defaut=1.0),
+ COMPOY=SIMP(statut="o",fr="composante en Y",typ='R',defaut=0.0),
+ COMPOZ=SIMP(statut="o",fr="composante en Z",typ='R',defaut=0.0),),
+ FORMULATION=SIMP(statut = "o",fr="formulation",typ='TXM',defaut="v", into=("v","d"),),
+ CL=SIMP(statut = "o",fr="conditions aux limites",typ='TXM',defaut="t",into=("t","f")),
+ DISCRET=SIMP(statut = "o",fr="discretisation",typ='I', defaut=100, val_max=256),
+ SOLVER=SIMP(statut = "o",fr="dimension",typ='TXM', defaut="cross",into=("cross","pcg diag","pcg qi"),),
+ RESIDU=SIMP(statut = "o",fr="dimension",typ='R',defaut=1.e-4,),
+);
+#/./fdvgrid + parametres dans l ordre
+ASTER= PROC(nom="ASTER",op=None,
+ fr='definition du calcul',
+
+ CONDUCTIVITE_M=SIMP(statut = "o",fr="conductivite de la matrice", typ='R', defaut=1.0 , val_min =0.),
+ CONDUCTIVITE_I=SIMP(statut = "o",fr="conductivite des inclusions", typ='R', defaut=1.0, val_min =0.),
+ LANCEMENT=SIMP(statut = "o",fr="lancement de Code_Aster", typ='TXM', defaut="oui", into=("oui","non")),
+)
+
+GMSH= PROC(nom="GMSH",op=None,
+ fr='post-traitement',
+
+ LANCEMENT=SIMP(statut = "o",fr="lancement de GMSH", typ='TXM', defaut="oui", into=("oui","non")),
+)
--- /dev/null
+BENHUR:MAP_2010_MOD1_20100531.pdf
--- /dev/null
+## -*- coding: utf-8 -*-
+#
+## --------------------------------------------------
+## debut entete
+## --------------------------------------------------
+#
+from Accas import *
+class Tuple:
+ def __init__(self,ntuple):
+ self.ntuple=ntuple
+
+ def __convert__(self,valeur):
+ if type(valeur) == types.StringType:
+ return None
+ if len(valeur) != self.ntuple:
+ return None
+ return valeur
+
+ def info(self):
+ return "Tuple de %s elements" % self.ntuple
+
+ __repr__=info
+ __str__=info
+
+#
+#CONTEXT.debug = 1
+JdC = JDC_CATA ( code = 'MAP',
+ execmodul = None,
+ regles=(AU_MOINS_UN('PYGMEE',),AU_MOINS_UN('BENHUR',), AVANT ('PYGMEE' , 'BENHUR'),),
+ )# Fin JDC_CATA
+#
+
+PYGMEE= PROC(nom="PYGMEE",op=None,
+ fr='definition de la morphologie',
+
+# NBPHASES=SIMP(statut='o',typ='I',defaut=1,into=(1,2)),
+ FUSEAU1=FACT(fr="entree de lecfus", statut='o',
+ FORME=SIMP(statut = "o", typ='TXM', defaut="fichier", into=("manuel","fichier")),
+
+ b_forme=BLOC( condition = "FORME == 'fichier'",
+ FORMAT = SIMP(statut = "o", typ='TXM', defaut="croissant", into=("croissant","decroissant")),
+ FICHIER = SIMP ( statut = "o", typ = "Fichier", defaut="/local/noyret/MAP/modules/polymers/s_poly_st_1/inclusion_size_distribution.txt"),
+ ),
+
+ b_manuel=BLOC( condition = "FORME == 'manuel'",
+ LFUSEAU = SIMP ( statut = "o", typ=Tuple(2),validators=VerifTypeTuple(('R','R')), max="**",) ,),),
+# LFUSEAU = SIMP ( statut = "o", typ=Tuple(2), max="**",) ,),),
+
+
+ TAILLE=SIMP(statut = "o",fr="taille du VER", typ='R', defaut=50.),
+ DISTANCE=SIMP(statut = "o",fr="distance de replusions", typ='R', defaut=0.1),
+ LANCEMENT=SIMP(statut = "o",fr="lancement de PYGMEE", typ='TXM', defaut="oui", into=("oui","non")),
+)
+
+BENHUR= PROC(nom="BENHUR",op=None,
+ fr='definition du maillage',
+
+ FINESSE=SIMP(statut = "o",fr="nombre d\'elements par cote", typ='I', into=(10,12), defaut=10),
+ LANCEMENT=SIMP(statut = "o",fr="lancement de BENHUR", typ='TXM', defaut="oui", into=("oui","non")),
+)
+
+ASTER= PROC(nom="ASTER",op=None,
+ fr='definition du calcul',
+
+ CONDUCTIVITE_M=SIMP(statut = "o",fr="conductivite de la matrice", typ='R', defaut=1.0 , val_min =0.),
+ CONDUCTIVITE_I=SIMP(statut = "o",fr="conductivite des inclusions", typ='R', defaut=1.0, val_min =0.),
+ LANCEMENT=SIMP(statut = "o",fr="lancement de Code_Aster", typ='TXM', defaut="oui", into=("oui","non")),
+)
+
+GMSH= PROC(nom="GMSH",op=None,
+ fr='post-traitement',
+
+ LANCEMENT=SIMP(statut = "o",fr="lancement de GMSH", typ='TXM', defaut="oui", into=("oui","non")),
+)
--- /dev/null
+## -*- coding: utf-8 -*-
+#
+## --------------------------------------------------
+## debut entete
+## --------------------------------------------------
+#
+from Accas import *
+from prefs_Map import PATH_MODULE
+
+#
+#CONTEXT.debug = 1
+JdC = JDC_CATA ( code = 'MAP',
+ execmodul = None,
+ #regles=(AU_MOINS_UN('TABLEAU',),AU_MOINS_UN('BENHUR',), AVANT ('PYGMEE' , 'BENHUR'),),
+ regles=(AU_MOINS_UN('TABLEAU',),),
+ )# Fin JDC_CATA
+#
+
+TABLEAU= PROC(nom="TABLEAU",op=None,
+ fr='lecture des proprietes a traiter ',
+ FICHIER=SIMP(statut = "o", typ='Fichier',),
+)
+
+TRAITEMENT= PROC(nom="TRAITEMENT",op=None,
+ fr='analyse statistique classique d une des variables du tableau ',
+ TYPE =SIMP(statut='o',typ='TXM',defaut="analyse statistique classique",
+ into=( "analyse statistique classique", "analyse statistique de la qualite","analyse de la dispersion suivant la distance au joint", "analyse de la dispersion suivant la distance a la pointe de fissure","visualisation dans le triangle standard"),),
+ VARIABLE =SIMP(statut='o',typ='TXM',defaut="stress_eq",
+ into=( "stress_eq", "EPS_EQ",),)
+)
+
--- /dev/null
+# Necessaire pour compatibilite avec Aster
+++ /dev/null
-# -*- coding: utf-8 -*-
-# CONFIGURATION MANAGEMENT OF EDF VERSION
-# ======================================================================
-# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
-# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
-# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
-# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
-# (AT YOUR OPTION) ANY LATER VERSION.
-#
-# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
-# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
-# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
-# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
-#
-# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
-# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
-# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
-#
-#
-# ======================================================================
-
-#configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/prefs_OPENTURNS_WRAPPER.py.in
-# ${CMAKE_CURRENT_SOURCE_DIR}/prefs_OPENTURNS_WRAPPER.py
-# @ONLY )
-
-install ( FILES qtEficas_map.py
- prefs.py
- prefs_Map.py
- configuration_Map.py
- style.py
- catalogues_Map.ini
- Map1_Cata_V1.py
- benhur_pygmee.txt
- test_module.bhr
- DESTINATION ${CMAKE_INSTALL_PREFIX}/Map
- )
-
-
-
-### Local Variables:
-### mode: cmake
-### End:
+++ /dev/null
-# Choix des catalogues
-import os
-#rep_cata=os.path.dirname(os.path.abspath(__file__))
-rep_cata=os.getcwd()
-
-catalogues = (
-# (ssCode,version,catalogue,formatIn)
- ('Map','s_poly_st_1_V1',os.path.join(rep_cata,'s_poly_st_1_V1.py'),'s_poly_st_1'),
- ('Map','s_scc_st_2_V1',os.path.join(rep_cata,'s_scc_st_2_V1.py'),'s_scc_st_2'),
-)
-
+++ /dev/null
-# -*- coding: utf-8 -*-\r
-# CONFIGURATION MANAGEMENT OF EDF VERSION\r
-# ======================================================================\r
-# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG\r
-# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY\r
-# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY\r
-# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR\r
-# (AT YOUR OPTION) ANY LATER VERSION.\r
-#\r
-# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT\r
-# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF\r
-# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU\r
-# GENERAL PUBLIC LICENSE FOR MORE DETAILS.\r
-#\r
-# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE\r
-# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,\r
-# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.\r
-#\r
-#\r
-# ======================================================================\r
-"""\r
- Ce module sert pour charger les paramètres de configuration d'EFICAS\r
-"""\r
-# Modules Python\r
-import os, sys, string, types, re\r
-import traceback\r
-from PyQt4.QtGui import *\r
-from utils import read_file\r
-\r
-# Modules Eficas\r
-from Editeur import utils\r
-\r
-class CONFIG:\r
-\r
- #-----------------------------------\r
- def __init__(self,appli,repIni):\r
- #-----------------------------------\r
-\r
- # Classe de base permettant de lire, afficher\r
- # et sauvegarder les fichiers utilisateurs \r
- # On a deux directories : la directory generale (Repertoire d instal + Nom du code\r
- # Par exemple : ~/Install_Eficas/EficasV1_14/Openturns_Wrapper\r
- # et la directorie de l utilisateur \r
- # HOME/.Eficas_Openturns\r
- # Le fichier prefs.py va etre lu dans la directory generale puis surcharge eventuellement \r
- # par celui de l utilisateur\r
- # le fichier de catalogue va etre lu dans la directory de l utilisateur s il exite\r
- # dans le fichier general sinon\r
- self.appli = appli \r
- self.code = appli.code\r
- self.salome = appli.salome\r
- self.repIni = repIni\r
- self.REPINI = repIni\r
- self.INSTALLDIR =os.path.dirname(__file__)\r
- \r
- if self.appli: \r
- self.parent=appli.top\r
- self.appli.mode_nouv_commande='initial'\r
- else: self.parent=None\r
-\r
-\r
- # Valeurs par defaut\r
- self.rep_user = os.path.join(os.environ['HOME'],'.Eficas_Map')\r
- if not os.path.isdir(self.rep_user) : os.mkdir(self.rep_user)\r
- self.initialdir = self.rep_user\r
- self.path_doc = self.rep_user\r
- self.savedir = self.rep_user\r
- self.exec_acrobat = self.rep_user\r
- \r
- self.labels_user=('exec_acrobat', 'catalogues','savedir','path_doc','map_path','PATH_PYGMEE','PATH_BENHUR','PATH_ASTER','PATH_MODULE','PATH_STUDY','NAME_SCHEME')\r
- self.labels_eficas=("map_path","rep_user","INSTALLDIR","path_doc","exec_acrobat","rep_cata","initialdir","savedir","catalogues",'PATH_PYGMEE','PATH_BENHUR','PATH_ASTER','PATH_MODULE','PATH_STUDY','NAME_SCHEME')\r
-\r
- #Lecture des fichiers utilisateurs\r
- self.lecture_fichier_ini_standard()\r
- self.lecture_fichier_ini_utilisateur()\r
- self.lecture_catalogues()\r
-\r
- #--------------------------------------\r
- def lecture_fichier_ini_standard(self):\r
- #--------------------------------------\r
- # Verifie l'existence du fichier "standard"\r
- # appelle la lecture de ce fichier\r
- import prefs\r
- name='prefs_'+prefs.code\r
- prefsCode=__import__(name)\r
- self.prefsUser=name+".py"\r
- for k in self.labels_eficas :\r
- try :\r
- valeur=getattr(prefsCode,k)\r
- setattr(self,k,valeur)\r
- except :\r
- pass\r
- if hasattr(self,'map_path') :\r
- oldPath=self.map_path\r
- \r
-\r
- #--------------------------------------\r
- def lecture_fichier_ini_utilisateur(self):\r
- #--------------------------------------\r
- # Surcharge les paramètres standards par les paramètres utilisateur s'ils existent\r
- self.fic_ini_utilisateur = os.path.join(self.rep_user,self.prefsUser)\r
- if not os.path.isfile(self.fic_ini_utilisateur): return\r
-\r
- txt = utils.read_file(self.fic_ini_utilisateur)\r
- from styles import style\r
- d=locals()\r
- try:\r
- exec txt in d\r
- except :\r
- l=traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],sys.exc_info()[2])\r
- QMessageBox.critical( None, "Import du fichier de Configuration", \r
- "Erreur à la lecture du fichier de configuration " + self.fic_ini_utilisateur )\r
- sys.exit(0)\r
- for k in self.labels_user :\r
- try :\r
- setattr(self,k,d[k])\r
- except :\r
- pass\r
-\r
- if hasattr(self,'map_path') :\r
- if hasattr(self,'oldPath'):\r
- if self.map_path != self.oldPath:\r
- sys.path.remove(self.oldPath)\r
- sys.path[:0]=[self.map_path]\r
- else :\r
- sys.path[:0]=[self.map_path]\r
-\r
-\r
- #--------------------------------------\r
- def lecture_catalogues(self):\r
- #--------------------------------------\r
- rep_mat=" " # Compatibilite Aster\r
- if hasattr(self,"catalogues") :\r
- return\r
- \r
- fic_ini = os.path.join(self.repIni,"catalogues_Map.ini")\r
- if not os.path.isfile(fic_ini) :\r
- QMessageBox.critical( None, "Erreur a l'import du fichier des Catalogues", \r
- "Le fichier de configuration des catalogues "+fic_ini+" n a pas été trouvé" )\r
- sys.exit(0)\r
-\r
- txt = utils.read_file(fic_ini)\r
- d=locals()\r
- try:\r
- exec txt in d\r
- self.catalogues=d["catalogues"]\r
- except :\r
- l=traceback.format_exception(sys.exc_info()[0],sys.exc_info()[1],sys.exc_info()[2])\r
- QMessageBox.critical( None, "Import du fichier de Configuration", \r
- "Erreur à la lecture du fichier de configuration " + fic_ini )\r
- sys.exit(0)\r
-\r
-\r
-\r
- #--------------------------------------\r
- def save_params(self):\r
- #--------------------------------------\r
- # sauvegarde\r
- # les nouveaux paramètres dans le fichier de configuration utilisateur\r
- #\r
- texte=""\r
- for clef in self.labels_user :\r
- if hasattr(self,clef):\r
- valeur=getattr(self,clef)\r
- texte= texte + clef+" = " + repr(valeur) +"\n"\r
- f=open(self.fic_ini_utilisateur,'w+')\r
- print self.fic_ini_utilisateur\r
- f.write(texte) \r
- f.close()\r
-#\r
-\r
-\r
-def make_config(appli,rep):\r
- return CONFIG(appli,rep)\r
-\r
-def make_config_style(appli,rep):\r
- return None\r
-\r
-\r
+++ /dev/null
-code='Map'
+++ /dev/null
-# -*- coding: utf-8 -*-\r
-# CONFIGURATION MANAGEMENT OF EDF VERSION\r
-# ======================================================================\r
-# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG\r
-# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY\r
-# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY\r
-# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR\r
-# (AT YOUR OPTION) ANY LATER VERSION.\r
-#\r
-# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT\r
-# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF\r
-# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU\r
-# GENERAL PUBLIC LICENSE FOR MORE DETAILS.\r
-#\r
-# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE\r
-# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,\r
-# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.\r
-#\r
-#\r
-# ======================================================================\r
-\r
-import os, sys\r
-# Les variables pouvant positionnees sont :\r
-print "import des prefs de MAP"\r
-\r
-# REPINI sert à localiser le fichier \r
-# initialdir sert comme directory initial des QFileDialog\r
-# positionnee a repin au debut mise a jour dans configuration\r
-REPINI=os.path.dirname(os.path.abspath(__file__))\r
-initialdir=REPINI \r
-\r
-# INSTALLDIR sert à localiser l'installation d'Eficas\r
-INSTALLDIR=os.path.join(REPINI,'..')\r
-PATH_PYGMEE="/local/noyret/MAP/components/pygmee_v1"\r
-PATH_BENHUR="/local/noyret/MAP/components/benhur"\r
-PATH_ASTER="/local/noyret/bin/Aster10/bin"\r
-PATH_MODULE="/local/noyret/MAP/modules/polymers"\r
-PATH_STUDY="/local/noyret/MAP/studies/demonstrateur_poly_st1"\r
-\r
-\r
-# Codage des strings qui accepte les accents (en remplacement de 'ascii')\r
-# lang indique la langue utilisée pour les chaines d'aide : fr ou ang\r
-lang='fr'\r
-encoding='iso-8859-1'\r
-\r
-# Acces a la documentation\r
-rep_cata = INSTALLDIR\r
-path_doc = os.path.join(REPINI,'Doc')\r
-exec_acrobat = "/usr/bin/xpdf"\r
-savedir = os.environ['HOME']\r
-\r
-\r
-sys.path[:0]=[INSTALLDIR]\r
+++ /dev/null
-# -*- coding: utf-8 -*-
-# CONFIGURATION MANAGEMENT OF EDF VERSION
-# RESPONSABLE D6BHHHH J-P.LEFEBVRE
-# ======================================================================
-# COPYRIGHT (C) 1991 - 2001 EDF R&D WWW.CODE-ASTER.ORG
-# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
-# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
-# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
-# (AT YOUR OPTION) ANY LATER VERSION.
-#
-# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
-# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
-# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
-# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
-#
-# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
-# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
-# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
-# ======================================================================
-# IDENTIFICATION DU GESTIONNAIRE DE COMMANDE ACCAS A PARTIR
-# DE LA VERSION DU CODE_ASTER ASSOCIE
-#----------------------------------------------------------------------
-version = "7.1.0"
-date = "23/04/2003"
+++ /dev/null
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-# CONFIGURATION MANAGEMENT OF EDF VERSION
-# ======================================================================
-# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG
-# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
-# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY
-# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR
-# (AT YOUR OPTION) ANY LATER VERSION.
-#
-# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
-# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
-# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
-# GENERAL PUBLIC LICENSE FOR MORE DETAILS.
-#
-# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE
-# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER,
-# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE.
-#
-#
-# ======================================================================
-
-"""
- Ce module sert à lancer EFICAS configuré pour Perfect
-"""
-# Modules Python
-
-# Modules Eficas
-import prefs
-name='prefs_'+prefs.code
-__import__(name)
-
-import sys
-from PyQt4.QtGui import *
-
-from Editeur import import_code
-from Editeur import session
-from qtEficas import Appli
-
-from InterfaceQT4 import eficas_go
-from InterfaceQT4 import monChoixMap
-
-class ChoixCata:
- def __init__(self):
- self.schema=""
- self.module=""
- self.nom=""
-
-options=session.parse(sys.argv)
-cata=options.cata
-MonChoixCata=ChoixCata()
-if cata == None :
- app = QApplication(sys.argv)
- ChoixMap = monChoixMap.MonChoixMap(MonChoixCata)
- ChoixMap.show()
- res=app.exec_()
-else :
- import re
- p=re.compile('_V\d+')
- if p.search(cata) == None :
- print "Ce Catalogue ne convient pas"
- exit(1)
- MonChoixCata.nom=cata[0: p.search(cata).start()]
- #MonChoixCata.nom=cata
-
-#permet de choisir le module
-print MonChoixCata.nom
-eficas_go.lance_eficas(code=prefs.code,ssCode=MonChoixCata.nom)
-#eficas_go.lance_eficas(code=prefs.code,choix="non")
+++ /dev/null
-<?xml version='1.0' encoding='iso-8859-1' ?>
-<proc name="mySchema">
- <property name="DefaultStudyID" value="1"/>
- <type name="string" kind="string"/>
- <struct name="Engines/dataref">
- <member name="ref" type="string"/>
- </struct>
- <type name="double" kind="double"/>
- <sequence name="Point" content="double"/>
- <type name="bool" kind="bool"/>
- <sequence name="boolvec" content="bool"/>
- <sequence name="dblevec" content="double"/>
- <objref name="file" id="file"/>
- <type name="int" kind="int"/>
- <sequence name="intvec" content="int"/>
- <objref name="pyobj" id="python:obj:1.0"/>
- <sequence name="stringvec" content="string"/>
- <container name="DefaultContainer">
- <property name="container_name" value="FactoryServer"/>
- <property name="hostname" value="localhost"/>
- </container>
- <optimizer name="OpenTurnsLoop" nbranch="4" lib="libOpenTURNS_YACS_Integration" entry="createOpenTURNSScriptLauncher">
- <initnode>
- <service name="InitNode">
- <component>%_CODE_NOMCODE%</component>
- <load container="DefaultContainer"/>
- <method>InitWithVarList</method>
- <inport name="inputVarList" type="stringvec"/>
- <inport name="outputVarList" type="stringvec"/>
- <inport name="deterministicVars" type="pyobj"/>
- </service>
- </initnode>
- <service name="ExecNode">
- <node>OpenTurnsLoop.InitNode</node>
- <method>ExecWithVarList</method>
- <inport name="inPoint" type="Point"/>
- <outport name="outPoint" type="Point"/>
- </service>
- <finalizenode>
- <service name="FinalizeNode">
- <node>OpenTurnsLoop.InitNode</node>
- <method>Finalize</method>
- <outport name="return" type="int"/>
- </service>
- </finalizenode>
- </optimizer>
- <inline name="SaveResultsToFile">
- <script><code><![CDATA[f = open(fileName, "w")
-for (k, v) in algoResults.iteritems():
- f.write("%s: %s\n" % (k, v))
-f.close()
-]]></code></script>
- <inport name="algoResults" type="pyobj"/>
- <inport name="fileName" type="string"/>
- </inline>
- <service name="WrapperParser">
- <component>OPENTURNS</component>
- <load container="DefaultContainer"/>
- <method>WrapperParser</method>
- <inport name="wrapperFilePath" type="string"/>
- <inport name="studyFilePath" type="string"/>
- <outport name="initOptLoop" type="pyobj"/>
- <outport name="wrapperContent" type="string"/>
- <outport name="inputVarList" type="stringvec"/>
- <outport name="outputVarList" type="stringvec"/>
- </service>
- <inline name="InitDeterministicVars">
- <script><code><![CDATA[detVars = {}
-detVars["E"] = 2.1e+11
-detVars["I"] = 2.1e-06
-]]></code></script>
- <outport name="detVars" type="pyobj"/>
- </inline>
- <control> <fromnode>OpenTurnsLoop</fromnode> <tonode>SaveResultsToFile</tonode> </control>
- <control> <fromnode>WrapperParser</fromnode> <tonode>OpenTurnsLoop</tonode> </control>
- <control> <fromnode>InitDeterministicVars</fromnode> <tonode>OpenTurnsLoop</tonode> </control>
- <datalink control="false">
- <fromnode>OpenTurnsLoop</fromnode> <fromport>algoResults</fromport>
- <tonode>SaveResultsToFile</tonode> <toport>algoResults</toport>
- </datalink>
- <datalink control="false">
- <fromnode>OpenTurnsLoop</fromnode> <fromport>evalSamples</fromport>
- <tonode>OpenTurnsLoop.ExecNode</tonode> <toport>inPoint</toport>
- </datalink>
- <datalink control="false">
- <fromnode>WrapperParser</fromnode> <fromport>initOptLoop</fromport>
- <tonode>OpenTurnsLoop</tonode> <toport>algoInit</toport>
- </datalink>
- <datalink control="false">
- <fromnode>WrapperParser</fromnode> <fromport>inputVarList</fromport>
- <tonode>OpenTurnsLoop.InitNode</tonode> <toport>inputVarList</toport>
- </datalink>
- <datalink control="false">
- <fromnode>WrapperParser</fromnode> <fromport>outputVarList</fromport>
- <tonode>OpenTurnsLoop.InitNode</tonode> <toport>outputVarList</toport>
- </datalink>
- <datalink control="false">
- <fromnode>InitDeterministicVars</fromnode> <fromport>detVars</fromport>
- <tonode>OpenTurnsLoop.InitNode</tonode> <toport>deterministicVars</toport>
- </datalink>
- <datalink control="false">
- <fromnode>OpenTurnsLoop.ExecNode</fromnode> <fromport>outPoint</fromport>
- <tonode>OpenTurnsLoop</tonode> <toport>evalResults</toport>
- </datalink>
- <parameter>
- <tonode>OpenTurnsLoop</tonode><toport>nbBranches</toport>
- <value><int>4</int></value>
- </parameter>
- <parameter>
- <tonode>SaveResultsToFile</tonode><toport>fileName</toport>
- <value><string>/tmp/savedResults.txt</string></value>
- </parameter>
- <parameter>
- <tonode>WrapperParser</tonode><toport>wrapperFilePath</toport>
- <value><string>/local00/renaud/salome/test-OT-YACS/wrap.xml</string></value>
- </parameter>
- <parameter>
- <tonode>WrapperParser</tonode><toport>studyFilePath</toport>
- <value><string>/local00/renaud/salome/test-OT-YACS/openturns_study.py</string></value>
- </parameter>
- <presentation name="InitDeterministicVars" x="4" y="273" width="158" height="63" expanded="1"/>
- <presentation name="OpenTurnsLoop" x="233.5" y="32" width="473" height="308.5" expanded="1"/>
- <presentation name="OpenTurnsLoop.ExecNode" x="175" y="126" width="158" height="63" expanded="1"/>
- <presentation name="OpenTurnsLoop.FinalizeNode" x="311" y="221" width="158" height="63" expanded="1"/>
- <presentation name="SaveResultsToFile" x="747" y="32" width="158" height="90" expanded="1"/>
- <presentation name="OpenTurnsLoop.InitNode" x="4" y="187.5" width="158" height="117" expanded="1"/>
- <presentation name="WrapperParser" x="4" y="59.5" width="158" height="144" expanded="1"/>
- <presentation name="__ROOT__" x="0" y="0" width="909" height="344.5" expanded="1"/>
-</proc>
+++ /dev/null
-# Necessaire pour compatibilite avec Aster