This repository presents a real-time CFD solver based on a "rough" representation of conservation equations. The solver is implemented in C/C++ for real-time purpose and wxWidget for the user interface and graphical renderings. It supports a wide range of features:
- 2D problems (3D in progress)
- real-time flow patern variation
- variety of obstacles (in progress)
- drag-and-drop obstacles
- postprocessing using: scalars (pressure, velocity, tracer), streamlines and velocity vectors
First, make sure the following libraries are installed. Mainly
- wxWidgets
- OpenMP
git clone https://github.com/skhelladi/wxRTCFD_Code.git
cd wxRTCFD_Code
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
git clone https://github.com/skhelladi/wxRTCFD_Code.git
cd wxRTCFD_Code
codeblocks wxRTCFD_Code.cbp
then build.
git clone https://github.com/skhelladi/wxRTCFD_Code.git
cd wxRTCFD_Code
code .
then build.
Execute wxRTCFD_Code binary file in build directory.
This project is licensed under the GPL-3 license.
Unless you explicitly state otherwise, any contribution intentionally submitted by you for inclusion in this project shall be licensed as above, without any additional terms or conditions.
- Sofiane KHELLADI
This code is based on the theoretical developments and javascript code presented by Matthias Müller in "Ten Minute Physics" channel.
Link: https://matthias-research.github.io/pages/tenMinutePhysics/17-fluidSim.pdf
and the Qt version of the same code developed by Sofiane KHELLADI