|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Peres
Join Date: Jul 2009
Posts: 22
Rep Power: 17 ![]() |
Help :-)
Hope someone can help with this basic task... I would like to access the raw solution data at certain time steps during my transient simulation, not just a "hard copy" of a plot/scene... I have successfully used the Auto Export to make a CCM-file with the Append option enabled, but once the file has been created and the simulation is finished, how do I actually get to view the data from each time step? If this is not possible with the CCM-format, is it possible with some of the other available formats... Or do you have to write a macro for this? I would appreciate any response - thanks! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Mar 2009
Posts: 260
Rep Power: 18 ![]() |
Don't know if this works in 4.04 but in 4.02 you have to write all data's via export or hardcopy to look after the simulation is fine.
Other way could be the auto save but I think this isn't a good solution. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Peres
Join Date: Jul 2009
Posts: 22
Rep Power: 17 ![]() |
Hi Maddin
Thanks for your reply. I'm not sure you understood, so I'll try to clarify. I know how to auto export the data. But how do I "import"/show the data, e.g. show the velocity profile along a vertical line for each time step. I don't want just an image ("hard copy"), but the actual raw data. After crawling through the forum, I think I've come up with a solution: Record a macro with a loop that runs a single time-step, export the raw data as a csv-file and repeats... Kindly Peres |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Mar 2009
Posts: 260
Rep Power: 18 ![]() |
Hmm maybe you should write a scene file for proVis? But I didn't worked much with this.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Peres
Join Date: Jul 2009
Posts: 22
Rep Power: 17 ![]() |
Thanks Maddin. I've tried googling Provis, but get ambigious results. Do you know where I can possibly obtain this software?
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Mar 2009
Posts: 260
Rep Power: 18 ![]() |
It's a part of stardesign. Maybe StarView+ can also help you.
Under Windows with STARCAT5 the post-processing is with provis (but there I have an older version of starccm). |
|
![]() |
![]() |
![]() |
![]() |
#7 | |
New Member
Peres
Join Date: Jul 2009
Posts: 22
Rep Power: 17 ![]() |
Ahh, I found provis, hidden in the stardesign directory... I'll try to play around with it , thanks.
By the way, I did make a macro (see below), named exporttransient.java, which does the job. The only thing I haven't figured out yet is if there's a way to automatically determine (1) if the stopping criteria have been met or (2) solution has become instable, so the loop knows when to end. The present approach attempts to resolve (1) but I'm not sure if it's working, so it requires an attentive user :-) Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
Peres
Join Date: Jul 2009
Posts: 22
Rep Power: 17 ![]() |
For those interested, a newer version and documentation for the macro can be found on Edinburgh University's Wiki for Star-users.
Cheers Peres |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
Ivan
Join Date: Aug 2009
Posts: 63
Rep Power: 17 ![]() |
Hi all,
I am about to run a unsteady simulation on Fluent and I would need to export a number of variables on a certain plane of the grid (x-,y- and z- velocities, and x-vorticity) every time step to be post-processed with another software (Matlab). So far I've exported data from steady simulations, at the end of them, once converged. However I've never done this before for unsteady simulations. I would much appreciate any light you could give me on this. Cheers, Ivan. |
|
![]() |
![]() |
![]() |
![]() |
#10 |
New Member
PK
Join Date: Oct 2010
Posts: 9
Rep Power: 16 ![]() |
Hi Peresah,
In the current version of STAR-CCM+ (5.04) it's possible to read .ccm files back into a blank simulation WITH the field function saved in them. These should appear in the Filed Function list under Tools in the simulation tree. This feature may even be available in earlier versions, but nothing older than 5.02. If you are only interested in surface data, such as temperature or other quantity only on the surface, the .sbd binary file format may be another option. This format is preferable for saving surface data (geometry and functions) and can be easily and quickly read back into a blank simulation. Regards, Pavel |
|
![]() |
![]() |
![]() |
![]() |
#11 | |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 ![]() |
Quote:
I have the same issue as well. I want to export the data (in csv format) at different time steps of the simulation so that I can process the data in matlab. any idea how to do this automatically? I have too many timesteps and doing it manually just takes too much time. |
||
![]() |
![]() |
![]() |
![]() |
#12 |
Member
kris
Join Date: May 2014
Posts: 73
Rep Power: 12 ![]() |
HWSV07,
You can do it using a macro. the macro could run a few time steps, export data as a csv and repeat that. I believe that you can append new data to existing csv file so you can get all time steps in a single file. Hope this helps. |
|
![]() |
![]() |
![]() |
![]() |
#13 | |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 ![]() |
Quote:
but i would still have to manually run the macro to save the data at specified timestep right? |
||
![]() |
![]() |
![]() |
![]() |
#14 |
Member
kris
Join Date: May 2014
Posts: 73
Rep Power: 12 ![]() |
hi HWSV07,
No. you don't have to run the macro manually. Suppose you have to run the simulation for 10 sec with 0.1 s time step and you want to save the data ever 1s (i.e. 10 tie steps), your macro would look something like this. for i = 1 to 10 step 10 time steps save data next i that way you are running it for 100 (10 x 10 ) time steps while saving it every 10 time steps. Now for the actual java code, you could record a java with what you need and then edit it. It is not that difficult. Hope this helps. |
|
![]() |
![]() |
![]() |
Tags |
data, raw, solution, time, transient |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time step size and max iterations per time step | pUl| | FLUENT | 31 | October 23, 2020 23:50 |
CHT. Cooled blade. Different time steps. | Georg | CFX | 4 | December 26, 2008 09:26 |
Collect data at every 10 time steps, npt each. | Anindya | FLUENT | 3 | July 31, 2005 08:09 |
Time dependent solution | Thomas | FLUENT | 1 | January 13, 2004 10:12 |
unsteady calcs in FLUENT | Sanjay Padhiar | Main CFD Forum | 1 | March 31, 1999 13:32 |