Skip to content

Commit 5a1b804

Browse files
committed
Add continuous dynamic plot option
1 parent 3d1a97c commit 5a1b804

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

elastic-tube-1d/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ cd solid-python
8888
./run.sh
8989
```
9090

91+
**Optional:** A run-time plot visualization can be trigged by passing the `--enable-plot` execution command in `run.sh` of `FluidSolver.py`.
92+
9193
{% include warning.html content= "The C++ and Python solvers lead to different results. Please consider the Python results as the correct ones and refer to this [open issue](https://github.com/precice/tutorials/issues/195) for more insight. Contributions are particularly welcome here." %}
9294

9395
## Post-processing

elastic-tube-1d/fluid-python/FluidSolver.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,8 @@ def crossSection0(N):
151151
velocity_old = np.copy(velocity)
152152
pressure_old = np.copy(pressure)
153153
crossSectionLength_old = np.copy(crossSectionLength)
154-
155154
writeOutputToVTK(time_it, "out_fluid_", dx, datanames=["velocity", "pressure", "diameter"], data=[
156-
velocity_old, pressure_old, crossSectionLength_old])
155+
velocity_old, pressure_old, crossSectionLength_old])
157156
time_it += 1
158157

159158
print("Exiting FluidSolver")

0 commit comments

Comments
 (0)