Showing posts with label Implicit Solvers. Show all posts
Showing posts with label Implicit Solvers. Show all posts

Wednesday, May 2, 2012

Completely Validated Unstructured Two-Dimensional Euler Solver Written in C

Here is my implementation of Van-Leer fluxes (and Jacobians) in the following C code. It has the following functionalities:
1- Has a special python script for plotting contours on unstructured grids!!! I wrote this Python script to get rid of third party packages like Tecplot and Fieldview. I can plot any contour using Python script right away in my C-code without calling external program.
2- Solve two-dimensional Euler equations with first-order and second-order spatial accuracy.
3- Implements Van-Leer fluxes and Jacobians. (ANALYTICAL Jacobians)
4- Has built-in explicit and implicit time-marching schemes.
5- Reads arbitrary unstructured grid in ".mesh" format.
6- Has a library for verification and validation using method of manufacturing solutions.
Below are some results for NACA0012 airfoil
   Fig. 1- Mach = .8 angle of attack is 1.25 degrees (second-order)
Fig. 2- Mach = .8 angle of attack is 1.25 degrees (first-order)
Fig. 3- Mach = 1.2 angle of attack is 0.0 degrees (first-order)
Fig. 4- Mach =  results from method of manufacturing solution. these contours are compared to exact solution and they are same contours.

To download my code please click on the following link:
please put your email in the comments and I'll send you one copy of the source code.
UPDATE FEB 1, 2016 : The code is published in https://github.com/arrgasm/UnstEuler2D