You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will recreate a somewhat larger scene than the default double dam break
34
+
This will recreate a somewhat larger scene than the default double dam break.
35
+
35
36
36
37
## Putting it all together
37
38
@@ -64,6 +65,36 @@ if __name__ == "__main__":
64
65
main()
65
66
```
66
67
68
+
## Changing parameters of the simulation
69
+
70
+
The command ```base.run()``` at the end of the example above is a shortcut for the commands:
71
+
```python
72
+
base.initSimulation() # init simulation, fluid models, time step, ...
73
+
base.runSimulation() # start the simulation
74
+
base.cleanup() # cleanup everything after the simulation
75
+
```
76
+
77
+
If you want to change the parameters of the fluid model or the simulation, you first have to initialize the scene. Therefore, exchange ```base.run()``` by the three commands above. Then, you can change the parameters after the call of ```base.initSimulation()```.
0 commit comments