nocs

NOCS (Not Only Colliding Spheres) exact 2D gas dynamics framework

View on GitHub

Class engine

Overview

Class engine represents the core of the entire simulation and takes care of the actual execution of the processes simulated. By storing the objects of the simulation and by building a queue of event objects, the simulation is executed in all its parts. It also provides a subscription system that allows the user to “subscribe” to the desired events of the simulation, in order to gather only the required data without wasting computational time.

Public nested classes

class tag

Class tag is what allows to identify any object of the simulation with a series of system-defined and user-defined tags. By including this class inside the implementation of an object like molecule, it is possible to distinguish any typology of molecule with any desired tag.

Constructor

Getters

Operators

Private methods

Private operators

Incremental and decremental operators are implemented in order to quickly manage the _references variable, which keeps track of the number of references to the object inside of the event system.

Interface

Public members

Constructors

Destructor

Getters

Setters

Methods

Private methods