Exemple de couplage HOMARD-Salome
Copyright EDF 1996, 2010, 2018
"""
-__revision__ = "V3.1"
+__revision__ = "V3.2"
#
import os
import sys
iter_5_1.SetMeshName('COEUR_2D_01')
iter_5_1.SetMeshFile(os.path.join(DIRCASE, "maill.01.med"))
iter_5_1.AssociateHypo('hypo_5')
-error = iter_5_1.Compute(1, 2)
+erreur = iter_5_1.Compute(1, 2)
#
# Iteration "iter_5_2"
# ====================
iter_5_2.SetMeshName('COEUR_2D_02')
iter_5_2.SetMeshFile(os.path.join(DIRCASE, "maill.02.med"))
iter_5_2.AssociateHypo('hypo_5_bis')
-error = iter_5_2.Compute(1, 2)
+erreur = iter_5_2.Compute(1, 2)
#
#============================== Fin des commandes ==============================
#
Exemple de couplage HOMARD-Salome
Copyright EDF 1996, 2011, 2018
"""
-__revision__ = "V4.3"
+__revision__ = "V4.4"
#
import os
import sys
#
# Frontières
# ==========
-boun_6_1 = homard.CreateBoundaryDi('intersection', 'PIQUAGE', os.path.join(DATA_TUTORIAL, "tutorial_6.fr.med"))
+boun_6_1 = homard.CreateBoundaryDi('intersection', 'COURBES', os.path.join(DATA_TUTORIAL, "tutorial_6.fr.med"))
#
boun_6_2 = homard.CreateBoundaryCylinder('cyl_1_ext', 0.0, 25., -25., 25., 50., 75., 100.)
#
# Creation of the hypothesis hypo_6
l_hypothese = homard.CreateHypothesis('hypo_6')
l_hypothese.SetUnifRefinUnRef(1)
+l_hypothese.AddGroup('IN1')
+l_hypothese.AddGroup('IN2')
l_hypothese.AddGroup('T1_INT_I')
l_hypothese.AddGroup('T1_INT_O')
l_hypothese.AddGroup('T2_INT')