CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Coding to solve potential flow

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 31, 2007, 23:18
Default Coding to solve potential flow
Posts: n/a

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~

  Reply With Quote

Old   January 31, 2007, 23:20
Default Re: Coding to solve potential flow
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.
  Reply With Quote

Old   February 1, 2007, 16:51
Default Re: Coding to solve potential flow
Adrin Gharakhani
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

  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Potential Flow Swapnil CFX 5 February 26, 2003 08: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 13: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

All times are GMT -4. The time now is 10:46.