Sprout from V6_main 2011-12-05 13:22:27 UTC Pascale Noyret <pascale.noyret@edf.fr> '*** empty log message ***'
Delete:
Carmel3D/magther.comm
MAP/CMakeLists.txt
MAP/Doc/MAP_2010_MOD1_20100531.pdf
MAP/Templates/README.txt
MAP/Templates/s_DIC/s_DIC_YACS_nodes.py
MAP/Templates/s_polymers_st_1/benhur_template.txt
MAP/Templates/s_polymers_st_1/cata_s_polymers_st_1.xml
MAP/Templates/s_polymers_st_1/s_polymers_st_1_YACS_nodes.py
MAP/Templates/s_polymers_st_1/s_polymers_st_1_aster_template.comm
MAP/Templates/s_polymers_st_1/s_polymers_st_1_aster_template.export
MAP/catalogues_MAP.ini
MAP/configuration_MAP.py
MAP/prefs.py
MAP/prefs_MAP.py
MAP/properties.py
MAP/qtEficas_map.py
MAP/s_DIC_V1.py
MAP/s_polymers_st_1_V1.py
MAP/s_scc_st_2_V1.py
MAP/style.py
+++ /dev/null
-
-LINEAR=L_LAW();
-
-cyl=MATERIAU(TYPE='CONDUCTOR',
- CONDUCTIVITY=_F(LAW=LINEAR,
- HOMOGENEOUS='TRUE',
- VALUE_COMPLEX=('RI',1.0,0.0,),),
- PERMEABILITY=_F(LAW=LINEAR,
- VALUE_COMPLEX=('RI',1.0,0.0,),),);
-
-SOURCES(EPORT=_F(NAME='d',
- TYPE='VOLTAGE',
- AMP=84.852,
- POLAR=0,),);
-#CHECKSUM:a6e95dd249cb2097b82c453e926ec171 -:FIN CHECKSUM
\ No newline at end of file
+++ /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
-import os
-import sys
-
-try :
- sys.path.append(os.path.join(os.getenv('MAP_DIRECTORY'),'classes/python/'))
- from class_MAP_parameters import *
-except :
- pass
-
-
-#-------------------------
-class component_RBM:
-#-------------------------
-
- def __init__(self,CS,CSJ,GS,GSJ,VMAX,VMAXJ,study_path):
- print "RBM - BEGIN"
- composant="RBM"
- RBM_input = study_path+"/RBM.input"
- parameter=MAP_parameters()
- parameter.add_component(composant)
- parameter.add_parameter(composant, 'CS', CS)
- parameter.add_parameter(composant, 'CSJ', CSJ)
- parameter.add_parameter(composant, 'GS', GS)
- parameter.add_parameter(composant, 'GSJ', GSJ)
- parameter.add_parameter(composant, 'VMAX', VMAX)
- parameter.add_parameter(composant, 'VMAXJ', VMAXJ)
- parameter.write(RBM_input)
-
- #commande= "cd "+ commponent_dir +";"
- #commande+= "python rbm.py -i "+RBM_input+";\n"
- #os.system(commande)
-
- print "RBM - END"
-
-
-#-------------------------
-class component_DISPL:
-#-------------------------
-
- def __init__(self,CS,CSJ,GS,GSJ,VMAXJ,VMAX,study_path):
- print "DISPL - BEGIN"
- composant="DISPL"
- DISPL_input = study_path+"/DISPL.input"
- parameter=MAP_parameters()
- parameter.add_component(composant)
- parameter.add_parameter(composant, 'CS', CS)
- parameter.add_parameter(composant, 'CSJ', CSJ)
- parameter.add_parameter(composant, 'GS', GS)
- parameter.add_parameter(composant, 'GSJ', GSJ)
- parameter.add_parameter(composant, 'VMAX', VMAX)
- parameter.add_parameter(composant, 'VMAXJ', VMAXJ)
- parameter.write(DISPL_input)
-
- #commande= "cd "+ commponent_dir +";"
- #commande+= "python rbm.py -i "+DISPL_input+";\n"
- #os.system(commande)
-
- print "DISPL - END"
-
-
+++ /dev/null
-OPTIONS
-3D BENHUR SCALE
-I - Morphologie (MESSALA)
-1) dimension du VER cubique [m] (entree)
-%_RVE_SIZE%
-2) fraction volumique seuil écrétant le fuseau (entree)
-.11
-3) fichier decrivant le fuseau granulaire descendant (entree)
--
-4) fichier decrivant la position et la taille des boules (sortie)
-%_INCLUSION_FILE%
-5) fichier CAO de la morphologie (sortie)
--
-6) facteur de correction de fraction volumique (entree)
-1.0
-
-II - Maillage (BENHUR)
-1) fichier entree décrivant le maillage support (entree)
-%_PATH_BENHUR%/bin/regular_mesh_3D_%_MESH_SIZE%.msh
-2) fichier sortie du maillage (sortie)
-%_PATH_STUDY%/%_NAME_SCHEME%_benhur_%_MESH_SIZE%.msh
-3) fichier commentaire sur les statistiques décrivant le maillage (sortie)
-%_PATH_STUDY%/%_NAME_SCHEME%_benhur_%_MESH_SIZE%.log
-4) fichier BMP décrivant une coupe binarisée du VER (sortie)
-%_PATH_STUDY%/%_NAME_SCHEME%_benhur_%_MESH_SIZE%.bmp
-5) fichier TXT donnant la level set du contour aux noeuds (sortie)
-%_PATH_STUDY%/%_NAME_SCHEME%_benhur_%_MESH_SIZE%_levelset.txt
-
+++ /dev/null
-<?xml version='1.0' encoding='iso-8859-1' ?>
-<proc name="s_polymers_st_1">
- <property name="DefaultStudyID" value="1"/>
- <type name="string" kind="string"/>
- <struct name="Engines/dataref">
- <member name="ref" type="string"/>
- </struct>
- <type name="bool" kind="bool"/>
- <sequence name="boolvec" content="bool"/>
- <type name="double" kind="double"/>
- <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>
- <inline name="pygmee_v2">
- <script><code><![CDATA[import sys
-#import os
-
-#sys.path.append(os.path.join(os.getenv('EFICAS_ROOT'),'MAP/Templates/s_polymers_st_1'))
-#print sys.path
-from s_polymers_st_1_YACS_nodes import *
-
-volume_fraction=component_pygmee_v2(rve_size, phase_number, sieve_curve_in, sieve_curve_out, repulsion_distance, study_name, study_path, file_result_inclusions, file_result_rve)
-
-result_inclusions = file_result_inclusions
-result_rve = file_result_rve
-]]></code></script>
- <inport name="phase_number" type="int"/>
- <inport name="sieve_curve_in" type="string"/>
- <inport name="sieve_curve_out" type="string"/>
- <inport name="repulsion_distance" type="double"/>
- <inport name="file_result_inclusions" type="string"/>
- <inport name="file_result_rve" type="string"/>
- <inport name="rve_size" type="double"/>
- <inport name="study_name" type="string"/>
- <inport name="study_path" type="string"/>
- <outport name="result_inclusions" type="string"/>
- <outport name="result_rve" type="string"/>
- <outport name="volume_fraction" type="double"/>
- </inline>
- <inline name="init">
- <script><code><![CDATA[phase_number=1
-rve_size=50.0
-
-study_path="/local/noyret/MAP/studies/demonstrateur_s_polymers_st_1/"
-sieve_curve_in=study_path+"inclusion_size_distribution.txt"
-sieve_curve_out=study_path+"pygmee_v2_test_YACS.sieve_out"
-repulsion_distance=0.1
-file_result_inclusions=study_path+"inclusions.txt"
-file_result_rve=study_path+"rve.txt"
-finesse=10
-lambda_I=100.
-lambda_M=1.
-benhur_template="/local/noyret/EficasV1/MAP/templates/s_polymers_st_1/benhur_template.txt"
-]]></code></script>
- <inport name="study_name" type="string"/>
- <inport name="study_path" type="string"/>
- <outport name="phase_number" type="int"/>
- <outport name="sieve_curve_in" type="string"/>
- <outport name="sieve_curve_out" type="string"/>
- <outport name="repulsion_distance" type="double"/>
- <outport name="file_result_inclusions" type="string"/>
- <outport name="file_result_rve" type="string"/>
- <outport name="rve_size" type="double"/>
- <outport name="finesse" type="int"/>
- <outport name="lambda_I" type="double"/>
- <outport name="lambda_M" type="double"/>
- </inline>
- <inline name="fdvgrid">
- <script><code><![CDATA[import sys
-import os
-
-sys.path.append(os.path.join(os.getenv('EFICAS_ROOT'),'MAP/Templates/s_polymers_st_1'))
-from s_polymers_st_1_YACS_nodes import *
-
-lambda_x=component_fdvgrid(lambda_I, lambda_M, rve_size, file_inclusions, finesse)
-]]></code></script>
- <inport name="file_inclusions" type="string"/>
- <inport name="rve_size" type="double"/>
- <inport name="finesse" type="int"/>
- <inport name="lambda_I" type="double"/>
- <inport name="lambda_M" type="double"/>
- <inport name="study_name" type="string"/>
- <inport name="study_path" type="string"/>
- <outport name="lambda_x" type="double"/>
- </inline>
- <inline name="benhur">
- <script><code><![CDATA[import sys
-import os
-
-
-sys.path.append(os.path.join(os.getenv('EFICAS_ROOT'),'MAP/Templates/s_polymers_st_1'))
-
-from s_polymers_st_1_YACS_nodes import *
-
-(result_mesh, result_log)=component_benhur(finesse, rve_size, file_inclusions, study_name, study_path)
-
-]]></code></script>
- <inport name="rve_size" type="double"/>
- <inport name="finesse" type="double"/>
- <inport name="file_inclusions" type="string"/>
- <inport name="study_name" type="string"/>
- <inport name="study_path" type="string"/>
- <outport name="result_mesh" type="string"/>
- <outport name="result_log" type="string"/>
- </inline>
- <inline name="env">
- <script><code><![CDATA[study_path="/local00/bin/MAP/studies/demonstrateur_s_polymers_st_1/"
-study_name="test YACS"
-aster_path="/local00/aster/bin/"
-]]></code></script>
- <outport name="study_name" type="string"/>
- <outport name="study_path" type="string"/>
- <outport name="aster_path" type="string"/>
- </inline>
- <inline name="aster_s_polymers_st_1">
- <script><code><![CDATA[import sys
-import os
-
-
-sys.path.append(os.path.join(os.getenv('EFICAS_ROOT'),'MAP/Templates/s_polymers_st_1'))
-
-from s_polymers_st_1_YACS_nodes import *
-
-result_gmsh=component_aster_s_polymers_st_1(rve_size, finesse, lambda_I, lambda_M, study_name, study_path, aster_path)
-
-]]></code></script>
- <inport name="lambda_I" type="double"/>
- <inport name="lambda_M" type="double"/>
- <inport name="study_name" type="string"/>
- <inport name="study_path" type="string"/>
- <inport name="rve_size" type="double"/>
- <inport name="finesse" type="int"/>
- <inport name="mesh" type="string"/>
- <inport name="aster_path" type="string"/>
- <outport name="result_gmsh" type="string"/>
- </inline>
- <inline name="gmsh_post">
- <script><code><![CDATA[import sys
-import os
-
-
-sys.path.append(os.path.join(os.getenv('EFICAS_ROOT'),'MAP/Templates/s_polymers_st_1'))
-
-from s_polymers_st_1_YACS_nodes import *
-
-component_gmsh_post(result_gmsh)
-]]></code></script>
- <inport name="result_gmsh" type="string"/>
- </inline>
- <control> <fromnode>pygmee_v2</fromnode> <tonode>fdvgrid</tonode> </control>
- <control> <fromnode>pygmee_v2</fromnode> <tonode>benhur</tonode> </control>
- <control> <fromnode>init</fromnode> <tonode>pygmee_v2</tonode> </control>
- <control> <fromnode>init</fromnode> <tonode>fdvgrid</tonode> </control>
- <control> <fromnode>init</fromnode> <tonode>benhur</tonode> </control>
- <control> <fromnode>init</fromnode> <tonode>aster_s_polymers_st_1</tonode> </control>
- <control> <fromnode>benhur</fromnode> <tonode>aster_s_polymers_st_1</tonode> </control>
- <control> <fromnode>env</fromnode> <tonode>pygmee_v2</tonode> </control>
- <control> <fromnode>env</fromnode> <tonode>init</tonode> </control>
- <control> <fromnode>env</fromnode> <tonode>fdvgrid</tonode> </control>
- <control> <fromnode>env</fromnode> <tonode>benhur</tonode> </control>
- <control> <fromnode>env</fromnode> <tonode>aster_s_polymers_st_1</tonode> </control>
- <control> <fromnode>aster_s_polymers_st_1</fromnode> <tonode>gmsh_post</tonode> </control>
- <datalink control="false">
- <fromnode>pygmee_v2</fromnode> <fromport>result_inclusions</fromport>
- <tonode>fdvgrid</tonode> <toport>file_inclusions</toport>
- </datalink>
- <datalink control="false">
- <fromnode>pygmee_v2</fromnode> <fromport>result_inclusions</fromport>
- <tonode>benhur</tonode> <toport>file_inclusions</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>phase_number</fromport>
- <tonode>pygmee_v2</tonode> <toport>phase_number</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>sieve_curve_in</fromport>
- <tonode>pygmee_v2</tonode> <toport>sieve_curve_in</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>sieve_curve_out</fromport>
- <tonode>pygmee_v2</tonode> <toport>sieve_curve_out</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>repulsion_distance</fromport>
- <tonode>pygmee_v2</tonode> <toport>repulsion_distance</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>file_result_inclusions</fromport>
- <tonode>pygmee_v2</tonode> <toport>file_result_inclusions</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>file_result_rve</fromport>
- <tonode>pygmee_v2</tonode> <toport>file_result_rve</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>rve_size</fromport>
- <tonode>pygmee_v2</tonode> <toport>rve_size</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>rve_size</fromport>
- <tonode>fdvgrid</tonode> <toport>rve_size</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>rve_size</fromport>
- <tonode>benhur</tonode> <toport>rve_size</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>rve_size</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>rve_size</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>finesse</fromport>
- <tonode>fdvgrid</tonode> <toport>finesse</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>finesse</fromport>
- <tonode>benhur</tonode> <toport>finesse</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>finesse</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>finesse</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>lambda_I</fromport>
- <tonode>fdvgrid</tonode> <toport>lambda_I</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>lambda_I</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>lambda_I</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>lambda_M</fromport>
- <tonode>fdvgrid</tonode> <toport>lambda_M</toport>
- </datalink>
- <datalink control="false">
- <fromnode>init</fromnode> <fromport>lambda_M</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>lambda_M</toport>
- </datalink>
- <datalink control="false">
- <fromnode>benhur</fromnode> <fromport>result_mesh</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>mesh</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_name</fromport>
- <tonode>pygmee_v2</tonode> <toport>study_name</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_name</fromport>
- <tonode>init</tonode> <toport>study_name</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_name</fromport>
- <tonode>fdvgrid</tonode> <toport>study_name</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_name</fromport>
- <tonode>benhur</tonode> <toport>study_name</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_name</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>study_name</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_path</fromport>
- <tonode>init</tonode> <toport>study_path</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_path</fromport>
- <tonode>pygmee_v2</tonode> <toport>study_path</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_path</fromport>
- <tonode>fdvgrid</tonode> <toport>study_path</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_path</fromport>
- <tonode>benhur</tonode> <toport>study_path</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>study_path</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>study_path</toport>
- </datalink>
- <datalink control="false">
- <fromnode>env</fromnode> <fromport>aster_path</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>aster_path</toport>
- </datalink>
- <datalink control="false">
- <fromnode>aster_s_polymers_st_1</fromnode> <fromport>result_gmsh</fromport>
- <tonode>gmsh_post</tonode> <toport>result_gmsh</toport>
- </datalink>
- <parameter>
- <tonode>benhur</tonode><toport>file_inclusions</toport>
- <value><string></string></value>
- </parameter>
- <presentation name="pygmee_v2" x="583" y="470.25" width="158" height="279" expanded="1" expx="0" expy="0" expWidth="158" expHeight="279" shownState="0"/>
- <presentation name="init" x="273" y="199.75" width="158" height="306" expanded="1" expx="0" expy="0" expWidth="158" expHeight="306" shownState="0"/>
- <presentation name="fdvgrid" x="869" y="80.25" width="158" height="225" expanded="1" expx="0" expy="0" expWidth="158" expHeight="225" shownState="0"/>
- <presentation name="benhur" x="869" y="510.25" width="158" height="171" expanded="1" expx="0" expy="0" expWidth="158" expHeight="171" shownState="0"/>
- <presentation name="env" x="9" y="301.25" width="158" height="117" expanded="1" expx="0" expy="0" expWidth="158" expHeight="117" shownState="0"/>
- <presentation name="aster_s_polymers_st_1" x="1133" y="271.75" width="158" height="252" expanded="1" expx="0" expy="0" expWidth="158" expHeight="252" shownState="0"/>
- <presentation name="gmsh_post" x="1397.25" y="373.25" width="158" height="63" expanded="1" expx="0" expy="0" expWidth="158" expHeight="63" shownState="0"/>
- <presentation name="__ROOT__" x="0" y="0" width="1559.25" height="753.25" expanded="1" expx="0" expy="0" expWidth="1559.25" expHeight="753.25" shownState="0"/>
-</proc>
+++ /dev/null
-import os
-import sys
-
-try :
- sys.path.append(os.path.join(os.getenv('MAP_DIRECTORY'),'classes/python/'))
- from class_MAP_parameters import *
-except :
- pass
-
-#------------------------
-class component_template :
-#------------------------
-# classe de base pour les composants utilisant un fichier trou
-# a mettre dans les class_MAP_parameters ??
-
- def creeFichierTemplate(self,templateInput, fichierOutput, listeVariables, dico):
- f = file(templateInput)
- stringInput = f.read()
- f.close()
-
- # find and replace with dictionnary
- for nomVar in listeVariables:
- chaineARemplacer="%_"+nomVar.upper()+"%"
- valeur=dico[nomVar]
- stringInput=stringInput.replace(chaineARemplacer,str(valeur))
-
- # write into ouput file
- f=open(fichierOutput,'wb')
- f.write(stringInput)
- f.close()
-
-#-------------------------
-class component_pygmee_v2:
-#-------------------------
-
- def __init__(self,rve_size, phase_number, sieve_curve_in, sieve_curve_out, repulsion_distance,
- study_name, study_path, file_result_inclusions, file_result_rve):
- print "pygmee_v2 for YACS - BEGIN"
- composant="pygmee_v2"
- pygmee_v2_input = study_path+"/pygmee_v2_for_YACS.input"
- parameter=MAP_parameters()
- parameter.add_component(composant)
- parameter.add_parameter(composant, 'rve_size', rve_size)
- parameter.add_parameter(composant, 'phase_number', phase_number)
- parameter.add_parameter(composant, 'sieve_curve_in', sieve_curve_in)
- parameter.add_parameter(composant, 'sieve_curve_out', sieve_curve_out)
- parameter.add_parameter(composant, 'repulsion_distance', repulsion_distance)
- parameter.add_parameter(composant, 'study_name', study_name)
- parameter.add_parameter(composant, 'file_result_inclusions', file_result_inclusions)
- parameter.add_parameter(composant, 'file_result_rve', file_result_rve)
- parameter.write(pygmee_v2_input)
-
- commponent_dir= os.path.join(os.getenv('MAP_DIRECTORY'),'components/pygmee_v2/src')
- commande= "cd "+ commponent_dir +";"
- commande+= "python pygmee_v2.py -i "+pygmee_v2_input+";\n"
- os.system(commande)
-
- fd = open(file_result_rve, 'r')
- line=fd.readline()
- self.volume_fraction=float(line)
- print "volume_fraction =",self.volume_fraction
- fd.close()
-
- print "pygmee_v2 for YACS - END"
-
- def __call__(self,rve_size, phase_number, sieve_curve_in, sieve_curve_out, repulsion_distance,
- study_name, study_path, file_result_inclusions, file_result_rve):
-
- return self.volume_fraction
-
-
-
-#-----------------------
-class component_fdvgrid:
-#-----------------------
-
- def __init__(self,lambda_I, lambda_M, rve_size, file_inclusions, finesse, path_study):
- print "fdvgrid for YACS - BEGIN"
-
- contrast=lambda_I/lambda_M
- if (finesse < 32): finesse=32
-
- fdvgrid_path=os.path.join(os.getenv('MAP_DIRECTORY'),'components/fdvgrid/bin')
-
- lambda_output=path_study+'/lambda_x.output'
- string='[fdvgrid]\n'
- file_inclusions
- string+=' microstructure_file="'+file_inclusions+'";\n'
- string+=' rve_size='+str(rve_size)+';\n'
- string+=' grid_size='+str(finesse)+';\n'
- string+=' contrast='+str(contrast)+';\n'
- string+=' method_type="v";\n'
- string+=' BC_type="t";\n'
- string+=' lambda_output="'+lambda_output+'"\n'
-
-
- fdvgrid_input=path_study+'/fdvgrid.input'
- fd = open(fdvgrid_input, 'w')
- fd.write(string)
- fd.close()
-
- commande= "cd "+fdvgrid_path+";\n"
- commande+= "./fdvgrid "+fdvgrid_input
-
- os.system(commande)
-
- fd = open(lambda_output, 'r')
- line=fd.readline()
- self.lambda_x=float(line)
- fd.close()
- print "fdvgrid for YACS - END"
-
- def __call__(self,lambda_I, lambda_M, rve_size, file_inclusions, finesse):
- return self.lambda_x
-
-#-------------------------------------------
-class component_benhur(component_template) :
-#-------------------------------------------
-
- def __init__(self,mesh_size, rve_size, inclusion_file, name_scheme, path_study):
- #------------------------------------------------------------------------------
- print "benhur for YACS - BEGIN"
-
- template_path=os.path.join(os.getenv('EFICAS_ROOT'), 'MAP/Templates/s_polymers_st_1/')
- path_benhur=os.path.join(os.getenv('MAP_DIRECTORY'), 'components/benhur/')
-
- templateInput = template_path+"benhur_template.txt"
- monFichierOutput = template_path+"s_polymers_st_1_benhur_"+str(mesh_size)+".bhr"
- lVar=('mesh_size','rve_size','inclusion_file','path_study','name_scheme','path_benhur')
- self.creeFichierTemplate(templateInput, monFichierOutput, lVar, locals())
-
- # launch of BENHUR on the previous file
- benhur_path = os.path.join(os.getenv('MAP_DIRECTORY'),'components/benhur/')
- commande="cd "+benhur_path+"/bin;\n"
- commande+="./benhur -i "+monFichierOutput+";\n"
- os.system(commande)
-
- self.result_mesh=path_study+'/'+name_scheme+'_benhur_'+str(mesh_size)+'.msh'
- self.result_log=path_study+'/'+name_scheme+'_benhur_'+str(mesh_size)+'.log'
-
-
- def __call__(self, mesh_size, rve_size, inclusion_file, name_scheme, path_study):
- #------------------------------------------------------------------------------
- return (self.result_mesh, self.result_log)
-
-
-#----------------------------------------------------------
-class component_aster_s_polymers_st_1 (component_template):
-#----------------------------------------------------------
-
- def __init__(self,rve_size, mesh_size, conductivite_i, conductivite_m, name_study,
- path_study, aster_path):
- #------------------------------------------------------------------------------
- print "aster_s_polymers_st_1 for YACS - BEGIN"
- aster_version="STA10"
- template_path=os.path.join(os.getenv('EFICAS_ROOT'), 'MAP/Templates/s_polymers_st_1/')
-
- # Gestion du .comm
- lVarC=('rve_size','conductivite_i','conductivite_m')
- templateCommInput=template_path+"s_polymers_st_1_aster_template.comm"
- monFichierCommOutput=path_study+"/s_polymers_st_1_aster.comm"
- self.creeFichierTemplate(templateCommInput, monFichierCommOutput, lVarC, locals())
-
- # Gestion du .export
- lVarE=('mesh_size','aster_version','name_study','path_study')
- templateExportInput=template_path+"s_polymers_st_1_aster_template.export"
- monFichierExportOutput=path_study+"/s_polymers_st_1_aster.export"
- self.creeFichierTemplate(templateExportInput, monFichierExportOutput, lVarE, locals())
-
- # launch of CODE_ASTER on the study
- commande="cd "+path_study+";"
- commande+=commande + aster_path + "/as_run "+monFichierExportOutput +";\n"
- os.system(commande)
- self.result_gmsh=path_study+"/s_polymers_st_1_aster.resu.msh"
- print "aster_s_polymers_st_1 for YACS - END"
-
- def __call__(self,rve_size, mesh_size, conductivite_i, conductivite_m, name_study,
- path_study, aster_path):
- #------------------------------------------------------------------------------
- return result_gmsh
-
-#-------------------------
-class component_gmsh_post :
-#-------------------------
- def __init__(self,result_gmsh):
- #--------------------------
- commande="gmsh "+result_gmsh+";"
- os.system(commande)
- print "gmsh_post for YACS - END"
-
- def __call__(self, result_gmsh):
- #-------------------------------
- return 1
+++ /dev/null
-#===========================================
-# 20090416 jsn
-# cas test thermique : cube homogene isotrope
-# soumis a un -gradT homogene au contour qcq (donne par ses 3 composantes mg1,mg2,mg3)
-# les champs sont sortis au format gmsh
-# les moyennes des champs de gradient de temperature et de flux de chaleur sont calcules
-#
-# teste en STA9.4
-#============================================
-
-# nbre de classes (de 0% a 100% d'inclusions)
-nb_classes=11
-
-# cote cube
-L=%_RVE_SIZE%
-
-# conductivite isotrope
-lambd=1.
-# -gradT homogene au contour
-mg1=1.0
-mg2=0.0
-mg3=0.0
-# nbre de classes (de 0% a 100% d'inclusions)
-nb_classes=11
-# lecture schema = lambda pour chaque classe
-lambda_t = [0.0]*nb_classes
-print("'\n")
-for i in range(0,nb_classes):
- alpha=float((i)/(nb_classes-1))
- lambda_t[i]=(1-alpha)*%_CONDUCTIVITE_M%+(alpha)*%_CONDUCTIVITE_I%
-
-DEBUT(PAR_LOT='OUI',); # 'OUI' evite l'alarme
-
-# lecture maillage format gmsh
-PRE_GMSH();
-mail=LIRE_MAILLAGE();
-
-# definition des gpes de mailles (surfaces de type 'xp' (x=L) ,'xm' (x=0),... et volume 'vol' regroupant toutes les mailles)
-GMsur_gmsh_noms = ['GM1001', 'GM1002', 'GM1003', 'GM1004', 'GM1005', 'GM1006',]
-GMsur_aster_noms = ['xm', 'xp', 'ym', 'yp', 'zm', 'zp',]
-GMsur_aster_list = [ _F(NOM=GMsur_aster_noms[i],GROUP_MA=GMsur_gmsh_noms[i],) for i in range(0,len(GMsur_gmsh_noms)) ]
-
-GMvol_gmsh_noms = ['GM10000', 'GM10100', 'GM10200', 'GM10300', 'GM10400', 'GM10500', 'GM10600', 'GM10700', 'GM10800', 'GM10900', 'GM11000',]
-GMvol_aster_nom = 'vol'
-GMvol_aster_list = [ _F(NOM=GMvol_aster_nom,UNION=GMvol_gmsh_noms) ]
-
-mail=DEFI_GROUP(reuse =mail,
- MAILLAGE=mail,
- CREA_GROUP_MA=GMsur_aster_list+GMvol_aster_list,);
-
-# definition d'1 groupe de noeuds contenant le nd en (0,0,0)->nd0 afin de fixer la temperature en un point (supprimer les "mvts de corps rigide") ds le cas de CL en flux homogene au contour
-# definition par intersection des faces du cube
-mail=DEFI_GROUP(reuse =mail,
- MAILLAGE=mail,
- CREA_GROUP_NO=(_F(GROUP_MA=('xm','xp','ym','yp','zm','zp',),
- CRIT_NOEUD='TOUS',),
- ),);
-mail=DEFI_GROUP(reuse =mail,
- MAILLAGE=mail,
- CREA_GROUP_NO=(_F(NOM='nd0',
- INTERSEC=('xm','ym','zm',),),
- ),);
-
-# on s'assure que sur la frontiere du cube la normale soit bien sortante
-mail = MODI_MAILLAGE(reuse =mail,
- MAILLAGE=mail,
- ORIE_PEAU_3D=_F(GROUP_MA=('xm','xp','ym','yp','zm','zp',),),
- );
-
-# modele : thermique 3D (affecte a toutes les mailles)
-modl=AFFE_MODELE(MAILLAGE=mail,
- AFFE=_F(TOUT='OUI',
- PHENOMENE='THERMIQUE',
- MODELISATION='3D',),);
-
-# materiau unique (cube homogene)
-mat=DEFI_MATERIAU(THER=_F(LAMBDA=lambd,
- RHO_CP=1,),);
-
-# definition materiaux mat[0] (0% incl) a mat[nb_classes-1] (100% incl)
-mat_t=[0.]*nb_classes
-for i in range(0,nb_classes):
- mat_t[i]=DEFI_MATERIAU(THER=_F(LAMBDA=lambda_t[i],
- RHO_CP=1,),);
-
-# affectation de chaque materiau au groupe de mailles correspondant, si celui ci existe
-affe_mater_list = [ _F(GROUP_MA=GMvol_gmsh_noms[i], MATER=mat_t[i],) for i in range(0,nb_classes) ]
-
-chmat=AFFE_MATERIAU(MAILLAGE=mail,
- AFFE=affe_mater_list,);
-
-#chmat=AFFE_MATERIAU(MAILLAGE=mail,
-# AFFE=_F(GROUP_MA='vol', MATER=mat,),);
-
-# preparation CL en -gradT homogene au contour (composantes mg1,mg2,mg3)
-# T = - (mg1*x + mg2*y + mg3*z)
-# ne depend que de 2 variables d'espace sur chaque face du cube, et de plus lineairement => utilisation de nappes
-l_temp=[]
-nap=[None]*6
-mg=[mg1,mg2,mg3]
-var = ['X','Y','Z']
-l_gma=[['zm','zp'],['xm','xp'],['ym','yp']] # groupes de mailles identifiant les 6 faces du cube
-for i in range(0,3):
- par1 = var[(1+i)%3] # 1er parametre nappe
- par2 = var[(0+i)%3] # 2e parametre nappe
- val00 = 0 # valeur prise lorsque par1=0, par2=0
- val01 = -(mg[(0+i)%3]*L) # valeur prise lorsque par1=0, par2=L
- val10 = -(mg[(1+i)%3]*L) # valeur prise lorsque par1=L, par2=0
- val11 = -(mg[(0+i)%3]*L+mg[(1+i)%3]*L) # valeur prise lorsque par1=L, par2=L
- for j in range(0,2):
- nap[i*2+j] = DEFI_NAPPE ( NOM_PARA = par1, PROL_DROITE = 'LINEAIRE', PROL_GAUCHE = 'LINEAIRE',
- PARA = (0, L),
- NOM_PARA_FONC = par2,
- DEFI_FONCTION = (
- _F( PROL_DROITE = 'LINEAIRE', PROL_GAUCHE = 'LINEAIRE',
- VALE =(0,val00 , L,val01),
- ),
- _F( PROL_DROITE = 'LINEAIRE', PROL_GAUCHE = 'LINEAIRE',
- VALE =(0,val10 , L,val11),
- ),
- )
- )
- l_temp.append( _F(GROUP_MA=(l_gma[i][j],), TEMP=nap[i*2+j],) )
- # passage de la face - a la face + :
- val00 += -(mg[(2+i)%3]*L)
- val01 += -(mg[(2+i)%3]*L)
- val10 += -(mg[(2+i)%3]*L)
- val11 += -(mg[(2+i)%3]*L)
-
-# affectation CL en -gradT homogene au contour
-climites=AFFE_CHAR_THER_F(MODELE=modl,
- TEMP_IMPO= l_temp )
-
-# resolution F=K.u
-resther = THER_LINEAIRE(MODELE=modl,
- CHAM_MATER=chmat, # caracteristiques materiau
- EXCIT=(_F(CHARGE=climites),), # chargement (ici seulement des cl)
- );
-
-# calcul flux chaleur aux points de gauss
-resther=CALC_ELEM(reuse =resther,
- RESULTAT=resther,
- OPTION='FLUX_ELGA_TEMP',);
-
-###############################
-# DEBUT calcul champ (- gradient de temperature) en passant par un materiau homogene fictif de conductivite 1 (suggestion de JM Proix, voir fiche rex aster 13175)
-matfict=DEFI_MATERIAU(THER=_F(LAMBDA=1,
- RHO_CP=1,),);
-cmatfict=AFFE_MATERIAU(MAILLAGE=mail,
- AFFE=_F(TOUT='OUI', MATER=matfict,),);
-resmgrad=CALC_ELEM(RESULTAT=resther,
- OPTION='FLUX_ELGA_TEMP',
- CHAM_MATER=cmatfict);
-# FIN calcul champ (- gradient de temperature) en passant par un materiau homogene fictif de conductivite 1 (suggestion de JM Proix, voir fiche rex aster 13175)
-# dans m_gradm le champ de flux de chaleur est en fait egal au champ de (- grad T)
-###############################
-
-# impression resultats format gmsh : champs de temperature, flux, gradient de temperature
-IMPR_RESU( MODELE=modl,
- FORMAT='GMSH',
-# FORMAT='MED',
- UNITE=37,
- RESU=(_F(RESULTAT = resther,),
- _F(RESULTAT = resmgrad,
- NOM_CHAM='FLUX_ELGA_TEMP',
- NOM_CMP=('FLUX','FLUY','FLUZ',),)
- ));
-
-IMPR_RESU(
- FORMAT='MED',
- UNITE=38,
- RESU=(_F(RESULTAT = resther,),
- _F(RESULTAT = resmgrad,
- NOM_CHAM='FLUX_ELGA_TEMP',
- NOM_CMP=('FLUX','FLUY','FLUZ',),)
- ));
-
-# calcul integrale et moyenne du flux de chaleur sur l'ensemble du cube
-fluxmtot = POST_ELEM(INTEGRALE=_F(GROUP_MA='vol',
- NOM_CHAM='FLUX_ELGA_TEMP',
- NOM_CMP=('FLUX','FLUY','FLUZ',),),
- MODELE=modl,
- RESULTAT=resther,);
-# idem moyenne du gradient de temperature
-m_gradm = POST_ELEM(INTEGRALE=_F(GROUP_MA='vol',
- NOM_CHAM='FLUX_ELGA_TEMP',
- NOM_CMP=('FLUX','FLUY','FLUZ',),),
- MODELE=modl,
- RESULTAT=resmgrad,);
-
-# impression des flux moy
-IMPR_TABLE(TABLE=fluxmtot,
- NOM_PARA=('VOL','MOYE_FLUX','MOYE_FLUY','MOYE_FLUZ',),);
-# et moy du grad de temperature
-IMPR_TABLE(TABLE=m_gradm,
- NOM_PARA=('VOL','MOYE_FLUX','MOYE_FLUY','MOYE_FLUZ',),);
-
-# fin de l'execution
-FIN();
+++ /dev/null
-P serveur localhost
-P version %_ASTER_VERSION%
-P lang fr
-P debug debug
-P mode interactif
-P ncpus 1
-P mpi_nbcpu 1
-P mpi_nbnoeud 1
-P classe
-P depart
-P distrib
-P flashdir
-P exectool
-P nomjob %_NAME_STUDY%
-P origine ASTK 1.8.0
-A args
-A memjeveux 218.75
-P mem_aster 100.0
-A tpmax 3600
-P memjob 1792000
-P tpsjob 60
-P follow_output yes
-P nbmaxnook 5
-P cpresok RESNOOK
-P facmtps 1
-P corefilesize unlimited
-F comm %_PATH_STUDY%/s_polymers_st_1_aster.comm D 1
-F msh %_PATH_STUDY%/s_polymers_st_1_benhur_%_MESH_SIZE%.msh D 19
-F resu %_PATH_STUDY%/s_polymers_st_1_aster.resu R 8
-F mess %_PATH_STUDY%/s_polymers_st_1_aster.mess R 6
-F erre %_PATH_STUDY%/s_polymers_st_1_aster.erre R 9
-F msh %_PATH_STUDY%/s_polymers_st_1_aster.resu.msh R 37
-F med %_PATH_STUDY%/s_polymers_st_1_aster.resu.med R 38
-P consbtc oui
-P soumbtc oui
-P actions make_etude
+++ /dev/null
-# Choix des catalogues
-import os
-#rep_cata=os.path.dirname(os.path.abspath(__file__))
-rep_cata=os.getcwd()
-
-catalogues = (
-# (code, ssCode, catalogue, formatOut, formatIN)
- ('MAP','s_polymers_st_1_V1',os.path.join(rep_cata,'s_polymers_st_1_V1.py'),'s_polymers_st_1','MAP'),
- ('MAP','s_scc_st_2_V1',os.path.join(rep_cata,'s_scc_st_2_V1.py'),'s_scc_st_2','MAP'),
- ('MAP','s_rpv2_V0',os.path.join(rep_cata,'s_rpv2_V0.py'),'s_rpv2','MAP'),
- ('MAP','s_DIC_V1',os.path.join(rep_cata,'s_DIC_V1.py'),'s_DIC','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
- Ce module sert pour charger les paramètres de configuration d'EFICAS\r
-"""\r
-# Modules Python\r
-import os\r
-import sys\r
-import configuration\r
-\r
-# Modules Eficas\r
-from Editeur import utils\r
-\r
-class CONFIG(configuration.CONFIG_BASE):\r
-\r
- #-----------------------------------\r
- def __init__(self,appli,repIni):\r
- #-----------------------------------\r
- self.ssCode=appli.ssCode\r
- configuration.CONFIG_BASE.__init__(self,appli,repIni,'.Eficas_MAP')\r
- self.INSTALLDIR =os.path.dirname(__file__)\r
-\r
- self.labels_user=['exec_acrobat', 'catalogues','savedir','path_doc','map_path']\r
- self.labels_user=self.labels_user+['PATH_PYGMEE','PATH_BENHUR','PATH_ASTER','PATH_MODULE']\r
- self.labels_user=self.labels_user+['PATH_STUDY','NAME_SCHEME','PATH_FDVGRID','PATH_MAP','OpenTURNS_path','PATH_GMSH']\r
-\r
- self.labels_eficas=["map_path","rep_user","INSTALLDIR","path_doc","exec_acrobat"]\r
- self.labels_eficas=self.labels_eficas+["rep_cata","initialdir","savedir","catalogues",'PATH_PYGMEE']\r
- self.labels_eficas=self.labels_eficas+['PATH_BENHUR','PATH_ASTER','PATH_MODULE','PATH_STUDY']\r
- self.labels_eficas=self.labels_eficas+['NAME_SCHEME','PATH_FDVGRID','PATH_MAP','OpenTURNS_path','PATH_GMSH']\r
-\r
- self.cataFile="catalogues_MAP.ini"\r
- self.setValeurs()\r
- \r
- def make_ssCode(self,ssCode):\r
- if ssCode == None : return\r
- try :\r
- name='prefs_'+ssCode\r
- prefs_ssCode=__import__(name)\r
- prefs_ssCode.ajout(self)\r
- except :\r
- pass\r
- \r
-\r
-def make_config(appli,rep):\r
- return CONFIG(appli,rep)\r
-\r
-\r
-\r
+++ /dev/null
-code='MAP'
-import sys, os
-if os.path.dirname(os.path.abspath(__file__)) not in sys.path :
- sys.path.insert(0,os.path.dirname(os.path.abspath(__file__)))
+++ /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
-print repIni\r
-\r
-# INSTALLDIR sert à localiser l'installation d'Eficas\r
-INSTALLDIR=os.path.join(repIni,'..')\r
-PATH_MAP="/local/noyret/MAP/"\r
-#PATH_MAP="/local00/bin/MAP/"\r
-PATH_PYGMEE=PATH_MAP+"/components/pygmee_v2"\r
-PATH_BENHUR=PATH_MAP+"/components/benhur"\r
-PATH_FDVGRID=PATH_MAP+"components/fdvgrid/ther2d/bin"\r
-PATH_STUDY=PATH_MAP+"/studies/demonstrateur_s_polymers_st_1"\r
-PATH_MODULE=PATH_MAP+"/module"\r
-#PATH_ASTER="/local/noyret/bin/Aster10/bin"\r
-PATH_ASTER="/local00/aster"\r
-PATH_GMSH="/usr/bin"\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
-OpenTURNS_path='/opt/Openturns/Install_0_13_2/lib/python2.5/site-packages'\r
-sys.path[:0]=[INSTALLDIR, OpenTURNS_path]\r
-\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
-import sys,os
-sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'..'))
-
-from PyQt4.QtGui import *
-
-# Modules Eficas
-import prefs
-name='prefs_'+prefs.code
-__import__(name)
-
-
-from InterfaceQT4 import eficas_go
-from InterfaceQT4 import monChoixMap
-from Editeur import import_code
-from Editeur import session
-
-
-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()]
-
-eficas_go.lance_eficas(code=prefs.code,ssCode=MonChoixCata.nom)
+++ /dev/null
-#)# -*- coding: utf-8 -*-
-#
-## --------------------------------------------------
-## debut entete
-## --------------------------------------------------
-#
-from Accas import *
-import os
-import sys
-
-from prefs_MAP import PATH_STUDY
-
-try :
- fichUtilisateur=os.path.join(os.environ['HOME'],'.Eficas_MAP/prefs_MAP.py')
- f=open(fichUtilisateur)
- txt=f.read()
- f.close()
- exec txt in locals()
-except :
- pass
-
-
-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('DISPL',),A_CLASSER('RBM','DISPL'))
- )# Fin JDC_CATA
-#
-LIST_IMAGES=PROC(nom="LIST_IMAGES",op=None,
- FILE =SIMP(statut='r',typ='Fichier',fr='toto'),)
-# Ordre Catalogue LIST_IMAGES
-
-RBM= PROC(nom="RBM",op=None,
- CS=SIMP(statut = "o",fr="", typ='I',defaut="40"),
- CSJ=SIMP(statut = "f",fr="", typ='I',defaut="40"),
- GS=SIMP(statut = "o",fr="", typ='I',defaut="40"),
- GSJ=SIMP(statut = "f",fr="", typ='I',defaut="40"),
- VMAX=SIMP(statut = "o",fr="", typ='I',defaut="10"),
- VMAXJ=SIMP(statut = "f",fr="", typ='I',defaut="10"),
-)
-# Ordre Catalogue RBM
-
-DISPL= PROC(nom="DISPL",op=None,
- CS=SIMP(statut = "o",fr="", typ='I',defaut="20"),
- CSJ=SIMP(statut = "f",fr="", typ='I',defaut="20"),
- GS=SIMP(statut = "o",fr="", typ='I',defaut="20"),
- GSJ=SIMP(statut = "f",fr="", typ='I',defaut="20"),
- VMAX=SIMP(statut = "o",fr="", typ='I',defaut="5"),
- VMAXJ=SIMP(statut = "f",fr="", typ='I',defaut="5"),
- )
-# Ordre Catalogue DISPL
-
-ETUDE= PROC(nom="ETUDE",op=None,
- fr="determination du nom et du repertoire de l'etude)",
- study_name=SIMP(statut = "o",fr="", typ='TXM',defaut="s_DIC"),
- study_path=SIMP(statut = "o",fr="", typ='TXM',defaut=PATH_STUDY),
- )
-# Ordre Catalogue ETUDE
+++ /dev/null
-#)# -*- coding: utf-8 -*-
-#
-## --------------------------------------------------
-## debut entete
-## --------------------------------------------------
-#
-from Accas import *
-import os
-import sys
-
-from prefs_MAP import PATH_STUDY
-
-try :
- fichUtilisateur=os.path.join(os.environ['HOME'],'.Eficas_MAP/prefs_MAP.py')
- f=open(fichUtilisateur)
- txt=f.read()
- f.close()
- exec txt in locals()
-except :
- pass
-
-
-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('METHODE',),AU_MOINS_UN('MATERIAUX',),AU_MOINS_UN('DISCRETISATION',),),
- )# Fin JDC_CATA
-#
-
-ETUDE= PROC(nom="ETUDE",op=None,
- fr="determination du nom et du repertoire de l'etude)",
- study_name=SIMP(statut = "o",fr="", typ='TXM',defaut="s_polymers_st_1_for_YACS"),
- study_path=SIMP(statut = "o",fr="", typ='TXM',defaut=PATH_STUDY),
- )
-
-METHODE= PROC(nom="METHODE",op=None,
- fr='choix de la methode de calcul (maillage ou grille cartesienne)',
- CHOIX=SIMP(statut = "o",fr="elements finis sur maillage ou differences finies sur grilles",
- typ='TXM', defaut="FD+grid", into=("FEM+mesh","FD+grid")),
- LANCEMENT=SIMP(statut = "o",fr="lancement de Code_Aster ou de fdvgrid selon le choix",
- typ='TXM', defaut="oui", into=("oui","non")),
- )
-
-MATERIAUX= PROC(nom="MATERIAUX",op=None,
- fr='definition des proprietes du materiau : fuseau, taille du VER, proprietes des phases',
- rve_size=SIMP(statut = "o",fr="taille du VER", typ='R', defaut=50.),
- sieve_curve_in = SIMP ( statut = "o", fr="Fichier représentant le fuseau granulaire",typ = "Fichier", defaut=PATH_STUDY+"/inclusion_size_distribution.txt"),
- repulsion_distance=SIMP(statut = "o",fr="distance de replusions", typ='R', defaut=0.1),
- lambda_M=SIMP(statut = "o",fr="conductivite de la matrice", typ='R', defaut=1.0 , val_min =0.),
- lambda_I=SIMP(statut = "o",fr="conductivite des inclusions", typ='R', defaut=10.0, val_min =0.),
- inclusion_name=SIMP(statut = "f",fr="", typ='TXM',defaut=PATH_STUDY+"/pygmee_v2_test_1.inclusions",cache=1),
- rve_name=SIMP(statut = "f",fr="", typ='TXM',defaut=PATH_STUDY+"/pygmee_v2_test_1.rve",cache=1),
- sieve_curve_out=SIMP(statut = "f",fr="", typ='TXM',defaut=PATH_STUDY+"/pygmee_v2.sieve_out",cache=1),
-)
-
-DISCRETISATION= PROC(nom="DISCRETISATION",op=None,
- fr='definition du nombre d''elements sur le cote du VER',
- finesse=SIMP(statut = "o",fr="nombre d'elements sur le cote", typ='I', defaut=10 , into=(10,12,20,32,64,128),),
-)
+++ /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',),AU_MOINS_UN('TRAITEMENT',),A_CLASSER('TABLEAU','TRAITEMENT',)),
- )# 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", "strain_eq","strain_xx","strain_yy","strain_zz"),)
-)
-
+++ /dev/null
-# Necessaire pour compatibilite avec Aster