CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   STAR-CCM+ (http://www.cfd-online.com/Forums/star-ccm/)
-   -   Export the scalar value for all elements as *.Csv file (http://www.cfd-online.com/Forums/star-ccm/99111-export-scalar-value-all-elements-csv-file.html)

TrII4d March 26, 2012 10:11

Export the scalar value for all elements as *.Csv file
 
Hello everybody,

I want to export the scalar value (f.ex. Temperature) for every element in a sepcific region into a *.csv file. Also, the Value should be export for each timestep.

The result should like this example:

|Element No.| |Timestep| |Temperature|
____1_____________1_________300 K
____2_____________1_________300 K
____3_____________1_________300 K
-----------------------------------------
____1_____________2_________310 K
____2_____________2_________305 K
____3_____________2_________300 K

Can anyone explain me, how I can export the results for each timestep ?

Thanks,

TrII4d

ryancoe March 26, 2012 14:00

You'll need to write a macro to output a table at every time step. Record yourself exporting the values, and then create a loop. Of course you'll also need to go little deeper to get the exact format you're looking for.

It may also be possible to use v7's new Solution History function, although I don't know much about it yet so I can't really say for sure.

TrII4d March 26, 2012 15:41

hi ryancoe,

at first, thanks for your fast replay!

Quote:

Originally Posted by ryancoe (Post 351567)
... Record yourself exporting the values, ...

that is one of my problems .... i have s scalar scene of my temperature ... how I can export the values for each element in the region?


thanks,

TrII4d

DanHamilton March 27, 2012 04:24

Tools>Tables>New Table>XYZ Internal Table

Regards
Dan

TrII4d March 27, 2012 12:12

Thanks DanHamilton ... that was it!

greetz
TrII4d

Muster June 1, 2016 08:03

export scalar and region as .csv
 
I would like to export scalar datas for special regions in star ccm+ , how can I do this?

The table should look like:

Boundarie
Surface Average | (Temperature in K)
Head | 233
Torso |194
Leg |210


Thanks for your help!


All times are GMT -4. The time now is 17:02.