Codes |
|
 |
-
C code for computing the streamline and saving the data in a GNUPLOT format file.
Instructions on compiling the program and plotting the streamline using GNUPLOT.
Matlab code: streamline.m,
generate_grid.m,
compute_stream.m,
output_array.m.
- codes for the 1D heat conduction problem.
C code
Matlab code
solveT.m,
generate_grid.m,
set_matrix_eqn.m,
solver_tdma.m.
-
C code for homework #1 (b) and (c).
-
Matlab code for 1D conduction with zero flux on the left boundary..
- Matlab code for 1D unsteady conduction:
using Explicit FTCS scheme.
explicit.m, explicitT.m
using Implicit Crank-Nicloson scheme.
explicit.m, crank_nicT.m
-
C code for 1D unsteady conduction using explicit FTCS and implicit Crank-Niclson scheme..
-
Matlab code of iterative method (SOR solver) for 1D Dirichlet B.C. problems; and C code.
-
Matlab code of iterative method for 1D Neumann B.C. problems.
-
Matlab code of iterative method (SOR solver) for 2D Dirichlet B.C. problems.
-
Sample Matlab code and C code for Project 1 (Part 1) with Dirichlet B.C.
-
Here are the matlab codes for solving 2d unsteady conduction problem with Dirichlet boundary conditions implemented in different schemes:
I have also ported these codes into C:
-
Matlab codes for solving advection/wave problem.
-
Codes for solving 1d and 2d transport equations.
-
Codes for solving stream-vorticity formulated Navier-Stokes equation
-
An example of using the Predictor-Corrector scheme.
-
Projection method for solving Navier-Stokes equations
-
Matlab codes for Problems 2 and 3 in take-home exam.
|