X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Fh011_normalCaseManualInterpolZ.py;h=ffdd3b129edf3d7986e019a2f7420e7b50d6a013;hb=9b8e3d3253c3e71420379e7ab86e60b24f508942;hp=6c80a6630aac6d34863db2a70b21855115c33046;hpb=d7abcc094576f2a893056acfcd7fe13cb421f8bb;p=modules%2Fhydro.git diff --git a/doc/salome/examples/h011_normalCaseManualInterpolZ.py b/doc/salome/examples/h011_normalCaseManualInterpolZ.py index 6c80a663..ffdd3b12 100644 --- a/doc/salome/examples/h011_normalCaseManualInterpolZ.py +++ b/doc/salome/examples/h011_normalCaseManualInterpolZ.py @@ -233,7 +233,7 @@ litMajeur.SetZLevel( 5 ) litMajeur.SetFillingColor( QColor( 0, 170, 127, 255 ) ) -litMajeur.SetAltitudeObject( Cloud_02 ) +litMajeur.SetAltitudeObject( garonne_point_L93 ) litMajeur.SetPolyline( lit_majeur ) litMajeur.Update() @@ -488,9 +488,9 @@ nomCas = 'garonne_1' # --- med file 2D(x,y) of the case produced by SMESH # --- dictionary [med group name] = region name -dicoGroupeRegion= dict(garonne_1_litMineur = 'garonne_1_litMineur', - garonne_1_riveDroite = 'garonne_1_riveDroite', - garonne_1_riveGauche = 'garonne_1_riveGauche', +dicoGroupeRegion= dict(litMineur = 'garonne_1_litMineur', + riveDroite = 'garonne_1_riveDroite', + riveGauche = 'garonne_1_riveGauche', ) # --- value to use for Z when the node is not in a region (used to detect problems) zUndef = 90 @@ -498,12 +498,12 @@ zUndef = 90 # --- Z interpolation on the bathymety/altimetry on the mesh nodes statz = interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef) #print statz -refstatz = {'garonne_1_riveDroite': (10.88, 32.61, 24.17, 5.12, 17.57, 31.33, 0.25), - 'garonne_1_riveGauche': (7.72, 71.86, 24.51, 12.18, 12.90, 60.36, 0.25), - 'garonne_1_litMineur': (2.06, 25.41, 13.93, 4.33, 8.47, 21.78)} +refstatz = {'riveDroite': (10.88, 32.61, 24.17, 5.12, 17.57, 31.33, 0.25), + 'riveGauche': (7.72, 71.86, 24.51, 12.18, 12.90, 60.36, 0.25), + 'litMineur': (2.06, 25.41, 13.93, 4.33, 8.47, 21.78)} controlStatZ(statz, refstatz) # --- add a field on nodes of type double with z values, named "BOTTOM" -createZfield2(fichierMaillage) +#createZfield2(fichierMaillage)