Salome HOME
f658fec3d6a12949ba5d1cd17c253b49606760a0
[modules/hydrosolver.git] / src / salome_hydro / interpolz.template
1 # Z interpolation with HYDRO
2 from salome.hydrotools.interpolZ import interpolZ, createZfield2
3
4 # Calculation case name in HYDRO
5 caseName = <case_name_from_dlg>
6
7 # MED file 2D(x,y) of the case produced by SMESH
8 medFile = <MED_file_path_from_dlg>
9
10 # Dictionary [med group name] = region name
11 <dictGroupRegion>
12
13 # Value to use for Z when the node is not in a region (used to detect problems)
14 zUndef = <z_undef_value_from_dlg>
15
16 # Interpolation method
17 interpolMethod = <interpolation_method_value_from_dlg>
18
19 # Z interpolation on the bathymetry/altimetry on the mesh nodes
20 statZ = interpolZ(caseName, medFile, dictGroupRegion, zUndef,interpolMethod)
21 createZfield2(medFile)