CGNS

How to annotate C++ code for automatic code documentation

In this article, we look at how we can annotate our code so it can be picked up by a documentation tool to provide automatic code documentation for us. There are good and bad ways to do this, and unfortunately, more often than not, code documentation is a dreaded task by programmers and is done …

How to annotate C++ code for automatic code documentation Read More »

How To Test A CGNS-based Mesh Reading Library Using gtest

In this article, we extend our knowledge on how to integrate gtest into our mesh reading library using the CGNS data format for structured and unstructured grids that we developed in a previous series. We will rewrite the unit tests that we have already written using our own primitive testing framework and highlight how gtest …

How To Test A CGNS-based Mesh Reading Library Using gtest Read More »

How to read a multi-block unstructured mesh from a CGNS file

In this article, we continue developing our CGNS mesh reader library and implement the unstructured mesh reading class to complement our structured mesh reading class developed in the previous article. There are a few similarities between reading a structured and unstructured grid, and where that is the case, I will go through the code a …

How to read a multi-block unstructured mesh from a CGNS file Read More »

How to read a multi-block structured mesh from a CGNS file

In this article, we extend the work we have done in the previous article, where we have set up the basic library structure of our mesh reading library and started to provide an initial implementation of the base class. Specifically, we add a class that can read a multi-block structured mesh from a CGNS file. …

How to read a multi-block structured mesh from a CGNS file Read More »

How to set up a simple CGNS-based mesh reading library

In this article, we will look at implementing a base class from which we will derive all future mesh reading classes (for structured and unstructured grids). This implementation will already contain some functionality to interact with the CGNS file and read some basic information, so we will get a feel for how to work with …

How to set up a simple CGNS-based mesh reading library Read More »

How to inspect structured and unstructured grids using CGNS

Reading a mesh from a CGNS file is pretty straightforward, but it helps to have some tools at hand to inspect CGNS files before we even start opening them, just to get a feeling for what type of information is stored and under which nodes. In this way, we know what mid-level library functions to …

How to inspect structured and unstructured grids using CGNS Read More »

What is the CGNS format and how to get started

The CGNS file format is one of the most powerful file formats there is when it comes to CFD applications and the first one each CFD developer should study in depth. It can store both structured and unstructured grids and the corresponding flow solution and has additional support to store information pertinent to your CFD …

What is the CGNS format and how to get started Read More »