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

21 comments:

  1. Hi, Mr. Ghasemi,
    I would like to have a copy of your 2D unconstructured euler code.

    My email is caplazy@me.com

    Thanks in advance.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Can I have a copy of the codes as well. My email is
    andrei.cimpoeru@hotmail.co.uk

    ReplyDelete
  4. Hello Ghasemi,

    Can I get a copy of your code? My email is:

    m979a608@ku.edu

    Thanks

    ReplyDelete
  5. Hello!

    Could i have a copy of your code?

    Here's my email:
    maxditta@gmail.com

    Thanks!

    ReplyDelete
    Replies
    1. Hi, Mr. Ghasemi,
      I would like to have a copy of your 2D unconstructured euler code.

      My email is kha_brahim@hotmail.com

      Thanks in advance.

      Delete
    2. Hi, Mr. Ghasemi,
      I would like to have a copy of your 2D unconstructured euler code.

      My email is kha_brahim@hotmail.com

      Thanks in advance.

      Delete
  6. Hi, can I have your code?
    My email is 726792163@qq.com.
    Thanks in advance.

    ReplyDelete
  7. Hi, I am an aerospace student and have just started an introduction to cfd and I would like to have a copy of the code. Also I would want to know if it would be easier to code a basic cfd solver with matlab.

    Thanks in advance

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Sorry just forgotten my email: kahin1993@hotmail.com

      Delete
    3. Yes. Always write little parts of your program in MATLAB for testing. Then if you need to run big cases then change your MATLAB code to either C or Fortran90. I sent you the code!

      Delete
  8. Hi, Mr. Ghasemi,
    May I have a copy of your 2D unconstructured euler code.

    My email is haozhu1987china@gmail.com

    Thanks

    ReplyDelete
    Replies
    1. please see https://github.com/arrgasm/UnstEuler2D

      Delete
  9. Hey,
    can I have your code
    my emailID is : jagadishbabu.iitb@gmail.com

    ReplyDelete
    Replies
    1. please see https://github.com/arrgasm/UnstEuler2D. Thanks!

      Delete