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

Is there a way to do "auto export" multiple times using a script each time step?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2022, 12:39
Default Is there a way to do "auto export" multiple times using a script each time step?
  #1
New Member
 
Join Date: Jul 2020
Posts: 3
Rep Power: 4
newface5150 is on a distinguished road
Hello,

I am trying to see if I can export unsteady CFD data using "auto export" feature in Star-CCM+ multiple times each time step without re-running the CFD model multiple times. The purpose of this is to test the compatibility of other software packages, and I hope to get it done relatively simply.

I've tried in GUI, but it seems that Star-CCM+ allows only one instance of "auto export" in GUI. Is it possible to do it via scripting? Any help/advice will be very appreciated.

Thank you!
newface5150 is offline   Reply With Quote

Old   September 1, 2022, 03:06
Smile Coupling with CAE codes
  #2
Senior Member
 
ashokac7's Avatar
 
Ashok Chaudhari
Join Date: Aug 2016
Location: Pune, India
Posts: 260
Rep Power: 9
ashokac7 is on a distinguished road
Send a message via Skype™ to ashokac7
There is special section on co-simulation with "coupling with CAE codes". There co-simulation tutorials are available under guide for softwares like GT-Suite, Abacus etc. Is something like this are you looking for?
ashokac7 is offline   Reply With Quote

Old   September 1, 2022, 03:10
Default RE: co-simulation
  #3
New Member
 
Join Date: Jul 2020
Posts: 3
Rep Power: 4
newface5150 is on a distinguished road
Hello,

No, I am not interested in using co-simulation directly. I have my own workflow and I want to stick to that by having data exported.

Thank you for the suggestion, by the way.

Sincerely,
newface5150 is offline   Reply With Quote

Old   September 1, 2022, 07:45
Default
  #4
Member
 
Join Date: Nov 2019
Posts: 43
Rep Power: 5
FliegenderZirkus is on a distinguished road
Hi, I would suggest recording a macro as you do the exports manually in the GUI. The resulting block of code can then be edited as required and then invoked at appropriate places during the solution. So this would require to execute the solution through a macro rather than the GUI. Here are a few useful commands that can be used for this purpose (sorry if you know all this already).

Code:
Simulation simulation_0 = getActiveSimulation();

simulation_0.getSimulationIterator().iterate(1, true); // run one iteration
simulation_0.getSimulationIterator().run(3, true); // run three time steps
simulation_0.getSimulationIterator().run(); // run until stopping criteria are satisfied
FliegenderZirkus is offline   Reply With Quote

Old   September 1, 2022, 12:59
Default
  #5
New Member
 
Join Date: Jul 2020
Posts: 3
Rep Power: 4
newface5150 is on a distinguished road
Hi FliegenderZirkus,

Thank you! I haven't thought about the option of manually exporting files each step. I think that it makes sense. I'll update this post after trying it.

Thank you!

UPDATE: Yes, it is working. I should try to figure out how to manipulate the names for boundaries, regions, and so on in more a programmatic way.

Last edited by newface5150; September 1, 2022 at 18:58. Reason: update
newface5150 is offline   Reply With Quote

Reply

Tags
star-ccm+

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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 21 November 10, 2019 11:14
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 16:53
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 23:29
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 14:40


All times are GMT -4. The time now is 11:46.