R9482/Homework42337dafcbd1bmaster
README.md
SP4E - Homework 4
General Info
This file provides a brief documentation and information related to the fourth (last) Homework of the course "Scientific Programming for Engineers", fall 2019.
This homework is done by O. Ashtari and A. Sieber.
Last update: 15.01.2020
Project Description
Executable Files
Comment on how createSimulation function is overloaded
To comment on this function overload, let's first discuss what is the role of createComputes in the whole code. In the ParticlesFactoryInterface class, createComputes is defined as a function which is to be defined later, if needed. In the constructor of MaterialPointsFactory, createComputes is defined to be the default function (i.e. to be createDefaultComputes.) In the default function, ComputeTemperature is added to the system evolution object. Similarly in the PlanetsFactory where createComputes is defined to be createDefaultComputes in which verlet is added to the system evolution object.