CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFX

SU & SP: CFX 4.4 HELP!!!

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 19, 2005, 21:19
Default SU & SP: CFX 4.4 HELP!!!
  #1
Robin K
Guest
 
Posts: n/a
Hi,

I want to put source:

Source=R3-R2-R1 where R1, R2 and R3 represent different expressions. R1=+ive, R2=-ive, R3=+ive

At the moment, I am carrying out the following operation:

SP(INODE,IPHASE)=SP(INODE,IPHASE)+R2*VOL(INODE)

SU(INODE,IPHASE)=SU(INODE,IPHASE)+((R3-R1))*VOL(INODE).

This is causing a divergence.

Does anyone have any other way of doing it!...I hope so...?

Thanks in Advance,

Robin K
  Reply With Quote

Old   June 27, 2005, 21:30
Default Re: SU & SP: CFX 4.4 HELP!!!
  #2
Jeff
Guest
 
Posts: n/a
Robin,

The form of a source term, when solving for variable phi is as follows:

Source = SU + SP * phi

Since in your source term, you don't have any variables that are a function of the solved variable, phi, SP should be zero.

SU(INODE,IPHASE) = SU(INODE,IPHASE) + R3 - R2 - R1 SP(INODE,IPHASE) = SP(INODE,IPHASE) + 0.0

Use this if your source is mostly positive.

If (R3-R2-R1) is very negative, you may want to put this in the SP term by first dividing by phi (since the code will multiply it by phi later). This would be:

SU(INODE,IPHASE) = SU(INODE,IPHASE) + 0.0 SP(INODE,IPHASE) = SP(INODE,IPHASE) + (R3-R2-R1)/phi(INODE,IPHASE)

This will make the matrix more diagonally dominant when SP gets carried to the other side and incorporated into the matrix diagonal.

Jeff
  Reply With Quote

Reply

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
CFX 4.4: NAG Library Link to CFX subroutine... Robin K CFX 2 September 21, 2005 10:40
Please compare between CFX 5.5 and CFX 4.4 p CFX 2 April 8, 2002 16:43
Tecplot & CFX 4.4 S. H. Kim CFX 3 December 20, 2001 06:07
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 04:07
Programming turbulence models (CFX 4.4) Hamsdi CFX 2 October 12, 2001 01:14


All times are GMT -4. The time now is 05:00.