CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Transient Results File Reading using MATLAB (https://www.cfd-online.com/Forums/cfx/195940-transient-results-file-reading-using-matlab.html)

abrosua November 21, 2017 04:50

Transient Results File Reading using MATLAB
 
Hello guys, i'm working on FSI project of a transient bending wing analysis.

I want to obtain the aerodynamics characteristics (example: CL, CD and Cm) and also the spanwise lift distribution of the results for each time steps.
I also want to use MATLAB to access and read the output file from the CFX, so that I can process the results that I need using MATLAB, such as plotting the graph, etc.

Do you guys have any suggestions or references in order to solve this case?
Thank you for your attention.
Regards

-Maxim- November 21, 2017 10:11

1. create monitor points for the desired variables (cl, cd, etc.)
2. use command line tool "cfx5mondata" to save monitor points as *.csv (look up the use of cfx5mondata in the manual/help or search this forum).
3. import the *.csv in Matlab

That's my work flow as well. All handling of the data (averaging, calculations, creating&saving graphs, writing Excel files, etc.) is done with some Matlab routines I've written myself.

abrosua November 23, 2017 05:10

Quote:

Originally Posted by -Maxim- (Post 672366)
1. create monitor points for the desired variables (cl, cd, etc.)
2. use command line tool "cfx5mondata" to save monitor points as *.csv (look up the use of cfx5mondata in the manual/help or search this forum).
3. import the *.csv in Matlab

That's my work flow as well. All handling of the data (averaging, calculations, creating&saving graphs, writing Excel files, etc.) is done with some Matlab routines I've written myself.

Thanks for your suggestions, it really helps.
Another question, what if I want to extract the data outside the monitor points? Are there any methods to obtain it simultaneously?

Regards

-Maxim- November 23, 2017 05:13

You're welcome.
What kind of data outside the monitor points are you thinking of?
via cfx5mondata -showvars you can see all possible variables, that the mondata routine can extract.


All times are GMT -4. The time now is 05:41.