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

Script for running Multiple simulations starting from a single initial file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2017, 08:14
Default Script for running Multiple simulations starting from a single initial file
  #1
Member
 
Join Date: Apr 2009
Posts: 41
Rep Power: 17
doki is on a distinguished road
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?
doki is offline   Reply With Quote

Old   July 12, 2017, 12:33
Default
  #2
Member
 
Nils Hennig
Join Date: Apr 2015
Posts: 44
Rep Power: 11
Fiedde1887 is on a distinguished road
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.
Fiedde1887 is offline   Reply With Quote

Old   July 13, 2017, 06:53
Default
  #3
Member
 
Join Date: Apr 2009
Posts: 41
Rep Power: 17
doki is on a distinguished road
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.
doki is offline   Reply With Quote

Old   July 13, 2017, 08:32
Default
  #4
New Member
 
Vincent
Join Date: Jul 2017
Posts: 9
Rep Power: 9
Vincent_GDC is on a distinguished road
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+
Vincent_GDC is offline   Reply With Quote

Old   July 14, 2017, 08:54
Default
  #5
Member
 
Join Date: Apr 2009
Posts: 41
Rep Power: 17
doki is on a distinguished road
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
doki is offline   Reply With Quote

Reply

Tags
multiple simulations, scripting


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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. Nkl OpenFOAM Running, Solving & CFD 19 October 10, 2019 03:42
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34


All times are GMT -4. The time now is 08:01.