(adsbygoogle = window.adsbygoogle || []).push({}); 1D advection-diffusion--need to check my code; any suggestions?

Hi everyone:

I am teaching myself transport/programming, and have created a simple program for 1-D advection-diffusion (constant velocity, diffusion coefficient, central differencing, Crank-Nicolson).

I would like to check that my code is working properly and would appreciate any advice about how to go about this. I have not been successful on Google at finding code that others have written... If anyone can direct me or provide advice about getting an analytical solution, I would be very grateful. An EXCEL-based spreadsheet or a Matlab or a c++ implementation would be useful; I am not a Fortran or C user.

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# 1D advection-diffusion-need to check my code; any suggestions?

Loading...

Similar Threads - advection diffusion need | Date |
---|---|

Advection equation stability for explicit scheme | Aug 25, 2015 |

2D Stationary advection-diffusion eq. as a BVP | Feb 20, 2015 |

Advection equation and Crank-Nicolson | May 14, 2011 |

Is there a general method for solving advection-diffusion equations? | Apr 22, 2011 |

Exact solution to advection equation in spherical coordinates | Sep 23, 2010 |

**Physics Forums - The Fusion of Science and Community**