ArticleslgStudy

computer science

CGNS

CGNS is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand CGNS rather than just read about it. In short: CGNS stands for CFD General Notation System. It is a general, portable, and extensible standard for the storage and retrieval of CFD analysis data.

Key takeaways

  • CGNS belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect CGNS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CGNS from memory before moving on to harder problems.

Reference excerpt

CGNS stands for CFD General Notation System. It is a general, portable, and extensible standard for the storage and retrieval of CFD analysis data. It consists of a collection of conventions, and free and open software implementing those conventions. It is self-descriptive, cross-platform also termed platform or machine independent, documented, and administered by an international steering committee. It is also an American Institute of Aeronautics and Astronautics (AIAA) recommended practice. The CGNS project originated in 1994 as a joint effort between Boeing and NASA, and has since grown to include many other contributing organizations worldwide. In 1999, control of CGNS was completely transferred to a public forum known as the CGNS Steering Committee Archived 2007-06-24 at the Wayback Machine. This committee is made up of international representatives from government and private industry. The CGNS system consists of two parts: (1) a standard format (known as Standard Interface Data Structure, or SIDS) for recording the data, and (2) software that reads, writes, and modifies data in that format. The format is a conceptual entity established by the documentation; the software is a physical product supplied to enable developers to access and produce data recorded in that format. The CGNS system is designed to facilitate the exchange of data between sites and applications, and to help stabilize the archiving of aerodynamic data. The data are stored in a compact, binary format and are accessible through a complete and extensible library of functions. The application programming interface (API) is cross-platform and can be easily implemented in C, C++, Fortran and Fortran 90 applications. A MEX interface mexCGNS also exists for calling the CGNS API in high-level programming languages MATLAB and GNU Octave. Object oriented interface CGNS++ and Python module pyCGNS exist. The principal target of CGNS is data normally associated with compressible viscous flow (i.e., the Navier-Stokes equations), but the standard is also applicable to subclasses such as Euler and potential flows. The CGNS standard includes the following types of data.

Structured, unstructured, and hybrid grids Flow solution data, which may be nodal, cell-centered, face-centered, or edge-centered Multizone interface connectivity, both abutting and overset Boundary conditions Flow equation descriptions, including the equation of state, viscosity and thermal conductivity models, turbulence models, multi-species chemistry models, and electromagnetics Time-dependent flow, including moving and deforming grids Dimensional units and nondimensionalization information Reference states Convergence history Association to CAD geometry definitions User-defined data Much of the standard and the software is applicable to computational field physics in general. Disciplines other than fluid dynamics would need to augment the data definitions and storage conventions, but the fundamental database software, which provides platform independence, is not specific to fluid dynamics. CGNS is self-describing, allowing an application to interpret the structure and contents of a file without any outside information. CGNS can make use of either two different low-level data formats:

an internally developed and supported method called Advanced Data Format (ADF), based on a common file format system previously in use at McDonnell Douglas HDF5, a widely used hierarchical data format

Tools and Guides In addition to the CGNS library itself, the following tools and guides are available from Github:

CGNSTools - Includes ADFVIEWER, a browser and editor for CGNS files Users Guide code - small practical example CGNS programs written in both Fortran and C F77 Examples - example computer programs written in Fortran that demonstrate all CGNS functionality HDFql enables users to manage CGNS/HDF5 files through a high-level language (similar to SQL) in C, C++, Java, Python, C#, Fortran, R, and MATLAB.

See also Common Data Format (CDF) EAS3 (Ein-Ausgabe-System) FITS (Flexible Image Transport System) GRIB (GRIdded Binary) Hierarchical Data Format (HDF) List of computational fluid dynamics software NetCDF (Network Common Data Form) Tecplot binary files XMDF (eXtensible Model Data Format)

External links CGNS home page CGNS Mid Level Library MEX interface of CGNS for MATLAB and Octave pyCGNS CGNS 4.5 Release notes

Worked examples

Example 1 — a first encounter with CGNS

Start with the simplest possible case. Write down what CGNS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to CGNS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about CGNS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of CGNS

In research
CGNS appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses CGNS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
CGNS is common in secondary-school and first-year university syllabi. It links to neighbouring topics C (programming language) libraries, Computational fluid dynamics, Computer file formats, so understanding it makes those chapters shorter.
In everyday life
Look for CGNS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “CGNS” →

How to study CGNS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CGNS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain CGNS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CGNS in simple terms?

CGNS stands for CFD General Notation System. It is a general, portable, and extensible standard for the storage and retrieval of CFD analysis data.

Why does CGNS matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study CGNS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on CGNS.

Tags

  • C (programming language) libraries
  • Computational fluid dynamics
  • Computer file formats

Keep exploring