write_restart_file

tfv.restart.write_restart_file(nc2, nc3, time_stamp, cell_Zb, fv_data, out_file)

Creates a new restart file from data.

Parameters:
  • nc2 (int) – Number of 2D cells.

  • nc3 (int) – Number of 3D cells.

  • time_stamp (float) – Simulation time as hours since 1990-01-01.

  • cell_Zb (ndarray) – Cell bed elevation as a (nc2,) array.

  • fv_data (ndarray) – Conserved 3D variables as a (nc3, nv) array where columns are (depth, V_x, V_y, SAL, TEMP, SED_1, …, SED_N).

  • out_file (str) – Output path for the restart file.