restart_from_result¶
- tfv.restart.restart_from_result(old_result_file, new_result_file, out_file, n_sigma, time_stamp, variables)¶
Creates a restart file from an existing TUFLOW FV result file, using a separate result file for geometry input.
- Parameters:
old_result_file (str) – Path of the result file from which to extract field data.
new_result_file (str) – Path of the result file from which to use geometry (mesh, cell elevations) for the new run.
out_file (str) – Output path for the restart file.
n_sigma (int) – Number of sigma layers in the new model.
time_stamp (float) – Simulation time (hours since 1990-01-01) at which to extract state from
old_result_file.variables (list) – Conserved variables to include, e.g. [‘V_x’, ‘V_y’, ‘SAL’, ‘TEMP’, ‘SED_1’].