Skip to content

heySourabh/PracticeCodeForStudents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PracticeCodeForStudents

Some code for students to experiment with, and program the solvers taught in the class.

The student exercises are written as comments: // TODO: Exercise for students ... in:

  1. FluxCalculator.c
  2. SolutionReconstructor.c

To understand the code start by looking at the algorithm (in comments) written in main.c file.

This folder contains a Makefile, so running make at the command line will compile the code. If you do not have make-tools installed, then you can run the following command:

gcc -Wall ./src/*.c -I./include -lm -o output.exe

I have tested the code only on Ubuntu 14.04 and Ubuntu 16.04. Nevertheless, on other distributions of Linux it should have no problems.

For Windows using Visual Studio will most probably work, as the code uses only standard libraries.

Here is a plot of a solution generated by the code (the plotting program is included):

Plot

About

Some CFD code for students to practice on

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published