# --- add a field on nodes of type double with z values, named "BOTTOM"
createZfield2(fichierMaillage)
-# --- create a field on nodes of type double with srtickler coefficient values, named "BOTTOM_FRICTION"
+# --- create a field on nodes of type double with srtickler coefficient values, named "BOTTOM FRICTION"
from salome.hydrotools.interpolS import assignStrickler
fichierFieldZ = os.path.join(tmpdir, 'garonne_1F.med')
Creating a Strickler field at mesh nodes
========================================
-TELEMAC can use a field of Strickler coefficients at the nodes of the mesh. This field has the name *BOTTOM_FRICTION*.
+TELEMAC can use a field of Strickler coefficients at the nodes of the mesh. This field has the name *BOTTOM FRICTION*.
This field is added to the MED file of the mesh, such as the elevation field at the nodes.
You have to manually adapt the script below:
from salome.hydrotools.interpolS import assignStrickler
-assignStrickler(nomCas, fichierMaillage, '/tmp/garonne_1F.med', 'BOTTOM_FRICTION')
+assignStrickler(nomCas, fichierMaillage, '/tmp/garonne_1F.med', 'BOTTOM FRICTION')
Création d'un champ de Strickler aux noeuds du maillage
=======================================================
-Telemac exploite un champ des coefficients de Strickler aux noeuds du maillage. Ce champ a pour nom *BOTTOM_FRICTION*.
+Telemac exploite un champ des coefficients de Strickler aux noeuds du maillage. Ce champ a pour nom *BOTTOM FRICTION*.
Ce champ est ajouté au fichier MED du maillage, comme le champ d'altitude aux noeuds.
Il faut adapter manuellement le script ci-dessous :
output_file_name: path to output MED file with
med_field_name: field name
"""
-def assignStrickler(case_name, med_file_name, output_file_name, med_field_name='FRICTION'):
+def assignStrickler(case_name, med_file_name, output_file_name, med_field_name='BOTTOM FRICTION'):
# Check calculation case
doc = HYDROPy.HYDROData_Document.Document( theStudyId )
case = doc.FindObjectByName(case_name)