# Coding to solve potential flow

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

 January 31, 2007, 23:18 Coding to solve potential flow #1 Lynette 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, 23:20 Re: Coding to solve potential flow #2 Lynette 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, 16:51 Re: Coding to solve potential flow #3 Adrin Gharakhani 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Swapnil CFX 5 February 26, 2003 08:33 sandernagoo Main CFD Forum 10 July 29, 2002 09:22 Axel Rohde Main CFD Forum 1 November 19, 2001 13:19 Brindaban Ghosh Main CFD Forum 1 June 24, 2000 04:02 Adrin Gharakhani Main CFD Forum 13 June 21, 1999 05:18

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