... | ... | @@ -68,6 +68,18 @@ Run the model |
|
|
loop.run()
|
|
|
```
|
|
|
|
|
|
Compress the output files
|
|
|
|
|
|
```python
|
|
|
loop.archive_results("results")
|
|
|
```
|
|
|
|
|
|
or
|
|
|
|
|
|
```python
|
|
|
loop.compress_results("results")
|
|
|
```
|
|
|
|
|
|
# Run Tracer
|
|
|
|
|
|
SLIM model can simulate any passive tracer. The simulation can be performed online, by running both hydrodynamics and tracer models at the same time, or offline, by loading previously stored outputs of the hydrodynamic SLIM model.
|
... | ... | @@ -123,6 +135,18 @@ Compute the total mass of tracer in the domain |
|
|
eqTracer.compute_mass("tracer.dat")
|
|
|
```
|
|
|
|
|
|
Compress the output files
|
|
|
|
|
|
```python
|
|
|
loop.archive_results("results")
|
|
|
```
|
|
|
|
|
|
or
|
|
|
|
|
|
```python
|
|
|
loop.compress_results("results")
|
|
|
```
|
|
|
|
|
|
## Offline
|
|
|
|
|
|
Running the tracer offline is much quicker than online. It request the output file from a hydrodynamic run with the option ```export_every_sub_time_step```
|
... | ... | @@ -213,6 +237,18 @@ Set the time_step offline (i.e., the time step of the hydrodynamic run) |
|
|
loop.set_time_step_offline(dt, periodic = False)
|
|
|
```
|
|
|
|
|
|
Compress the output files
|
|
|
|
|
|
```python
|
|
|
loop.archive_results("results")
|
|
|
```
|
|
|
|
|
|
or
|
|
|
|
|
|
```python
|
|
|
loop.compress_results("results")
|
|
|
```
|
|
|
|
|
|
Launch
|
|
|
|
|
|
```python
|
... | ... | |