CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CD-adapco (http://www.cfd-online.com/Forums/cd-adapco/)
-   -   How can i get cell data into txt file? (http://www.cfd-online.com/Forums/cd-adapco/56190-how-can-i-get-cell-data-into-txt-file.html)

Steve July 17, 2007 09:26

How can i get cell data into txt file?
 
Hi In Post-processing i want to generate txt-files for some specific cells of my model which contain the simulated data like pressure, velocity, etc. Is this or anything compareable possible?

Greets Steve

TG July 17, 2007 11:07

Re: How can i get cell data into txt file?
 
Gather the data you want using the GETC command or OPERate commands and then take a look at either the SAVUserdata or the PRINt commands. SAVU saves everything to a file. PRINT,CSET will print the cset to std output so before using it you have to use OFILE to output the screen data to a file

Steve July 18, 2007 09:17

Re: How can i get cell data into txt file? *NM*
 

Steve July 18, 2007 09:24

Re: How can i get cell data into txt file?
 
By this way i can get the register-data to a txt-file and the simulated data is illustratred for each cell, but just for one time step. I wonder if there is a way to get the desired data of the transient run, lets say the pressure, into a txt-file with a pressure-timestep dependency for a cell/cell set. Thanks for your help!


Balduin Bankerotti July 18, 2007 11:10

Re: How can i get cell data into txt file?
 
Save a file for every time step and use a perl script to sort the values.


TG July 19, 2007 10:25

Re: How can i get cell data into txt file?
 
You can write a prostar macro that loops through all time steps and for each one, loads the data you want, prints, go on to the next... Its not very hard.

paulh July 19, 2007 14:09

Re: How can i get cell data into txt file?
 
In v3.26, there's something called an internal boundary. Set that up and then export your data to an erd file. Or, create a cell set(s) of the cells you wish to interrogate. Use the ecd file to get the post information per iteration/time step.

Steve July 20, 2007 07:17

Re: How can i get cell data into txt file?
 
Thanks But is it possible to get the required data in one file?

vladimir July 22, 2007 14:41

Re: How can i get cell data into txt file?
 
Hi Steve,
supposing you are using star version 3.26, then launch the NavCenter, go for Post-Processing > Graphs > Extract/Graph Data > Analysis History Data. You'll find at least part of the task done for you there. Just, pick the cell to tell where are the data of your interest then load the data (solved variable) and create a graph. To save the graph data, switch to 'External Data' folder instead of 'Analysis History Data'. It may not be the best solution but you can look at the output window which commands the procedure issued to reach the results, and save them to a user defined panel or to a text file for the next use.
Hope it'll help


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