geompy.addToStudyInFather( HYDRO_garonne_1, bordDroiteDomaine, 'bordDroiteDomaine' )
# --- basic properties control: edges length, surfaces
-controlGeomProps(geompy, riveGauche, 29149.36918, 35992556.454929)
-controlGeomProps(geompy, litMineur, 30337.548492, 3646827.749809)
-controlGeomProps(geompy, riveDroite, 32012.343241, 26177085.460092)
+controlGeomProps(geompy, riveGauche, 29149.36918, 35948828.352061)
+controlGeomProps(geompy, litMineur, 30337.548492, 3488480.304388)
+controlGeomProps(geompy, riveDroite, 32012.343241, 25998769.23615)
#----------------------
# --- Meshing
fichierMaillage = os.path.join(tmpdir, 'garonne_1.med')
garonne_1.ExportMED(fichierMaillage, 0, SMESH.MED_V2_2, 1, None ,1)
+mesures = garonne_1.GetMeshInfo()
+d= {}
+for key, value in mesures.iteritems():
+ d[str(key)] = value
+nbTriangles = d['Entity_Triangle']
+nbNodes = d['Entity_Node']
+
controlMeshStats(garonne_1, 3888, 475, 7597)
controlSubMeshStats(litMineur_2, 2384)
controlSubMeshStats(riveDroite_1, 2342)
PYTEL(CODE='telemac2d',
FICHIER_CAS='%s/init.cas',
REPERTOIRE_TRAVAIL='%s/work',
- ENTREE_MED=_F(FICHIER_MED='%s/garonne_1F.med',
+ ENTREE_MED=_F(FICHIER_MED='%s/garonne_1Z.med',
FICHIER_BCD='%s/condlim.bcd',),
- SORTIE_MED='%s/r2d_garonne_1F.med',);
+ SORTIE_MED='%s/r2d_garonne_1Z.med',);
""" % (tmpdir, tmpdir, tmpdir, tmpdir, tmpdir)
print jdc
from salome.hydro.pytel.launcher import run_pytel
run_pytel(param_dict)
+
+from salome.hydrotools.controls import controlTelemacResult
+aMedResult = tmpdir + '/r2d_garonne_1Z.med'
+refstats = {'nbTriangles' : nbTriangles,
+ 'nbNodes' : nbNodes,
+ 'fieldNames':('DEBIT SCALAIRE', 'FOND', 'FROTTEMENT', "HAUTEUR D'EAU", 'NBRE DE COURANT', 'SURFACE LIBRE', 'VITESSE U', 'VITESSE V'),
+ 'iterations':[(0, -1), (1, -1), (2, -1), (3, -1), (4, -1), (5, -1)]
+ }
+controlTelemacResult(aMedResult, refstats)