validate_dambreak
Compares dam-break front positions from a measurement CSV to Koshizuka & Oka (1996), computing per-time errors, MAE, RMSE, and max error in metres and as % of column length.
Instructions
Validate a 2D dam-break run: dam-tip front vs Koshizuka & Oka (1996).
Reads the CSV produced by measure_tool with the SAME points definition (columns map to points by order), reconstructs the front position per output time (furthest point above the wetness threshold) and reports per-time errors plus MAE / RMSE / max error in metres and as % of the column length.
Args: csv_path: MeasureTool time-history CSV. points: Points [[x, y, z], ...] in CSV column order. points_file: The points file used for the measurement. threshold: Wetness threshold (500 kg/m^3 for rhop; ~0.05 for vel). column_length: Water column length a in metres (normalisation). experiment: Embedded experiment (koshizuka1996). max_time: Ignore simulated samples beyond this time (s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | ||
| csv_path | Yes | ||
| max_time | No | ||
| threshold | No | ||
| experiment | No | koshizuka1996 | |
| points_file | No | ||
| column_length | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mae_m | Yes | ||
| notes | No | ||
| rmse_m | Yes | ||
| n_samples | Yes | ||
| threshold | Yes | ||
| experiment | Yes | ||
| front_series | Yes | ||
| impact_time_s | No | When the front plateaued at the tank end (wall impact), if it did | |
| column_length_m | Yes | ||
| max_abs_error_m | Yes | ||
| mae_pct_of_column | Yes | ||
| experiment_reference | Yes |