|
[Sponsors] |
January 31, 2007, 22:18 |
Coding to solve potential flow
|
#1 |
Guest
Posts: n/a
|
Hi,
I have a problem on hand below: Solve the potential flow in the domain: 40 40 40 40 40 .............40 38 38 36 36 . . . 0 0 0 . . 0 . 2 0 2 0 0 0 0 0 .............0 The streamline phi satisfies laplace equation. So how to program this using Gauss-Seidel iteraion since there's some zero points (a solid boundary) inside the domain? Thanks~ L |
|
January 31, 2007, 22:20 |
Re: Coding to solve potential flow
|
#2 |
Guest
Posts: n/a
|
ooops, the domain doesn't show up. Actually it's a square domain with some solid boundary inside. For the inlet and the outlet, phi distributes linearly.
|
|
February 1, 2007, 15:51 |
Re: Coding to solve potential flow
|
#3 |
Guest
Posts: n/a
|
one easy strategy is to set the coefficient (in the matrix) corresponding to the solid points to a very large number (machine big). That's the diagonal term. This way you're solving for the "unknown" solid points and getting values that are nearly zero (machine zero). There are of course more sophisticated approaches, but try the latter first and see if it's good enough for you
Adrin |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Potential Flow | Swapnil | CFX | 5 | February 26, 2003 07:33 |
solve the compressible flow in microchannel? | sandernagoo | Main CFD Forum | 10 | July 29, 2002 09:22 |
Inviscid Drag at subsonic, subcritical Mach # | Axel Rohde | Main CFD Forum | 1 | November 19, 2001 12:19 |
Potential Flow : Laminar or Turbulent | Brindaban Ghosh | Main CFD Forum | 1 | June 24, 2000 04:02 |
Question on 3D potential flow | Adrin Gharakhani | Main CFD Forum | 13 | June 21, 1999 05:18 |