measure_tool
Interpolate SPH particle values at user-defined points and export CSV time series for flow analysis and validation.
Instructions
MeasureTool: interpolate SPH values at points -> CSV time series.
For the dam-break validation use a horizontal line of points just above the bottom (examples/dambreak_val2d/points_damtip.txt) with density (default -vars:-all,rhop): points beyond the surge front read 0, so the furthest wet point is the front position that validate_dambreak compares against the experiment.
Args: job_id: Job whose data/ directory holds the Part_*.bi4 files. dirdata: Explicit particle data directory (alternative to job_id). points_file: MeasureTool points file (POINTS/POINTSLIST/POINTSENDLIST). pointsdef: Inline points definition, e.g. "ptels[x=0:0.01:4,z=0.03]". variables: Variables to interpolate (default density only). onlytype: Particle filter (default fluid only). savecsv: CSV output prefix (default measure/damtip inside the job). savevtk: Optional VTK prefix for the measuring points. extra_args: Extra MeasureTool flags (a -csvsep here overrides ours).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | ||
| dirdata | No | ||
| savecsv | No | measure/damtip | |
| savevtk | No | ||
| onlytype | No | -all,+fluid | |
| pointsdef | No | ||
| variables | No | -all,rhop | |
| extra_args | No | ||
| points_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| csv_files | No | ||
| next_step | No | ||
| vtk_files | No | ||
| duration_s | No | ||
| file_count | No | ||
| returncode | Yes | ||
| stderr_tail | No | ||
| stdout_tail | No | ||
| output_files | No |