exsp4e/exercice_3dac48cdec0b5master
exercice_3
README.md
Readme exercice 3: code created by Marti Bosch (marti.bosch@epfl.ch) and Marc Schwaerzel (marc.schwaerzel@epfl.ch)
Exercise 1
In progress: The particle objects are organised in the folowing way: the MaterialPoint, PingPongBall and Planet object inherit from the Particle class. Their respective factories inherit from the PatriclesFactoryInterface. And the different tests inherit from the Test class. The different compute inherit from the mother Compute. In our exercice, we will use the MaterialPoint object that inherits from Particle and will use the ComputeTemperature that inherits from compute. We will also use the Matrix and the FFT modules in order to compute our propagation of the heat.
- Exercise 2
- Exercise 3
I added the compute frequencies as I understood it from the internet, examples and in particuar the numpy.fft.fftfreq
Exercise 4
Run the code
To run the code follow the instructions:
- create a new directory in the exercice_3 directory and go into that folder:
$ mkdir build $ cd build
- check wether your paths are set correctly
$ ccmake ../
- compile the code:
$ cmake ../ $ make
- run the code with following arguments: -..:
$ ./src/particle inputs
Remarks for Marti:
I am not sure about the implementation of the (qx2 + qy2) --> it is in the last function of fft.hh. the function is called sth like computeFrequenciesqx2qy2. I did something similar to the last box formula Ln[4] of the python explanations guillaume gave us today (pdf you sent me). Have fun.... =S