CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDS source term problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2011, 09:15
Default UDS source term problem
  #1
New Member
 
tom pan
Join Date: Nov 2010
Posts: 14
Rep Power: 16
tompa is on a distinguished road
i have two uds for scalar n0 and n1

now i want to add a source term "gradient (gradient n1)" in n0's equation

but i only find that gradient n1=C_UDSI_G(c,t,1)

how about "gradient (gradient n1)" ?
tompa is offline   Reply With Quote

Old   January 24, 2011, 22:48
Default
  #2
Senior Member
 
Join Date: Feb 2010
Posts: 164
Rep Power: 17
gearboy is on a distinguished road
Quote:
Originally Posted by tompa View Post
i have two uds for scalar n0 and n1

now i want to add a source term "gradient (gradient n1)" in n0's equation

but i only find that gradient n1=C_UDSI_G(c,t,1)

how about "gradient (gradient n1)" ?
Set another additional UDS2 and let UDS2=C_UDSI_G(c,t,1), Then C_UDSI_G(c,t,2) is what you want.
gearboy is offline   Reply With Quote

Old   January 26, 2011, 03:22
Default
  #3
New Member
 
tom pan
Join Date: Nov 2010
Posts: 14
Rep Power: 16
tompa is on a distinguished road
thanks for your anwser. There's another quastion about the error about type of variables.

C_UDSI(c,t,2) can't be equal to C_UDSI_G(c,t,1) seems like

that C_UDSI(c,t,2) is a scalar but C_UDSI_G(c,t,1) is a vector?
tompa is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problematic source term in UDS ak6g08 Fluent UDF and Scheme Programming 6 February 10, 2015 01:19
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
Problem with source term in the calculation domain galaad OpenFOAM Running, Solving & CFD 0 November 28, 2005 10:43
UDS n It's source term Umesh FLUENT 3 December 17, 2003 17:31


All times are GMT -4. The time now is 17:09.