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

Automatically starting a run

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2023, 05:46
Default
  #21
Member
 
Marc Ricart
Join Date: Jul 2022
Posts: 65
Rep Power: 5
cramr5 is on a distinguished road
Regarding the Simulation Operations.

If I have multiple Simulations Operations defined (for example one for mesh, one for run, one for post). Is there a way from the batch command line to activate one or the other?

I would like to run a simulation on a server but first I would like to mesh it and look at some mesh pictures to be sure the mesh is fine. Then I would like to run it but with no need to open the .sim itself but just by calling a "Run" Simulation Operation.

hope it's more or less clear

Thanks
cramr5 is offline   Reply With Quote

Old   October 18, 2023, 06:11
Default
  #22
Senior Member
 
Join Date: Nov 2019
Posts: 111
Rep Power: 7
FliegenderZirkus is on a distinguished road
I would suggest to use a java macro. There may be a way to activate a simulation operation directly in the batch command, but I personally prefer to just record whatever I want to do (such as activate a simulation operation) and then drive the simulation with the recorded macro. Or just use java for everything directly, without the simulation operations. But that is a matter of preference.
FliegenderZirkus is offline   Reply With Quote

Old   October 27, 2023, 06:43
Default
  #23
Senior Member
 
Lefteris
Join Date: Oct 2011
Location: UK
Posts: 344
Rep Power: 17
Aeronautics El. K. is on a distinguished road
Quote:
Originally Posted by cramr5 View Post
Regarding the Simulation Operations.

If I have multiple Simulations Operations defined (for example one for mesh, one for run, one for post). Is there a way from the batch command line to activate one or the other?

I would like to run a simulation on a server but first I would like to mesh it and look at some mesh pictures to be sure the mesh is fine. Then I would like to run it but with no need to open the .sim itself but just by calling a "Run" Simulation Operation.

hope it's more or less clear

Thanks
I don't think you need multiple simulation operations for that. You need 1 simulation operation which includes all other operations. Confusingly everything is called operations.
You can have an operation to mesh and once that's done you can have another operation which exports scenes and then another that runs the simulation. All these are executed sequentially one after the other without the need for user intervention. All you have to do is open the image files to check your mesh.
__________________
Lefteris

Aeronautics El. K. is offline   Reply With Quote

Old   October 27, 2023, 07:13
Default
  #24
Member
 
Marc Ricart
Join Date: Jul 2022
Posts: 65
Rep Power: 5
cramr5 is on a distinguished road
Quote:
Originally Posted by Aeronautics El. K. View Post
I don't think you need multiple simulation operations for that. You need 1 simulation operation which includes all other operations. Confusingly everything is called operations.
You can have an operation to mesh and once that's done you can have another operation which exports scenes and then another that runs the simulation. All these are executed sequentially one after the other without the need for user intervention. All you have to do is open the image files to check your mesh.
Thanks Aeronautics El. K.

Maybe to clarify what I want to do.
I have a big simulation that I will be running on the cloud in batch mode and I am not sure I am able to open (when meshed) with my machine due to hardware limitations so what I want to do is:

Create a .sim file with a Simulation Operation that will have 2 Simulation Operations prepared: "Mesh + export images" and another one with "Solve + Export images / results"
Then I want to run the Mesh one. Look at the images and confirm that the mesh is OK to run.
Now (hard part) I would need to activate the "run" Simulation Operation via batch mode so I could relaunch the now meshed .sim file and make them run the SOLVE.

I hope I am a bit more clear now with I have in mind.

thanks
cramr5 is offline   Reply With Quote

Old   October 27, 2023, 19:53
Default
  #25
Senior Member
 
Lefteris
Join Date: Oct 2011
Location: UK
Posts: 344
Rep Power: 17
Aeronautics El. K. is on a distinguished road
I'm not sure I follow.
You can have 1 simulation operation which will include 6 operations:
1. Mesh
2. Export scenes
3. Save
4. Run
5. Save
6. Export results

You can submit with -batch run and the simulation will automatically execute in sequence all the operations in the simulation operation.

You'll only have to submit your job once on the HPC. If you don't like the mesh just kill the job.

Alternatively, you don't need any simulation operations at all.
Submit one job with -batch mesh, check the results and when you're happy submit another job with -batch run.

Depending on your circumstances you could even have an interactive session on the compute node, mesh the thing to your heart's content, save, exit, submit the batch run and forget until the sim has finished.
__________________
Lefteris

Aeronautics El. K. is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Unable to run OF in parallel on a multiple-node cluster quartzian OpenFOAM 3 November 24, 2009 14:37
serial run fine, but parallel run diverged phsieh2005 OpenFOAM Running, Solving & CFD 2 October 6, 2009 09:33
How to run InterFoam in steay state waynezw0618 OpenFOAM Running, Solving & CFD 0 November 10, 2008 08:08
Windows 64-bit, Distributed Parallel Run Issues... Erich CFX 3 March 28, 2006 17:36
Restatring run Tim CFX 2 March 3, 2006 12:54


All times are GMT -4. The time now is 13:53.