#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)
]]></code></script>
<inport name="file_inclusions" type="string"/>
<inport name="rve_size" type="double"/>
</inline>
<control> <fromnode>pygmee_v2</fromnode> <tonode>benhur</tonode> </control>
<control> <fromnode>pygmee_v2</fromnode> <tonode>fdvgrid</tonode> </control>
- <control> <fromnode>init</fromnode> <tonode>aster_s_polymers_st_1</tonode> </control>
<control> <fromnode>init</fromnode> <tonode>benhur</tonode> </control>
- <control> <fromnode>init</fromnode> <tonode>fdvgrid</tonode> </control>
+ <control> <fromnode>init</fromnode> <tonode>aster_s_polymers_st_1</tonode> </control>
<control> <fromnode>init</fromnode> <tonode>pygmee_v2</tonode> </control>
+ <control> <fromnode>init</fromnode> <tonode>fdvgrid</tonode> </control>
<control> <fromnode>benhur</fromnode> <tonode>aster_s_polymers_st_1</tonode> </control>
- <control> <fromnode>env</fromnode> <tonode>aster_s_polymers_st_1</tonode> </control>
<control> <fromnode>env</fromnode> <tonode>benhur</tonode> </control>
- <control> <fromnode>env</fromnode> <tonode>fdvgrid</tonode> </control>
+ <control> <fromnode>env</fromnode> <tonode>aster_s_polymers_st_1</tonode> </control>
<control> <fromnode>env</fromnode> <tonode>pygmee_v2</tonode> </control>
+ <control> <fromnode>env</fromnode> <tonode>fdvgrid</tonode> </control>
<control> <fromnode>env</fromnode> <tonode>init</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>
+ <tonode>benhur</tonode> <toport>file_inclusions</toport>
</datalink>
<datalink control="false">
<fromnode>pygmee_v2</fromnode> <fromport>result_inclusions</fromport>
- <tonode>benhur</tonode> <toport>file_inclusions</toport>
+ <tonode>fdvgrid</tonode> <toport>file_inclusions</toport>
</datalink>
<datalink control="false">
<fromnode>init</fromnode> <fromport>phase_number</fromport>
</datalink>
<datalink control="false">
<fromnode>init</fromnode> <fromport>rve_size</fromport>
- <tonode>fdvgrid</tonode> <toport>rve_size</toport>
+ <tonode>benhur</tonode> <toport>rve_size</toport>
</datalink>
<datalink control="false">
<fromnode>init</fromnode> <fromport>rve_size</fromport>
- <tonode>benhur</tonode> <toport>rve_size</toport>
+ <tonode>fdvgrid</tonode> <toport>rve_size</toport>
</datalink>
<datalink control="false">
<fromnode>init</fromnode> <fromport>finesse</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>finesse</toport>
+ <tonode>fdvgrid</tonode> <toport>finesse</toport>
</datalink>
<datalink control="false">
<fromnode>init</fromnode> <fromport>finesse</fromport>
- <tonode>benhur</tonode> <toport>finesse</toport>
+ <tonode>aster_s_polymers_st_1</tonode> <toport>finesse</toport>
</datalink>
<datalink control="false">
<fromnode>init</fromnode> <fromport>finesse</fromport>
- <tonode>fdvgrid</tonode> <toport>finesse</toport>
+ <tonode>benhur</tonode> <toport>finesse</toport>
</datalink>
<datalink control="false">
<fromnode>init</fromnode> <fromport>lambda_I</fromport>
- <tonode>aster_s_polymers_st_1</tonode> <toport>lambda_I</toport>
+ <tonode>fdvgrid</tonode> <toport>lambda_I</toport>
</datalink>
<datalink control="false">
<fromnode>init</fromnode> <fromport>lambda_I</fromport>
- <tonode>fdvgrid</tonode> <toport>lambda_I</toport>
+ <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>
+ <tonode>aster_s_polymers_st_1</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>
+ <tonode>fdvgrid</tonode> <toport>lambda_M</toport>
</datalink>
<datalink control="false">
<fromnode>benhur</fromnode> <fromport>result_mesh</fromport>
</datalink>
<datalink control="false">
<fromnode>env</fromnode> <fromport>study_name</fromport>
- <tonode>pygmee_v2</tonode> <toport>study_name</toport>
+ <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>
+ <tonode>pygmee_v2</tonode> <toport>study_name</toport>
</datalink>
<datalink control="false">
<fromnode>env</fromnode> <fromport>study_name</fromport>
- <tonode>benhur</tonode> <toport>study_name</toport>
+ <tonode>fdvgrid</tonode> <toport>study_name</toport>
</datalink>
<datalink control="false">
<fromnode>env</fromnode> <fromport>study_name</fromport>
- <tonode>init</tonode> <toport>study_name</toport>
+ <tonode>benhur</tonode> <toport>study_name</toport>
</datalink>
<datalink control="false">
<fromnode>env</fromnode> <fromport>study_name</fromport>
</datalink>
<datalink control="false">
<fromnode>env</fromnode> <fromport>study_path</fromport>
- <tonode>pygmee_v2</tonode> <toport>study_path</toport>
+ <tonode>aster_s_polymers_st_1</tonode> <toport>study_path</toport>
</datalink>
<datalink control="false">
<fromnode>env</fromnode> <fromport>study_path</fromport>
</datalink>
<datalink control="false">
<fromnode>env</fromnode> <fromport>study_path</fromport>
- <tonode>benhur</tonode> <toport>study_path</toport>
+ <tonode>pygmee_v2</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>
+ <tonode>benhur</tonode> <toport>study_path</toport>
</datalink>
<datalink control="false">
<fromnode>env</fromnode> <fromport>aster_path</fromport>
<tonode>benhur</tonode><toport>file_inclusions</toport>
<value><string></string></value>
</parameter>
- <presentation name="aster_s_polymers_st_1" x="1132" y="271.75" width="158" height="252" expanded="1" expx="1132" expy="271.75" expWidth="158" expHeight="252" 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="fdvgrid" x="869" y="80.25" width="158" height="225" expanded="1" expx="0" expy="0" expWidth="158" expHeight="225" 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="env" x="9" y="301.25" width="158" height="117" expanded="1" expx="0" expy="0" expWidth="158" expHeight="117" shownState="0"/>
- <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="__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"/>
+ <presentation name="benhur" x="869" y="510.25" width="227.5" height="226"/>
+ <presentation name="aster_s_polymers_st_1" x="1132" y="271.75" width="227.5" height="313"/>
+ <presentation name="pygmee_v2" x="583" y="470.25" width="249.5" height="342"/>
+ <presentation name="gmsh_post" x="1397.25" y="373.25" width="223" height="110"/>
+ <presentation name="fdvgrid" x="869" y="80.25" width="227.5" height="284"/>
+ <presentation name="init" x="273" y="199.75" width="273.5" height="371"/>
+ <presentation name="env" x="9" y="301.25" width="227.5" height="168"/>
+ <presentation name="__ROOT__" x="0" y="0" width="1559.25" height="753.25"/>
</proc>
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
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)
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