# nbre de classes (de 0% a 100% d'inclusions)
nb_classes=11
-# specifier le repertoire dans lequel on trouve "entree_schema.dat", "entree_cl.dat" et dans lequel on ecrit "sortie_resultats.dat"
-racine="%_PATH_MODULE%/s_poly_st_1/"
-# nb_classes lignes de float : les lambda donnes par le schema pour la fraction d'incl de chaque classe (de 0% incl a 100% incl tous les N% selon nb_classes)
-fic_entree_schema =racine+"s_poly_st_1_aster.mat"
# cote cube
L=%_RVE_SIZE%
lambda_t = [0.0]*nb_classes
print("'\n")
for i in range(0,nb_classes):
- alpha=float((i-1)/(nb_classes-1))
+ alpha=float((i)/(nb_classes-1))
lambda_t[i]=(1-alpha)*%_CONDUCTIVITE_M%+(alpha)*%_CONDUCTIVITE_I%
DEBUT(PAR_LOT='OUI',); # 'OUI' evite l'alarme
\r
# INSTALLDIR sert à localiser l'installation d'Eficas\r
INSTALLDIR=os.path.join(REPINI,'..')\r
-PATH_MAP="/local/noyret/MAP/"\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
commande+= "echo "+str(self.contrast)+" > "+"contrast.input"+";\n"
commande+= "./fdvgrid 3D 1.0 0.0 0.0 v t "+str(finesse)+" cross 1e-6 "+";\n"
commande+= "echo 'fin execution de FDVGRID';\n"
+ print "commande issue du generator :", commande
if (choix=="FEM+mesh") :
print "option Code_Aster"
f.close()
# launch of BENHUR on the previous file
commande=commande + "cd "+self.config.PATH_BENHUR+"/bin;\n"
- #commande=commande + "./benhur -i "+monFichierOutput+";\n"
+ commande=commande + "./benhur -i "+monFichierOutput+";\n"
commande=commande + "echo 'fin execution de BENHUR';\n"
commande+= "echo 'execution de CODE_ASTER';\n"
f.close()
# launch of CODE_ASTER on the study
- commande="cd "+self.config.PATH_STUDY+";"
+ commande=commande + "cd "+self.config.PATH_STUDY+";"
commande=commande + self.config.PATH_ASTER + "/as_run "+monFichierExportOutput +";\n"
commande=commande + "echo 'fin execution de CODE_ASTER';\n"
+
+ commande+= "echo 'execution de GMSH';\n"
+ commande+= "gmsh "+self.config.PATH_STUDY+"/s_polymers_st_1_aster.resu.msh;\n"
+ commande+= "echo 'fin execution de GMSH';\n"
print commande
- return commande
-
-
- print "METHODE Ok"
+ print "METHODE Ok - 20101105"
print "_____________________\n"
return commande