polymorphism

How to use mocking in CFD test code using gtest and gmock

In this article, we look at the last remaining topic in our series on software testing; Mocking. This aspect plays a a very big role in the testing of web and mobile applications, but not so much for console applications such as CFD solvers. However, there are specific use cases where mocking can help us …

How to use mocking in CFD test code using gtest and gmock Read More »

How to write a CFD library: The Conjugate Gradient class

When it comes to Computational Fluid Dynamics (CFD) applications, the Conjugate Gradient (CG) method is one of the more used algorithms to solve the linear system of equations . It offers fast convergence, low storage requirements, and is relatively easy to implement. In this week’s article, we’ll look at how we can implement this algorithm …

How to write a CFD library: The Conjugate Gradient class Read More »

How to handle inheritance and class hierarchies in C++

Another cornerstone of object-orientated programming is inheritance, which is the ability to define parent-child relations between classes. Inheritance allows child classes to derive functions and variables from the parent class and so we are able to group together classes that naturally fit together under a common base class. For example, the base class RANS may …

How to handle inheritance and class hierarchies in C++ Read More »