|
[Sponsors] |
Script for running Multiple simulations starting from a single initial file |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Join Date: Apr 2009
Posts: 41
Rep Power: 17 ![]() |
I am a rather new user of the software, trying to develop a script to perform multiple simulations starting from a previously converged solution to save time.
It is basically a parametric study, so there are a lot of cases to be run, and each case should start from the SAME converged solution. There is a tutorial covering the case with multiple simulations whose parameters are read from file, but that does not help because I want to start from the previous solution, and not from the initial conditions. Therefore, any help would be very welcome. Furthermore, I have created an input file for the required parameters, and wonder if it is possible to add or multiply any set value inside my solution with the values I read from file. I mean, say we are studying the wall temperatures as a parameter, and need to run different cases with temperatures around a basic value. So is it possible to read the percentage of temperature change from a file and multiply the currently set value to that using the script? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Nils Hennig
Join Date: Apr 2015
Posts: 44
Rep Power: 11 ![]() |
You can run that parametric studys in the new Version of star (12.04.). Otherwise you have a look at the optimate-tool. It is described in the Manual as i know.
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Apr 2009
Posts: 41
Rep Power: 17 ![]() |
Thank you for your response Fiedde1887! I did indeed take a look at manuals for optimate, and that seemed to be helping. But our license is not complete and I currently do not have access to the optimate tool. We do not have access to the latest version of the software as well. Therefore I was looking for a way to get it done using our current available tools. So any help regarding this would be appreciated.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Vincent
Join Date: Jul 2017
Posts: 9
Rep Power: 9 ![]() |
My advice is to use JAVA script. The advantage is that it is much easier to modify the configurations with JAVA. Its not hard at all to set up one such script and it will save you lots of time. If you are not familiar with JAVA then I suggest you learn it because it is very helpful in STAR-CCM+
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Join Date: Apr 2009
Posts: 41
Rep Power: 17 ![]() |
I have managed to develop a script for the application. The simulation for the first case runs smoothly, but the solver does not run for next cases. I have checked the script and it seems the initial solution is not stored in the file, and the solver uses the new solution instead, resulting in the problem.
I have tried different ways to store the initial simulation results into another name, and then use that to re-allocate the new simulation. But that does not seem to be working. So I need a way to keep the original simulation data somewhere and then re-use that at the start of each case. Any ideas? Thanks |
|
![]() |
![]() |
![]() |
Tags |
multiple simulations, scripting |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 03:30 |
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. | Nkl | OpenFOAM Running, Solving & CFD | 19 | October 10, 2019 02:42 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 19:43 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 12:41 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 03:34 |