|
[Sponsors] | |||||
|
|
|
#21 |
|
Member
Marc Ricart
Join Date: Jul 2022
Posts: 65
Rep Power: 5 ![]() |
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 |
|
|
|
|
|
|
|
|
#22 |
|
Senior Member
Join Date: Nov 2019
Posts: 111
Rep Power: 7 ![]() |
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.
|
|
|
|
|
|
|
|
|
#23 | |
|
Senior Member
Lefteris
Join Date: Oct 2011
Location: UK
Posts: 344
Rep Power: 17 ![]() |
Quote:
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 |
||
|
|
|
||
|
|
|
#24 | |
|
Member
Marc Ricart
Join Date: Jul 2022
Posts: 65
Rep Power: 5 ![]() |
Quote:
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 |
||
|
|
|
||
|
|
|
#25 |
|
Senior Member
Lefteris
Join Date: Oct 2011
Location: UK
Posts: 344
Rep Power: 17 ![]() |
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 |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |