CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Run simulation till manual interruption

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2022, 04:42
Exclamation Run simulation till manual interruption
  #1
New Member
 
Vaishali Ravishankar
Join Date: Nov 2022
Location: Munich, Germany
Posts: 2
Rep Power: 0
vaish99 is on a distinguished road
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!
vaish99 is offline   Reply With Quote

Old   November 8, 2022, 23:33
Default
  #2
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 436
Rep Power: 17
cwl is on a distinguished road
Why not just switch off the max iterations stopping criteria?
cwl is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:59.