From d1a60a4998984415899eca3628d2457e4108fc23 Mon Sep 17 00:00:00 2001 From: Charles Toulemonde Date: Mon, 10 Jan 2011 16:43:11 +0000 Subject: [PATCH] debug of aster option befoire Manchester meeting --- .../s_polymers_st_1/benhur_template.txt | 2 +- .../s_polymers_st_1/cata_s_polymers_st_1.xml | 62 +++++++++---------- .../s_polymers_st_1_YACS_nodes.py | 20 ++---- 3 files changed, 38 insertions(+), 46 deletions(-) diff --git a/MAP/Templates/s_polymers_st_1/benhur_template.txt b/MAP/Templates/s_polymers_st_1/benhur_template.txt index a9cb8691..994efe5c 100644 --- a/MAP/Templates/s_polymers_st_1/benhur_template.txt +++ b/MAP/Templates/s_polymers_st_1/benhur_template.txt @@ -16,7 +16,7 @@ I - Morphologie (MESSALA) II - Maillage (BENHUR) 1) fichier entree décrivant le maillage support (entree) -%_PATH_BENHUR%/bin/regular_mesh_3D_%_MESH_SIZE%.msh +%_PATH_BENHUR%/lib/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) 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 index 2e1bbc4f..2ce57487 100644 --- 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 @@ -79,7 +79,7 @@ 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) +lambda_x=component_fdvgrid(lambda_I, lambda_M, rve_size, file_inclusions, finesse, study_path) ]]> @@ -156,24 +156,24 @@ component_gmsh_post(result_gmsh) pygmee_v2 benhur pygmee_v2 fdvgrid - init aster_s_polymers_st_1 init benhur - init fdvgrid + init aster_s_polymers_st_1 init pygmee_v2 + init fdvgrid benhur aster_s_polymers_st_1 - env aster_s_polymers_st_1 env benhur - env fdvgrid + env aster_s_polymers_st_1 env pygmee_v2 + env fdvgrid env init aster_s_polymers_st_1 gmsh_post pygmee_v2 result_inclusions - fdvgrid file_inclusions + benhur file_inclusions pygmee_v2 result_inclusions - benhur file_inclusions + fdvgrid file_inclusions init phase_number @@ -209,39 +209,39 @@ component_gmsh_post(result_gmsh) init rve_size - fdvgrid rve_size + benhur rve_size init rve_size - benhur rve_size + fdvgrid rve_size init finesse - aster_s_polymers_st_1 finesse + fdvgrid finesse init finesse - benhur finesse + aster_s_polymers_st_1 finesse init finesse - fdvgrid finesse + benhur finesse init lambda_I - aster_s_polymers_st_1 lambda_I + fdvgrid lambda_I init lambda_I - fdvgrid lambda_I + aster_s_polymers_st_1 lambda_I init lambda_M - fdvgrid lambda_M + aster_s_polymers_st_1 lambda_M init lambda_M - aster_s_polymers_st_1 lambda_M + fdvgrid lambda_M benhur result_mesh @@ -249,19 +249,19 @@ component_gmsh_post(result_gmsh) env study_name - pygmee_v2 study_name + init study_name env study_name - fdvgrid study_name + pygmee_v2 study_name env study_name - benhur study_name + fdvgrid study_name env study_name - init study_name + benhur study_name env study_name @@ -273,7 +273,7 @@ component_gmsh_post(result_gmsh) env study_path - pygmee_v2 study_path + aster_s_polymers_st_1 study_path env study_path @@ -281,11 +281,11 @@ component_gmsh_post(result_gmsh) env study_path - benhur study_path + pygmee_v2 study_path env study_path - aster_s_polymers_st_1 study_path + benhur study_path env aster_path @@ -299,12 +299,12 @@ component_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 index aa3dafac..e5973e3f 100644 --- 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 @@ -74,7 +74,7 @@ class component_pygmee_v2: class component_fdvgrid: #----------------------- - def __init__(self,lambda_I, lambda_M, rve_size, file_inclusions, finesse): + def __init__(self,lambda_I, lambda_M, rve_size, file_inclusions, finesse, path_study): print "fdvgrid for YACS - BEGIN" contrast=lambda_I/lambda_M @@ -82,33 +82,25 @@ class component_fdvgrid: fdvgrid_path=os.path.join(os.getenv('MAP_DIRECTORY'),'components/fdvgrid/bin') - lambda_output='/local00/bin/MAP/studies/demonstrateur_s_polymers_st_1/lambda_x.output' + lambda_output=path_study+'/lambda_x.output' string='[fdvgrid]\n' - file_inclusions='/local00/bin/MAP/studies/demonstrateur_s_polymers_st_1/pygmee_v2_test_1.inclusions' + 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' - print "***********************" - print "MAP_parameters input" - print string - print "***********************" + string+=' lambda_output="'+lambda_output+'"\n' - fdvgrid_input='/local00/bin/MAP/studies/demonstrateur_s_polymers_st_1/fdvgrid.input' + fdvgrid_input=path_study+'/fdvgrid.input' fd = open(fdvgrid_input, 'w') fd.write(string) fd.close() - - fdvgrid_path="/local00/bin/MAP/components/fdvgrid/bin" - print "***********************" commande= "cd "+fdvgrid_path+";\n" commande+= "./fdvgrid "+fdvgrid_input - print "commande=", commande os.system(commande) @@ -160,7 +152,7 @@ class component_aster_s_polymers_st_1 (component_template): path_study, aster_path): #------------------------------------------------------------------------------ print "aster_s_polymers_st_1 for YACS - BEGIN" - aster_version="STA10.1" + aster_version="STA10" template_path=os.path.join(os.getenv('EFICAS_ROOT'), 'MAP/Templates/s_polymers_st_1/') # Gestion du .comm -- 2.39.2