|
[Sponsors] |
August 30, 2021, 04:21 |
Looking for better CGNS examples
|
#1 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,406
Rep Power: 47 |
Anyone has or knows where to find some better examples how to write files using CGNS library? Preferably Fortran.
I got some of the examples from the documentation to work. Problem is: they are weird af, and leave out crucial bits of information. An example: The only example for a transient write saves all data and metadata in memory, and then writes it all at the end. That's not what I would consider a practical approach, and I have trouble rewriting the example to continuously add to the database each time step. And thus have a readable file after each time step. The documentation and examples just leave too much to the imagination. Another example: for writing a 3D vector result like velocity, I figured out you can write the 3 components individually, naming them e.g. VeloX, VeloY and VeloZ respectively. Paraview correctly parses that into a vector when reading the file, but I don't know if that's really how it should be done. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues with CGNS formatted mesh in SU2 | jlwhelan28 | SU2 | 5 | February 13, 2017 11:48 |
[Gmsh] Cgns support for gmsh | robyTKD | OpenFOAM Meshing & Mesh Conversion | 1 | July 13, 2016 11:27 |
On compiling examples of CGNS | nba1942 | Main CFD Forum | 4 | October 9, 2015 03:27 |
writing link between two CGNS files | t.teschner | Main CFD Forum | 1 | February 4, 2014 10:26 |
parallel support with CGNS format not yet implemented | kirkrich | SU2 | 3 | January 18, 2013 15:39 |