()
| 19 | |
| 20 | # This function is called automatically in each simulation step. |
| 21 | def step(): |
| 22 | global counter |
| 23 | sim = sph.Simulation.getCurrent() |
| 24 | fluid = sim.getFluidModel(0) |
| 25 | tm = sph.TimeManager.getCurrent() |
| 26 | print(fluid.getPosition(0)) |
| 27 | |
| 28 | print(counter) |
| 29 | counter += 1 |
| 30 | print("---") |
| 31 | |
| 32 | # This function is called automatically in each simulation reset. |
| 33 | def reset(): |
nothing calls this directly
no test coverage detected