From 6bdb4beb2b589220af74e7fea5a4472c78141c2d Mon Sep 17 00:00:00 2001 From: Gerald NICOLAS Date: Wed, 10 Jan 2018 12:02:00 +0100 Subject: [PATCH] =?utf8?q?Mise=20=C3=A0=20jour=20de=20tutorial?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- doc/files/tutorial_5.py | 6 +++--- doc/files/tutorial_6.py | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/files/tutorial_5.py b/doc/files/tutorial_5.py index c155c1d9..93dce3f1 100755 --- a/doc/files/tutorial_5.py +++ b/doc/files/tutorial_5.py @@ -24,7 +24,7 @@ Exemple de couplage HOMARD-Salome Copyright EDF 1996, 2010, 2018 """ -__revision__ = "V3.1" +__revision__ = "V3.2" # import os import sys @@ -85,7 +85,7 @@ iter_5_1 = le_cas.NextIteration('iter_5_1') 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" # ==================== @@ -93,7 +93,7 @@ iter_5_2 = iter_5_1.NextIteration('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 ============================== # diff --git a/doc/files/tutorial_6.py b/doc/files/tutorial_6.py index cc12c548..c4644020 100755 --- a/doc/files/tutorial_6.py +++ b/doc/files/tutorial_6.py @@ -24,7 +24,7 @@ Exemple de couplage HOMARD-Salome Copyright EDF 1996, 2011, 2018 """ -__revision__ = "V4.3" +__revision__ = "V4.4" # import os import sys @@ -54,7 +54,7 @@ homard.SetCurrentStudy(salome.myStudy) # # 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.) # @@ -83,6 +83,8 @@ le_cas.AddBoundaryGroup( 'cyl_2_ext', 'T2_EXT' ) # 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') -- 2.39.2