CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Best format for cell-centered code (https://www.cfd-online.com/Forums/main/148188-best-format-cell-centered-code.html)

Joachim February 5, 2015 23:26

Best format for cell-centered code
 
Hey everyone!

I have a cell-centered code, and I was wondering which format to use for my solution files. Here is what I have tried so far:

- Tecplot ASCII: worked just fine but generates large files + slow.
- binary plot3d: fast but I needed to convert my solution from cell-centered to node-centered and lost accuracy at the boundaries when reading the file to continue the simulation.

Is there a way to generate a cell-centered binary file that could be easily read by Tecplot?
Thank you very much!

Joachim

scott_rumage February 6, 2015 18:52

If you are finding that Tecplot ASCII is too big and slow, you can easily convert to a Tecplot binary via a few options:
- Run preplot.exe (found on your computer in the Tecplot folder and here: http://www.tecplot.com/downloads/tecio-library/) from the command line prompt which converts Tecplot ASCII to binary.
- Load the ASCII file in to Tecplot and then write it out as a binary.
- Use the Tecplot TecIO library to directly write Tecplot binary from your code.The TecIO library is also located on the page linked above.
Let me know if you need more details.

Scott

Joachim February 7, 2015 08:52

Thank you Scott! However, I would like to have a "simple" solution, exporting the file directly from my fortran code. I guess I could do that with tecplotIO, but I am afraid that my code will become too dependent on Tecplot at that point. What happens when I graduate and don't have access to Tecplot anymore for example? ... :/


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