Skip to content

Commit f39ff51

Browse files
authored
Update Restart-File.md
update OUTPUT_WRT_FREQ
1 parent 8d1de26 commit f39ff51

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

_docs_v7/Restart-File.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ permalink: /docs_v7/Restart-File/
66

77
## Saving files for restarts or adjoint runs
88

9-
The SU2 binary restart format has the extension `.dat`, but it is also possible to write out restart files in a simple ASCII file format with extension `.csv`. Have a look at the [Output section](/docs_v7/Custom-Output/) to learn how to change output file formats.
10-
11-
The restart files are used to restart the code from a previous solution and also to run the adjoint simulations, which require a flow solution as input. To save a restart file, the user needs to add the option `RESTART` to the keyword `OUTPUT_FILES`:
9+
The restart files are used to restart the code from a previous solution and also to run the adjoint simulations, which require a flow solution as input. To save a restart file, the user needs to add the option `RESTART` to the keyword `OUTPUT_FILES` in the configuration file:
1210

1311
`OUTPUT_FILES= RESTART`
1412

13+
The SU2 binary restart format has the extension `.dat`, but it is also possible to write out restart files in a simple ASCII file format with extension `.csv`. Have a look at the [Output section](/docs_v7/Custom-Output/) to learn how to change output file formats.
14+
1515
A restart file with the name given by the keyword `RESTART_FILENAME` is then saved at the end of the simulation, or after every number of iterations given by the keyword `OUTPUT_WRT_FREQ`. For instance,
1616

1717
`RESTART_FILENAME= restart_flow` \
1818
`OUTPUT_WRT_FREQ= 100`
1919

20-
will write the file restart_flow.dat every 100 iterations when then the total number of iterations is larger than 100, or only once at the end of the simulation when the total number of iterations is smaller than 100. Note that the file extension (the suffix) is automatic and can be left out.
20+
will write the file restart_flow.dat every 100 iterations when the total number of iterations is larger than 100, or only once at the end of the simulation when the total number of iterations is smaller than 100. Note that the file extension (the suffix) is automatic and can be left out.
2121
If you would like to keep copies of previously saved restart files, this is possible by setting
2222

2323
`WRT_RESTART_OVERWRITE= NO`
2424

25-
This option is available only for steady simulations. In unsteady simulations, the number of timesteps is appended to the filename automatically. Additional to the regular restart file, a restart file with the current iteration appended to the filename will be written every `OUTPUT_WRT_FREQ` iterations.
25+
Additional to the regular restart file, a restart file with the current iteration appended to the filename will then be written every `OUTPUT_WRT_FREQ` iterations. Note that this option is available only for steady simulations. In unsteady simulations, the number of timesteps is appended to the filename automatically.
2626

2727
## Starting a simulation from a saved solution
2828

@@ -37,8 +37,9 @@ If performing an unsteady restart the `RESTART_ITER` needs to be set to the iter
3737

3838
| Option value | Default value | Description | Data type |
3939
|---|---|---|---|
40+
| `OUTPUT_FILES` | RESTART,PARAVIEW,SURFACE_PARAVIEW | files types to write | list of keywords |
4041
| `RESTART_FILENAME` | restart.dat | filename under which the restart file will be saved | string |
41-
| `OUTPUT_WRT_FREQ` | 250 | the frequency with which the output files will be saved | integer |
42+
| `OUTPUT_WRT_FREQ` | 10,250,42 | the list of frequencies with which the output files will be saved | list of integers |
4243
| `WRT_RESTART_OVERWRITE` | YES | overwrite the restart file or (additionally) append the iteration number to the filename | boolean |
4344
| `RESTART_SOL` | solution | restart from file or from initial conditions | boolean |
4445
| `SOLUTION_FILENAME` | solution.dat | filename that will be used to restart the primal or start the adjoint computation | string |

0 commit comments

Comments
 (0)