CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   force monitoring and file format (https://www.cfd-online.com/Forums/fluent/85225-force-monitoring-file-format.html)

Lawrence February 20, 2011 12:09

force monitoring and file format
 
Hello

I am trying to analyse the force on a pipe bend.

I have got the file written by Fluent. The problem is the data inside can not be imported into Matlab.

The file can be open by text editors but the data columns in the file are not separated.

Could somebody please let me know how to separate the data into different columes?

Thanks a lot!

Lawrence

ral007 February 21, 2011 12:28

Are you looking at unsteady or steady-state force data?...
How did you write out the data file?...

Lawrence February 21, 2011 16:45

Quote:

Originally Posted by ral007 (Post 296303)
Are you looking at unsteady or steady-state force data?...
How did you write out the data file?...

Thanks for replying.

I have been looking at a unsteady problem using Fluent 12.1. I used Solve>monitors>drag. Then the data were written out. As I set the monitor using 'per zone' and there were three zones, the data file had 4 columns which included the flow time (the 1st column), and then 3 columns of drag coefficient for each zone. The problem I got is that it is difficult to split each column off for plotting in Matlab.

Lawrence

ral007 February 23, 2011 10:38

Does the data file contain a space between columns?...
i.e. time data1 data2 data3 ... etc?..
If so, then you could try to import the data into an excel spreadsheet by specifying space as a delimiter.

Lawrence February 24, 2011 05:51

Quote:

Originally Posted by ral007 (Post 296576)
Does the data file contain a space between columns?...
i.e. time data1 data2 data3 ... etc?..
If so, then you could try to import the data into an excel spreadsheet by specifying space as a delimiter.

Thanks.

Yes, there is a space between the columns. Could you please elaborate the steps how to 'import the data into an excel spreadsheet by specifying space as a delimiter'?

Lawrence

ral007 February 24, 2011 11:02

Open your excel application from start.
Then open your data file as a text file from excel program i.e. open -> file
A text import wizard will guide through the steps.
if the columns are not aligned, selected delimited otherwise select fixed.
A preview of your data file will be visible on the wizard.
Next panel choices are tab,semicolon,comma,space, and other for delimiters. Choose space.
Next panel defines data type. Select general if you have mixed characters and numbers.

Lawrence February 24, 2011 16:35

Yes! You are right. Thank you very much, Robert.

I have managed to import the data to Excel with your method.

Lawrence.


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