CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   How to convert .trn files to .cgns files (https://www.cfd-online.com/Forums/cfx/207934-how-convert-trn-files-cgns-files.html)

cyln October 6, 2018 21:04

How to convert .trn files to .cgns files
 
Hello,

I am running a transient RANS simulation in CFX and outputting .trn files accordingly. My simulation is about to be completed. I would like to convert the written "trn" files to "cgns" files so that I can postProcess all the written transient files using macros in Tecplot. Basic tasks include time-averaging using all the written time-step files, probing property data at any point decided during postProcessing phase.

Cheers
Cyln

Gert-Jan October 7, 2018 06:31

The solver manager has export capabilities. In the top-menu-bar look for Tools>Export Results

cyln October 10, 2018 17:38

1 Attachment(s)
When I do say "export results" as shown in the picture, I can only export surface results. I want to extract results for the whole domain as cgns files.

How can I extract results as cgns for the whole main?

cyln October 10, 2018 18:19

As I am using CFX on linux, I figured this out:


In order to extract data from the .res file, I say:
cfx5export -cgns CFD_001.res
This exports the results from the last time step into a cgns file.

However, I want to extract data from transient files. When I say:
cfx5export -cgns CFD_001/1000.trn, it says

" Unable to initialize API: invalid topology.
An error has occured in cfx5export "

Is this because trn file does not include the mesh?

cyln

AtoHM October 19, 2018 02:12

Yes probably.
There is something like a -alltimesteps flag to get each trn result.

Opaque October 20, 2018 23:25

Follow Gert-Jan'ssuggestion. Use the ANSYS CFX Solver Manager, not ANSYS CFX-Pre.

There is a separate utility for export to multiple formats. Check the documentation for details.


All times are GMT -4. The time now is 19:31.