Skip to content

slf_int2d_3d

Luc DURON edited this page Apr 6, 2023 · 1 revision
usage: slf_int2d_3d.py [-h] [--force] [--verbose] [--var VAR [VAR ...]]
                       [--sep SEP] [--digits DIGITS]
                       resname csv_filename outCSV

@brief:
Interpolate values at given points in a 2D unstructured mesh (with triangular elements)

@warnings:
* target point is outside the model => value of the nearest node is taken
* target point is exactly at a node location => node value is taken (no interpolation is required)
* target point is at the boundary of two elements => interpolation

@info:
* csv_convention for the point set:
** 3 columns (id, x, y) with colon (',') separator
** header is compulsory but order of column may vary
** id must be unique and is a string or an integer
* outCSV : CSV with columns : time, id, x, y and varID_list

positional arguments:
  resname              Serafin input filename
  csv_filename         filename with a set of points (columns: id,x,y)
  outCSV               CSV output filename

options:
  -h, --help           show this help message and exit
  --force, -f          force output overwrite (default: False)
  --verbose, -v        increase output verbosity (default: False)
  --var VAR [VAR ...]  list of 2D or 3D variables (see table) (default: None)
  --sep SEP            CSV separator (default: ,)
  --digits DIGITS      significant digit for exported values (default: 4)
Clone this wiki locally