Run-time type selection in OpenFOAM – class templates
The Run-time Type Selection (RTS) mechanism is the main building block of the flexibility provided by OpenFOAM. It is the Creational Design Pattern in OpenFOAM. Any object from a class hierarchy can be instantiated at run-time by the user, simply by providing a selection parameter in a configuration (dictionary) file. This is covered at length…