From: cvs2git Date: Mon, 5 Dec 2011 13:22:29 +0000 (+0000) Subject: This commit was manufactured by cvs2git to create tag 'V6_4_0rc2'. X-Git-Tag: V6_4_0rc2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=106b62f194869a02fcafdd5558da477c05a8b9a6;p=tools%2Feficas.git This commit was manufactured by cvs2git to create tag 'V6_4_0rc2'. Sprout from V6_main 2011-12-05 13:22:27 UTC Pascale Noyret '*** 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 --- diff --git a/Carmel3D/magther.comm b/Carmel3D/magther.comm deleted file mode 100644 index 8d282eee..00000000 --- a/Carmel3D/magther.comm +++ /dev/null @@ -1,15 +0,0 @@ - -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 diff --git a/MAP/CMakeLists.txt b/MAP/CMakeLists.txt deleted file mode 100644 index e7e4546f..00000000 --- a/MAP/CMakeLists.txt +++ /dev/null @@ -1,46 +0,0 @@ -# -*- 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: diff --git a/MAP/Doc/MAP_2010_MOD1_20100531.pdf b/MAP/Doc/MAP_2010_MOD1_20100531.pdf deleted file mode 100755 index f216b22b..00000000 Binary files a/MAP/Doc/MAP_2010_MOD1_20100531.pdf and /dev/null differ diff --git a/MAP/Templates/README.txt b/MAP/Templates/README.txt deleted file mode 100644 index 1f6a2661..00000000 --- a/MAP/Templates/README.txt +++ /dev/null @@ -1 +0,0 @@ -pour CVS diff --git a/MAP/Templates/s_DIC/s_DIC_YACS_nodes.py b/MAP/Templates/s_DIC/s_DIC_YACS_nodes.py deleted file mode 100644 index bd82b032..00000000 --- a/MAP/Templates/s_DIC/s_DIC_YACS_nodes.py +++ /dev/null @@ -1,60 +0,0 @@ -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" - - diff --git a/MAP/Templates/s_polymers_st_1/benhur_template.txt b/MAP/Templates/s_polymers_st_1/benhur_template.txt deleted file mode 100644 index a9cb8691..00000000 --- a/MAP/Templates/s_polymers_st_1/benhur_template.txt +++ /dev/null @@ -1,28 +0,0 @@ -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 - diff --git a/MAP/Templates/s_polymers_st_1/cata_s_polymers_st_1.xml b/MAP/Templates/s_polymers_st_1/cata_s_polymers_st_1.xml deleted file mode 100644 index 373d97bb..00000000 --- a/MAP/Templates/s_polymers_st_1/cata_s_polymers_st_1.xml +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pygmee_v2 fdvgrid - pygmee_v2 benhur - init pygmee_v2 - init fdvgrid - init benhur - init aster_s_polymers_st_1 - benhur aster_s_polymers_st_1 - env pygmee_v2 - env init - env fdvgrid - env benhur - env aster_s_polymers_st_1 - aster_s_polymers_st_1 gmsh_post - - pygmee_v2 result_inclusions - fdvgrid file_inclusions - - - pygmee_v2 result_inclusions - benhur file_inclusions - - - init phase_number - pygmee_v2 phase_number - - - init sieve_curve_in - pygmee_v2 sieve_curve_in - - - init sieve_curve_out - pygmee_v2 sieve_curve_out - - - init repulsion_distance - pygmee_v2 repulsion_distance - - - init file_result_inclusions - pygmee_v2 file_result_inclusions - - - init file_result_rve - pygmee_v2 file_result_rve - - - init rve_size - pygmee_v2 rve_size - - - init rve_size - fdvgrid rve_size - - - init rve_size - benhur rve_size - - - init rve_size - aster_s_polymers_st_1 rve_size - - - init finesse - fdvgrid finesse - - - init finesse - benhur finesse - - - init finesse - aster_s_polymers_st_1 finesse - - - init lambda_I - fdvgrid lambda_I - - - init lambda_I - aster_s_polymers_st_1 lambda_I - - - init lambda_M - fdvgrid lambda_M - - - init lambda_M - aster_s_polymers_st_1 lambda_M - - - benhur result_mesh - aster_s_polymers_st_1 mesh - - - env study_name - pygmee_v2 study_name - - - env study_name - init study_name - - - env study_name - fdvgrid study_name - - - env study_name - benhur study_name - - - env study_name - aster_s_polymers_st_1 study_name - - - env study_path - init study_path - - - env study_path - pygmee_v2 study_path - - - env study_path - fdvgrid study_path - - - env study_path - benhur study_path - - - env study_path - aster_s_polymers_st_1 study_path - - - env aster_path - aster_s_polymers_st_1 aster_path - - - aster_s_polymers_st_1 result_gmsh - gmsh_post result_gmsh - - - benhurfile_inclusions - - - - - - - - - - - diff --git a/MAP/Templates/s_polymers_st_1/s_polymers_st_1_YACS_nodes.py b/MAP/Templates/s_polymers_st_1/s_polymers_st_1_YACS_nodes.py deleted file mode 100644 index e5973e3f..00000000 --- a/MAP/Templates/s_polymers_st_1/s_polymers_st_1_YACS_nodes.py +++ /dev/null @@ -1,193 +0,0 @@ -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 diff --git a/MAP/Templates/s_polymers_st_1/s_polymers_st_1_aster_template.comm b/MAP/Templates/s_polymers_st_1/s_polymers_st_1_aster_template.comm deleted file mode 100644 index 948a787e..00000000 --- a/MAP/Templates/s_polymers_st_1/s_polymers_st_1_aster_template.comm +++ /dev/null @@ -1,199 +0,0 @@ -#=========================================== -# 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(); diff --git a/MAP/Templates/s_polymers_st_1/s_polymers_st_1_aster_template.export b/MAP/Templates/s_polymers_st_1/s_polymers_st_1_aster_template.export deleted file mode 100644 index 44270887..00000000 --- a/MAP/Templates/s_polymers_st_1/s_polymers_st_1_aster_template.export +++ /dev/null @@ -1,36 +0,0 @@ -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 diff --git a/MAP/catalogues_MAP.ini b/MAP/catalogues_MAP.ini deleted file mode 100644 index 74e21f9b..00000000 --- a/MAP/catalogues_MAP.ini +++ /dev/null @@ -1,13 +0,0 @@ -# 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'), -) - diff --git a/MAP/configuration_MAP.py b/MAP/configuration_MAP.py deleted file mode 100644 index a49dd11a..00000000 --- a/MAP/configuration_MAP.py +++ /dev/null @@ -1,67 +0,0 @@ -# -*- 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 pour charger les paramètres de configuration d'EFICAS -""" -# Modules Python -import os -import sys -import configuration - -# Modules Eficas -from Editeur import utils - -class CONFIG(configuration.CONFIG_BASE): - - #----------------------------------- - def __init__(self,appli,repIni): - #----------------------------------- - self.ssCode=appli.ssCode - configuration.CONFIG_BASE.__init__(self,appli,repIni,'.Eficas_MAP') - self.INSTALLDIR =os.path.dirname(__file__) - - self.labels_user=['exec_acrobat', 'catalogues','savedir','path_doc','map_path'] - self.labels_user=self.labels_user+['PATH_PYGMEE','PATH_BENHUR','PATH_ASTER','PATH_MODULE'] - self.labels_user=self.labels_user+['PATH_STUDY','NAME_SCHEME','PATH_FDVGRID','PATH_MAP','OpenTURNS_path','PATH_GMSH'] - - self.labels_eficas=["map_path","rep_user","INSTALLDIR","path_doc","exec_acrobat"] - self.labels_eficas=self.labels_eficas+["rep_cata","initialdir","savedir","catalogues",'PATH_PYGMEE'] - self.labels_eficas=self.labels_eficas+['PATH_BENHUR','PATH_ASTER','PATH_MODULE','PATH_STUDY'] - self.labels_eficas=self.labels_eficas+['NAME_SCHEME','PATH_FDVGRID','PATH_MAP','OpenTURNS_path','PATH_GMSH'] - - self.cataFile="catalogues_MAP.ini" - self.setValeurs() - - def make_ssCode(self,ssCode): - if ssCode == None : return - try : - name='prefs_'+ssCode - prefs_ssCode=__import__(name) - prefs_ssCode.ajout(self) - except : - pass - - -def make_config(appli,rep): - return CONFIG(appli,rep) - - - diff --git a/MAP/prefs.py b/MAP/prefs.py deleted file mode 100644 index 378ad7d4..00000000 --- a/MAP/prefs.py +++ /dev/null @@ -1,4 +0,0 @@ -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__))) diff --git a/MAP/prefs_MAP.py b/MAP/prefs_MAP.py deleted file mode 100644 index e2189ca5..00000000 --- a/MAP/prefs_MAP.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- 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. -# -# -# ====================================================================== - -import os, sys -# Les variables pouvant positionnees sont : -print "import des prefs de MAP" - -# repIni sert à localiser le fichier -# initialdir sert comme directory initial des QFileDialog -# positionnee a repin au debut mise a jour dans configuration -repIni=os.path.dirname(os.path.abspath(__file__)) -initialdir=repIni -print repIni - -# INSTALLDIR sert à localiser l'installation d'Eficas -INSTALLDIR=os.path.join(repIni,'..') -PATH_MAP="/local/noyret/MAP/" -#PATH_MAP="/local00/bin/MAP/" -PATH_PYGMEE=PATH_MAP+"/components/pygmee_v2" -PATH_BENHUR=PATH_MAP+"/components/benhur" -PATH_FDVGRID=PATH_MAP+"components/fdvgrid/ther2d/bin" -PATH_STUDY=PATH_MAP+"/studies/demonstrateur_s_polymers_st_1" -PATH_MODULE=PATH_MAP+"/module" -#PATH_ASTER="/local/noyret/bin/Aster10/bin" -PATH_ASTER="/local00/aster" -PATH_GMSH="/usr/bin" - - -# Codage des strings qui accepte les accents (en remplacement de 'ascii') -# lang indique la langue utilisée pour les chaines d'aide : fr ou ang -lang='fr' -encoding='iso-8859-1' - -# Acces a la documentation -rep_cata = INSTALLDIR -path_doc = os.path.join(repIni,'Doc') -exec_acrobat = "/usr/bin/xpdf" -savedir = os.environ['HOME'] - -OpenTURNS_path='/opt/Openturns/Install_0_13_2/lib/python2.5/site-packages' -sys.path[:0]=[INSTALLDIR, OpenTURNS_path] - diff --git a/MAP/properties.py b/MAP/properties.py deleted file mode 100644 index ce5f1a2e..00000000 --- a/MAP/properties.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- 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" diff --git a/MAP/qtEficas_map.py b/MAP/qtEficas_map.py deleted file mode 100755 index 0ee90c52..00000000 --- a/MAP/qtEficas_map.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/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) diff --git a/MAP/s_DIC_V1.py b/MAP/s_DIC_V1.py deleted file mode 100644 index 8b4739fd..00000000 --- a/MAP/s_DIC_V1.py +++ /dev/null @@ -1,76 +0,0 @@ -#)# -*- 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 diff --git a/MAP/s_polymers_st_1_V1.py b/MAP/s_polymers_st_1_V1.py deleted file mode 100644 index 86975260..00000000 --- a/MAP/s_polymers_st_1_V1.py +++ /dev/null @@ -1,77 +0,0 @@ -#)# -*- 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),), -) diff --git a/MAP/s_scc_st_2_V1.py b/MAP/s_scc_st_2_V1.py deleted file mode 100644 index 97ad6ae3..00000000 --- a/MAP/s_scc_st_2_V1.py +++ /dev/null @@ -1,31 +0,0 @@ -## -*- 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"),) -) - diff --git a/MAP/style.py b/MAP/style.py deleted file mode 100644 index 7da9d534..00000000 --- a/MAP/style.py +++ /dev/null @@ -1 +0,0 @@ -# Necessaire pour compatibilite avec Aster