Skip to content

iCFD/Euler2D-matlab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo holds a 2D Euler solver for unstructured grids. In "report.pdf", a small report discusses the used methodology as well as the results for two test cases. For a quick view, one can look at the evolution of the solution of the forward step case, in "ForwardStep.avi". The two testcases are Sod's shocktube and a forward step at Mach 3. For Sod's shocktube, both an unstructured mesh case and a structured mesh case are available. The cases can be found in the "test" folder.

To run a new simulation, one must create a folder with the following 2 inputs: a mesh file that is created in gmsh, and exported into a MATLAB file format (.m). In order to do this, in gmsh go to Help -> Current Options and Workspace -> Mesh.Format, and set the value to 50. It is important to note that currently the solver can only support fully triangular or fully quadrangular meshes. The second file that is necessary is the input file, "input.m". In here, all relevant inputs must be given, such as the initial conditions, the location of the mesh file, and initial time step among others. For an example, see the two provided test cases. Finally, to run a case, go to "main.m" and set the correct paths for "runFolder" and "runFile".

The results are saved in vtk format, and can be opened and post-processed with ParaView.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 99.8%
  • GLSL 0.2%