|
[Sponsors] |
Is there a way to do "auto export" multiple times using a script each time step? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 31, 2022, 11:39 |
Is there a way to do "auto export" multiple times using a script each time step?
|
#1 |
New Member
Join Date: Jul 2020
Posts: 7
Rep Power: 5 |
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! |
|
September 1, 2022, 02:06 |
Coupling with CAE codes
|
#2 |
Senior Member
|
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?
|
|
September 1, 2022, 02:10 |
RE: co-simulation
|
#3 |
New Member
Join Date: Jul 2020
Posts: 7
Rep Power: 5 |
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, |
|
September 1, 2022, 06:45 |
|
#4 |
Member
Join Date: Nov 2019
Posts: 93
Rep Power: 6 |
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 |
|
September 1, 2022, 11:59 |
|
#5 |
New Member
Join Date: Jul 2020
Posts: 7
Rep Power: 5 |
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 17:58. Reason: update |
|
Tags |
star-ccm+ |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 5, 2023 23:48 |
p_rgh initial residual no change with different settings | manuc | OpenFOAM Running, Solving & CFD | 3 | June 26, 2018 15:53 |
Inconsistencies in reading .dat file during run time in new injection model | Scram_1 | OpenFOAM | 0 | March 23, 2018 22:29 |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 05:28 |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 13:40 |