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

SP in USRSRC-CFX4

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 18, 2005, 05:54
Default SP in USRSRC-CFX4
  #1
RK
Guest
 
Posts: n/a
Hi,

In the Source representation: S= SU+(PHI*SP)

When putting variables into SP, does one need to differentiate the term with respect to the variable?

For example:

IF the source(=TERM): TERM=(CNST1*H/CNST2+H), CNST1 & CNST2=constants, H=enthalpy

If this is a negative source and needs to be placed in SP,

is it simply: SP(INODE,IPHASE)=SP(INODE,IPHASE)-(CNST1/CNST2+H)

or

does one need to dTERM/dh, and then put the solution to this into SP.

If it is the latter, could you also explain why is this so? And if it applies to SP, why does it not apply to SU?

Hope someone can shed some light on this issue...

Many thanks,

Robin
  Reply With Quote

Old   August 19, 2005, 20:04
Default Re: SP in USRSRC-CFX4
  #2
Jeff
Guest
 
Posts: n/a
No, you do not need the gradient terms in the sources.

The thing to remember is that the code multiplies your entire source in SP by the variable PHI (in your case H).

Your Source

C1*H/C2 + H

Can be factored into H * (C1/C2 + 1)

Thus SP should be set to

SP(INODE,IPHASE)= SP(INODE,IPHASE) + (C1/C2 + 1)

You put the source terms in SP if they are negative (i.e. C1 or C2 in this expression is negative, but not both). You don't actually "force" them to be negative by subtracting from SP. If (C1/C2+ 1) is positive, just multiply the whole thing by the local H(INODE,IPHASE) and add it to SU.

Hope this helps. Jeff
  Reply With Quote

Old   August 20, 2005, 05:41
Default Re: SP in USRSRC-CFX4
  #3
rk
Guest
 
Posts: n/a
Hi Jeff,

Many thanks Jeff for this and your previous replies to my requests.

Robin
  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
CFX4 dump file format Glenn Horrocks CFX 2 October 12, 2003 19:16
remote user of CFX4 John CFX 5 September 7, 2003 18:20
Grid generation for conical nose shpe in CFX4 zahid CFX 8 June 2, 2003 21:51
Unigraphics -> CFX4 Build Vincent CFX 1 February 11, 2003 16:04
CFX4 Validation Glenn Horrocks CFX 0 January 30, 2001 22:56


All times are GMT -4. The time now is 07:51.