|
|

楼主 |
发表于 2003-6-3 23:05:28
|
显示全部楼层
贴个程序, INCOMPRESSIBLE NAVIER-STOKES EQUATION
敬请就此程序发表评论。
The code is written in Fortran. It solves Navier-Stokes equation for 2-dimensional, incompressible flows in a rectangular domain.
A finite volume staggered grid (MAC) is used for storing velocity and pressure variables.
Explicit time marching is used to advance in time. Both steady state and transient problem can be handled.
Some guide lines for running the code
The zip file contains the main program and all the accessory files.
The input data file is stored in a folder called "dat". This file can be modified to suite your requirements.
There is a file called "array_dimension.inc" in the main folder. Use this file to change the global dimension of all array variables. Make sure that the dimension of array is appropriate for the number of contol volumes.
The files for initial and boundary conditions are kept in a folder caleed "ic-and-bc". You may see two sets of initial condition and boundary condition in this folder. One corresponds to "lid driven-cavity problem" and the other corresponds to "Green-Taylor vortex". Green-Taylor vortex is an exact solution of Navier-Sokes. You may create your own file for initial and boundary conditions. Before running the code, file for initial condition must be renamed as "ic" and file for boundary condition must be renamed as "bc".
The output of the program can be found in the file called "output.dat" in the folder "dat".
敬请就此程序发表评论。 |
|