This is a code for solving partial differential equations of the form resembling Navier-Stokes equations.
Most of the details of the numerical calculations in this solver are presented in our paper:
Computers & Fluids, Volume 244, 15 August 2022, 105570
If you would like to use the code, you can follow these steps:
- Clone the GitHub repository to your local computer:
git clone --depth=1 https://github.com/heySourabh/CFDSolver.git
- Download OpenJDK20 (or latest JDK) for your operating system (From Oracle or any other vendors).
- (Optional but helpful) Install IntelliJ IDEA: The "Community Edition" is free and open-source.
- Open the project in IntelliJ IDEA (all necessary dependencies will be automatically downloaded during the first run using maven)
- Right-click and Run the test problems named
test/main/Solver**.java
- Duplicate the Solver in
test/main/
& modify the code as needed for your application. - To add new physics, have a look at
src/main/physics/goveqn/GoverningEquations.java
.
If some step is missing, or for collaboration, please contact me.
Have a look at the Wiki Page for further details.
Sourabh Bhat (heySourabh@gmail.com)
Fighter aircraft in wind-tunnel (without propulsion) at supersonic speed (Mach 2). Solved using three-dimensional unstructured mesh generated using gmsh.
Converged to 10-3 residual in 1 min, 35 sec
with second-order spatial accuracy
(with ~80,000 tetrahedral cells) on Dell Precision 5570 laptop.
Supersonic flow at Mach 2 over diamond-shaped airfoil, with mesh adaptation (using MMG)
Test case reference: https://doi.org/10.1016/j.jcp.2004.12.007 Geometry reference: https://www.spheric-sph.org/tests/test-02