CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   1D advection-diffusion--need to benchmark my code; any suggestions? (https://www.cfd-online.com/Forums/main/73968-1d-advection-diffusion-need-benchmark-my-code-any-suggestions.html)

bzz77 March 21, 2010 05:40

1D advection-diffusion--need to benchmark 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.

CfdLunak March 23, 2010 08:19

Hello,

as a first step you can set diffusion coefficient zero-your initial condition should move the prescribed velocity unchanged.

Lunak


All times are GMT -4. The time now is 19:17.