This is the final project of a programming course at MIPT.
The aim of the project: to simulate the process of snowflake formation.
0. Requirements:
Our project requires VTK to make snapshots.
You can find installation instructions for Linux and for Windows.
Besides, we used ParaView to watch snapshots.
You can install it from offisial website or to use your package manager (for Linux).
1. Download the repository:
git clone https://github.com/GolAnd071/macroproject_4sem
2. Build the project:
mkdir build
cd build
cmake ..
make
You may use CMake for Windows to configure project for Visual Studio and then build it from IDE.
3. Run the executable with:
./snowflake <number_of_iterations>
snowflake.exe <number_of_iterations>
4. View generated snapshots:
To do this follow the instruction below:
1) Import crystal-step-_.vtu
into ParaView
2) Apply filter "Glyph"
3) Set "Sphere" glyph type
4) Set glyph mode to "All points"
5) Set appropriate scale (e.g. 0.5)
6) Set "state" as scale array if you want to view only frozen nodes
7) Set coloring array to view the distribution of concentration or tempurature
Finally it should look like this: