from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 0, 0 )
garonne_ign_01.Update()
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 0, 0 )
garonne_ign_02.Update()
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
garonne_ign_02.Update()
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
Cloud_02.Update()
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 0, 0 )
raise ValueError('loading problem not detected: return value should be null')
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
raise ValueError('loading problem not detected: return value should be null')
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 0, 0 )
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 0, 0 )
Case_1.Update()
# Export of the calculation case
-Case_1_entry = Case_1.Export( theStudy._get_StudyId() )
+Case_1_entry = Case_1.Export()
#----------------------
# --- Geometry
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
print("Entry:", Case_1_entry)
Case_1_geom = salome.IDToObject( str( Case_1_entry ) )
controlGeomProps(geompy, Case_1_geom, 1218.7373973, 49578.1516521)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
garonne_1_riveGauche.SetName( "garonne_1_riveGauche" )
# Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
#----------------------
# --- Geometry
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
print("Entry:", garonne_1_entry)
HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
geompy.addToStudyInFather(HYDRO_garonne_1, aval, "aval")
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
garonne_1_riveGauche.SetName("garonne_1_riveGauche")
# Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
#----------------------
# --- Geometry
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
print("Entry:", garonne_1_entry)
HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
import tempfile
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
# --- algorithms and hypothesis
garonne_1 = smesh.Mesh(HYDRO_garonne_1)
controlSubMeshStats(riveGauche_1, 2871)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
garonne_1_riveGauche.SetName("garonne_1_riveGauche")
# Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
#----------------------
# --- Geometry
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
print("Entry:", garonne_1_entry)
HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
import tempfile
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
# --- algorithms and hypothesis
garonne_1 = smesh.Mesh(HYDRO_garonne_1)
controlSubMeshStats(riveGauche_1, 2871)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
#----------------------
# --- Z interpolation with HYDRO
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
garonne_1_digue.SetName("garonne_1_digue")
# Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
#----------------------
# --- Geometry
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
print("Entry:", garonne_1_entry)
HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
geompy.addToStudyInFather( HYDRO_garonne_1, SectionsDigue, 'SectionsDigue' )
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
garonne_1_digue.SetName("garonne_1_digue")
# Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
#----------------------
# --- Geometry
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
print("Entry:", garonne_1_entry)
HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
import tempfile
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
# --- algorithms and hypothesis
garonne_1 = smesh.Mesh(HYDRO_garonne_1)
controlSubMeshStats(digue_1, 832)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
garonne_1_digue.SetName("garonne_1_digue")
# Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
#----------------------
# --- Geometry
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
print("Entry:", garonne_1_entry)
HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
import tempfile
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
# --- algorithms and hypothesis
garonne_1 = smesh.Mesh(HYDRO_garonne_1)
controlSubMeshStats(digue_1, 832)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
#----------------------
# --- Z interpolation with HYDRO
#----------------------
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
garonne_1_riveGauche.SetName("garonne_1_riveGauche")
# Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
#----------------------
# --- Geometry
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
print("Entry:", garonne_1_entry)
HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
import tempfile
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
# --- algorithms and hypothesis
garonne_1 = smesh.Mesh(HYDRO_garonne_1)
controlSubMeshStats(riveGauche_1, 2871)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
#----------------------
# --- Z interpolation with HYDRO
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000.000, 6350000.000 )
garonne_1_pile4.SetName( "garonne_1_pile4" )
# Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
# Get geometry shape and print debug information
import GEOM
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
[garonne_riveDroite,garonne_aval,garonne_riveGauche,garonne_pont,garonne_amont] = geompy.SubShapeAll(HYDRO_garonne_1, geompy.ShapeType["FACE"])
from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
import tempfile
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
garonne_1 = smesh.Mesh(HYDRO_garonne_1)
NETGEN_1D_2D = garonne_1.Triangle(algo=smeshBuilder.NETGEN_1D2D)
NETGEN_2D_Parameters_1 = NETGEN_1D_2D.Parameters()
controlSubMeshStats(garonne_riveGauche_2, 4635)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000.000, 6350000.000 )
etude_Reg_1.SetName( "etude_Reg_1" )
# Export of the calculation case
-etude_entry = etude.Export( theStudy._get_StudyId() )
+etude_entry = etude.Export()
# Get geometry shape and print debug information
import GEOM
import SALOMEDS
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
etude_domaine_Outer = geompy.CreateGroup(HYDRO_etude_1, geompy.ShapeType["EDGE"])
geompy.UnionIDs(etude_domaine_Outer, [3, 6, 8, 10])
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
relief = smesh.Mesh(HYDRO_etude_1)
NETGEN_2D = relief.Triangle(algo=smeshBuilder.NETGEN_1D2D)
NETGEN_2D_Parameters_1 = NETGEN_2D.Parameters()
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
#----------------------
# --- Z interpolation with HYDRO
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 0.000, 0.000 )
Reg_riveDroite.SetName( "Reg_riveDroite" )
# Export of the calculation case
-Case_1_entry = Case_1.Export( theStudy._get_StudyId() )
+Case_1_entry = Case_1.Export()
#----------------------
# --- Geometry
print("Geom shape:", HYDRO_Case_1)
print("Geom shape name:", HYDRO_Case_1.GetName())
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
# --- manual definition: geometrical faces
[riveGauche,litMineur,riveDroite] = geompy.SubShapeAll(HYDRO_Case_1, geompy.ShapeType["FACE"])
from salome.smesh import smeshBuilder
from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
# --- algorithms and hypothesis
plaine = smesh.Mesh(HYDRO_Case_1)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
from PyQt5.QtCore import *
from PyQt5.QtGui import *
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
hydro_doc.SetLocalCS( 430000, 6.35e+06 )
garonne_1_riveGauche.SetName("garonne_1_riveGauche")
# Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
#----------------------
# --- Geometry
import SALOMEDS
from salome.hydrotools.controls import controlGeomProps
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
print("Entry:", garonne_1_entry)
HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
import tempfile
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
# --- algorithms and hypothesis
garonne_1 = smesh.Mesh(HYDRO_garonne_1)
controlSubMeshStats(riveGauche_1, 2871)
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser()
#----------------------
# --- Z interpolation with HYDRO