Docsity

Computational Fluid Dynamics Assignment: Prototypical 2D Flows using GDN Algorithm - Prof., Assignments of Mathematics

Toggle sidebar
bg1
Math/Physics 365 Computational Fluid Dynamics
Prototypical 2D Flows by the GDN1Algorithm
Programming Assignment 4
(Spring 2000–Pruett/Sochacki)
DATE ASSIGNED: Friday, 25 Feb., 2000 DATE DUE: TBD
BACKGROUND: We have spent several weeks studying in detail the GDN algorithm of our primary
text. Although the algorithm is of first-order accuracy in time and not necessarily designed for efficiency,
it is extremely robust and applicable to an amazing variety of spatially 2D flows including free-boundary
flows. It is now time to use this versatile tool to study some prototypical incompressible flows. The
following problems have simple boundary conditions and are often used as test cases to verify CFD codes:
1) the driven cavity, 2) the Rayleigh-Benard problem, and 3) the backward facing step. Moreover, each is
interesting in its own right. Each of student is to choose one test case for in-depth exploration.
SETUP:
1. Copy the source code (all files in the directory) to your UNIX account. You may choose either
the original c version or a Fortran 90 translation, which are located, respectively, in the following
directories:
∼dpruett/cfd/incompressible/gdn/c/source or ∼dpruett/cfd/incompressible/gdn/f90/source
To compile, type make. The executable file in either case is named run.
2. Copy the appropriate data (parameter) file (dcavity.par,rayleigh.par, or backstep.par) to the same
directory where the executable file resides. Data reside in the following directories, respectively:
∼dpruett/cfd/incompressible/gdn/c/data or ∼dpruett/cfd/incompressible/gdn/f90/run
3. To run the code, type, for example run dcavity.par for the c code or run <dcavity.par for the f90
code.
ASSIGNMENT:
1. Run the program with the pre-established parameters.
2. Make contour plots of streamfunction and vorticity at initial, mid, and ending times of the simula-
tion. If possible, animate.
3. Experiment with the parameters τ,γ,m,n. Verify that the solution blows up when the stability
limit is exceeded. Try to get as accurate a solution as possible given the computational resources
available.
4. Present well-refined results to the class for two significantly different values of Reynolds number
Re. (The presentations will be held in B132 so that you may use visualization tools.) In 15-20
minutes, address the boundary conditions of your particular problem, its significance to the fluid
dynamics community, the important parameters of the setup, and describe the results qualitatively.
For example, does the solution evolve toward a steady state? How do results vary with Re? Have
you learned anything particularly noteworthy in the process?
1Griebel, Dornseifer, and Neunhoeffer, Numerical Simulation in Fluid Dynamics, SIAM, 1998

Partial preview of the text

Download Computational Fluid Dynamics Assignment: Prototypical 2D Flows using GDN Algorithm - Prof. and more Assignments Mathematics in PDF only on Docsity!

Math/Physics 365 Computational Fluid Dynamics

Prototypical 2D Flows by the GDN^1 Algorithm

Programming Assignment 4

(Spring 2000–Pruett/Sochacki)

DATE ASSIGNED: Friday, 25 Feb., 2000 DATE DUE: TBD

BACKGROUND: We have spent several weeks studying in detail the GDN algorithm of our primary text. Although the algorithm is of first-order accuracy in time and not necessarily designed for efficiency, it is extremely robust and applicable to an amazing variety of spatially 2D flows including free-boundary flows. It is now time to use this versatile tool to study some prototypical incompressible flows. The following problems have simple boundary conditions and are often used as test cases to verify CFD codes:

  1. the driven cavity, 2) the Rayleigh-Benard problem, and 3) the backward facing step. Moreover, each is interesting in its own right. Each of student is to choose one test case for in-depth exploration.

SETUP:

  1. Copy the source code (all files in the directory) to your UNIX account. You may choose either the original c version or a Fortran 90 translation, which are located, respectively, in the following directories:

∼ dpruett/cfd/incompressible/gdn/c/source or ∼ dpruett/cfd/incompressible/gdn/f90/source

To compile, type make. The executable file in either case is named run.

  1. Copy the appropriate data (parameter) file ( dcavity.par , rayleigh.par , or backstep.par ) to the same directory where the executable file resides. Data reside in the following directories, respectively:

∼ dpruett/cfd/incompressible/gdn/c/data or ∼ dpruett/cfd/incompressible/gdn/f90/run

  1. To run the code, type, for example run dcavity.par for the c code or run < dcavity.par for the f code.

ASSIGNMENT:

  1. Run the program with the pre-established parameters.
  2. Make contour plots of streamfunction and vorticity at initial, mid, and ending times of the simula- tion. If possible, animate.
  3. Experiment with the parameters τ, γ, m , n. Verify that the solution blows up when the stability limit is exceeded. Try to get as accurate a solution as possible given the computational resources available.
  4. Present well-refined results to the class for two significantly different values of Reynolds number Re. (The presentations will be held in B132 so that you may use visualization tools.) In 15- minutes, address the boundary conditions of your particular problem, its significance to the fluid dynamics community, the important parameters of the setup, and describe the results qualitatively. For example, does the solution evolve toward a steady state? How do results vary with Re? Have you learned anything particularly noteworthy in the process? (^1) Griebel, Dornseifer, and Neunhoeffer, Numerical Simulation in Fluid Dynamics , SIAM, 1998