Exemple de couplage HOMARD-Salome
Copyright EDF 1996, 2010, 2018
"""
-__revision__ = "V3.1"
+__revision__ = "V3.2"
#
import os
import sys
Exemple de couplage HOMARD-Salome
Copyright EDF 1996, 2010, 2018
"""
-__revision__ = "V3.01"
+__revision__ = "V3.02"
#
import os
import sys
Exemple de couplage HOMARD-Salome
Copyright EDF 1996, 2010, 2018
"""
-__revision__ = "V3.1"
+__revision__ = "V3.2"
#
import os
import sys
Exemple de couplage HOMARD-Salome
Copyright EDF 1996, 2011, 2018
"""
-__revision__ = "V4.2"
+__revision__ = "V4.3"
#
import os
import sys
Exemple de couplage HOMARD-Salome
Copyright EDF 1996, 2010, 2018
"""
-__revision__ = "V3.2"
+__revision__ = "V3.3"
#
import os
import sys
Exemple de couplage HOMARD-Salome
Copyright EDF 1996, 2011, 2018
"""
-__revision__ = "V4.4"
+__revision__ = "V4.5"
#
import os
import sys
import HOMARD
#
homard = salome.lcc.FindOrLoadComponent("FactoryServer", "HOMARD")
-homard.SetCurrentStudy(salome.myStudy)
+homard.UpdateStudy()
#
#============================= Début des commandes =============================
#
# ==================================
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
Python script for HOMARD
Test test_1
"""
-__revision__ = "V4.03"
+__revision__ = "V4.04"
#========================================================================
TEST_NAME = "test_1"
#
while not error :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Creation of the zones
# =====================
Python script for HOMARD
Test test_2
"""
-__revision__ = "V4.03"
+__revision__ = "V4.04"
#========================================================================
TEST_NAME = "test_2"
#
while not error :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Creation of the boundaries
# ==========================
Python script for HOMARD
Test test_3
"""
-__revision__ = "V4.04"
+__revision__ = "V4.05"
#========================================================================
TEST_NAME = "test_3"
#
while not error :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Creation of the boundaries
# ==========================
Python script for HOMARD
Test test_4
"""
-__revision__ = "V3.03"
+__revision__ = "V3.04"
#========================================================================
TEST_NAME = "test_4"
#
while not error :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Creation of the zones
# =====================
Specific conditions for Code_Saturne
Test test_5
"""
-__revision__ = "V2.03"
+__revision__ = "V2.04"
#========================================================================
TEST_NAME = "test_5"
#
while not error :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Creation of the hypothese DISTANCE INVERSE
# ==========================================
Python script for HOMARD
Test test_6
"""
-__revision__ = "V1.05"
+__revision__ = "V1.06"
#========================================================================
TEST_NAME = "test_6"
#
while not erreur :
#
- HOMARD.UpdateStudy()
+ #HOMARD.UpdateStudy()
#
# Frontière
# =========
Python script for HOMARD
Test tutorial_1 associe au tutorial 1
"""
-__revision__ = "V4.04"
+__revision__ = "V4.05"
#========================================================================
TEST_NAME = "tutorial_1"
#========================================================================
import os
import sys
-import HOMARD
-import salome
#
# ==================================
-PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
+PATH_HOMARD = os.getenv("HOMARD_ROOT_DIR")
# Repertoire des scripts utilitaires
REP_PYTHON = os.path.join(PATH_HOMARD, "bin", "salome", "test", "HOMARD")
REP_PYTHON = os.path.normpath(REP_PYTHON)
# ==================================
gzip_gunzip(DATA_TUTORIAL, 1, -1)
# ==================================
-
+#
+import salome
salome.salome_init()
+import HOMARD
import iparameters
IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
IPAR.append("AP_MODULES_LIST", "Homard")
#
while not erreur :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Hypotheses
# ==========
Python script for HOMARD
Test tutorial_2 associe au tutorial 2
"""
-__revision__ = "V4.04"
+__revision__ = "V4.05"
#========================================================================
TEST_NAME = "tutorial_2"
#========================================================================
import os
import sys
-import HOMARD
-import salome
#
# ==================================
PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
# ==================================
gzip_gunzip(DATA_TUTORIAL, 2, -1)
# ==================================
-
+#
+import salome
salome.salome_init()
+import HOMARD
+#
import iparameters
IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
IPAR.append("AP_MODULES_LIST", "Homard")
#
while not erreur :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Creation des zones
# ==================
Python script for HOMARD
Test tutorial_3 associe au tutorial 3
"""
-__revision__ = "V4.04"
+__revision__ = "V4.05"
#========================================================================
TEST_NAME = "tutorial_3"
#========================================================================
import os
import sys
-import HOMARD
-import salome
#
# ==================================
PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
# ==================================
gzip_gunzip(DATA_TUTORIAL, 3, -1)
# ==================================
-
+#
+import salome
salome.salome_init()
+import HOMARD
+#
import iparameters
IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
IPAR.append("AP_MODULES_LIST", "Homard")
#
while not erreur :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Hypotheses
# ==========
# ==================================
gzip_gunzip(DATA_TUTORIAL, 3, 1)
# ==================================
-#
+
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser()
iparameters.getSession().restoreVisualState(1)
# -*- coding: utf-8 -*-
+
# Copyright (C) 2011-2016 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+
"""
Python script for HOMARD
Test tutorial_4 associe au tutorial 4
"""
-__revision__ = "V5.03"
+__revision__ = "V5.04"
#========================================================================
TEST_NAME = "tutorial_4"
#========================================================================
import os
import sys
-import HOMARD
-import salome
#
# ==================================
PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
# ==================================
gzip_gunzip(DATA_TUTORIAL, 4, -1)
# ==================================
-
+#
+import salome
salome.salome_init()
+import HOMARD
+#
import iparameters
IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
IPAR.append("AP_MODULES_LIST", "Homard")
#
while not erreur :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Frontières
# ==========
# ==================================
gzip_gunzip(DATA_TUTORIAL, 4, 1)
# ==================================
-#
+
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser()
iparameters.getSession().restoreVisualState(1)
# -*- coding: utf-8 -*-
+
# Copyright (C) 2011-2016 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+
"""
Python script for HOMARD
Test tutorial_5 associe au tutorial 5
"""
-__revision__ = "V4.04"
+__revision__ = "V4.05"
#========================================================================
TEST_NAME = "tutorial_5"
#========================================================================
import os
import sys
-import HOMARD
-import salome
#
# ==================================
PATH_HOMARD = os.getenv('HOMARD_ROOT_DIR')
# ==================================
gzip_gunzip(DATA_TUTORIAL, 5, -1)
# ==================================
-
+#
+import salome
salome.salome_init()
+import HOMARD
+#
import iparameters
IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
IPAR.append("AP_MODULES_LIST", "Homard")
#
while not erreur :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Frontiere
# =========
# ==================================
gzip_gunzip(DATA_TUTORIAL, 5, 1)
# ==================================
-#
+
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser()
iparameters.getSession().restoreVisualState(1)
# -*- coding: utf-8 -*-
+
# Copyright (C) 2011-2016 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+
"""
Python script for HOMARD
Test tutorial_6 associe au tutorial 6
"""
-__revision__ = "V4.04"
+__revision__ = "V4.05"
#========================================================================
TEST_NAME = "tutorial_6"
gzip_gunzip(DATA_TUTORIAL, 4, -1)
gzip_gunzip(DATA_TUTORIAL, 6, -1)
# ==================================
-
+#
+import salome
salome.salome_init()
+import HOMARD
+#
import iparameters
IPAR = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1))
IPAR.append("AP_MODULES_LIST", "Homard")
#
while not erreur :
#
- HOMARD.UpdateStudy()
+ # HOMARD.UpdateStudy()
#
# Frontières
# ==========
gzip_gunzip(DATA_TUTORIAL, 4, 1)
gzip_gunzip(DATA_TUTORIAL, 6, 1)
# ==================================
-#
+
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser()
iparameters.getSession().restoreVisualState(1)