Skip to content

Commit

Permalink
[telemac] added hotstart
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsail committed Jan 8, 2024
1 parent fa2ad0f commit ade60e2
Show file tree
Hide file tree
Showing 5 changed files with 280 additions and 133 deletions.
14 changes: 14 additions & 0 deletions pyposeidon/misc/telemac2d.cas
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,27 @@ MASS-BALANCE = {{ 'YES' if mass_balance else 'NO' }}
/----------------------------------------------
/
COMPUTATION CONTINUED = {{ 'YES' if computation_continued else 'NO' }} /Determines whether the computation under way is independent result or is following an earlier result
{% if computation_continued %}
PREVIOUS COMPUTATION FILE = {{ previous_computation_file}}
PREVIOUS COMPUTATION FILE FORMAT = 'SERAFIND'
{% else %}
INITIAL CONDITIONS = '{{initial_conditions}}' /ZERO ELEVATION,
/ /CONSTANT ELEVATION,
/ /INITIAL ELEVATION,
/ /ZERO DEPTH,
/ /CONSTANT DEPTH (together with INITIAL DEPTH),
/ /SPECIAL,
/ /TPXO SATELLITE ALTIMETRY
{% endif %}
/
/---------------------------------------------------------------------
/ CREATE RESTART CONDITIONS
/---------------------------------------------------------------------
{% if hotstart %}
RESTART MODE = YES
RESTART FILE = {{ restart_file }}
RESTART FILE FORMAT = 'SERAFIND' {% endif %}
/
/---------------------------------------------------------------------
/ SPATIAL CONDITIONS - COORDINATE SYSTEM
/---------------------------------------------------------------------
Expand Down
9 changes: 7 additions & 2 deletions pyposeidon/misc/telemac2d.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
{"params":
{
"geo_file": "geo.slf",
"cli_file": "geo.cli",
"out_2D_file": "results_2D.slf",
"out_1D_file": "results_1D.slf",
"inp_wind_file": "input_wind.slf",
"hotstart": true,
"restart_file": "restart_2D.slf",
"title": "TELEMAC 2D Model",
"tstep_graph": 12,
"tstep_list": 6,
Expand All @@ -14,6 +17,7 @@
"mass_balance": true,
"no_tracers": 1,
"computation_continued": false,
"previous_computation_file": "placeholder.slf",
"initial_conditions": "ZERO ELEVATION",
"spherical_coords": true,
"spatial_proj": 3,
Expand Down Expand Up @@ -53,7 +57,7 @@
"discretizations_space": "11;11",
"surface_gradient_compatibility": 0.5,
"initial_guess_u": 2,
"initial_guess_h": 1,
"initial_guess_h": 2,
"implicitation_depth": 0.9,
"implicitation_velocity": 0.9,
"tide_generating_force": false,
Expand All @@ -73,4 +77,5 @@
"source_y": 232753,
"source_flow": 1,
"tracer_values": 1000000
}
}
Loading

0 comments on commit ade60e2

Please sign in to comment.