|
[Sponsors] |
November 8, 2022, 04:42 |
Run simulation till manual interruption
|
#1 |
New Member
Vaishali Ravishankar
Join Date: Nov 2022
Location: Munich, Germany
Posts: 2
Rep Power: 0 |
Hello,
I am trying to run a simulation and I would like it to run infinitely until I pause or stop the simulation, how do I write this as a Java macro? I have the following code for now such that the simulation runs till 1000 steps. do { Simulation simulation_0 = getActiveSimulation(); simulation_0.getSimulationIterator().run(1); posting(); }while(getActiveSimulation().getSimulationIterator ().getCurrentIteration()<1000); Thanks for the help! |
|
November 8, 2022, 23:33 |
|
#2 |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 436
Rep Power: 17 |
Why not just switch off the max iterations stopping criteria?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sonicFoam unable to run simulation | SMallin | OpenFOAM Running, Solving & CFD | 0 | February 21, 2020 15:37 |
How to stop transient simulation which has been run from scheme script? | AlexanderZ | FLUENT | 8 | August 31, 2017 04:25 |
Run a simulation from previous stopped position | mayankbhuwal89 | OpenFOAM | 0 | October 25, 2016 14:39 |
Shall I leave one core free when I run CFD simulation? | Pierre1 | Main CFD Forum | 1 | March 12, 2015 04:46 |
Procedure to run unsteady simulation? | STN | Main CFD Forum | 2 | February 16, 2002 04:37 |