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

Different Terms in Different UDS

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 3, 2006, 14:46
Default Different Terms in Different UDS
  #1
Carlos V.
Guest
 
Posts: n/a
Hi Everybody

I'm programing two UDS (User - Defined Scalars) and I would like to know if it is possible to have two different Unsteady Terms as well as two different Advective and Diffusivity terms (one for each scalar)and how can I specify them, for the right scalar.

Really need help. With my best regards:

Carlos V.
  Reply With Quote

Old   April 4, 2006, 05:50
Default Re: Different Terms in Different UDS
  #2
Aidan
Guest
 
Posts: n/a
In those macros FLUENT passes a variable, i, to your udf. This integer represents the uds equation. The first uds is i = 0 and the second is i = 1 and so on. Include a logical expression for i in your marco to define the correct expression for each uds.

for example

if (i == 0)

uds-0 expresseion

else if (i == 1)

uds-1 expression
  Reply With Quote

Old   April 4, 2006, 07:19
Default Re: Different Terms in Different UDS
  #3
Carlos V.
Guest
 
Posts: n/a
Really must thank you Aidan, I think I got it!

With my best regards:

Carlos V.

  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
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 09:53
Question in definition of terms in solve titio OpenFOAM Running, Solving & CFD 0 March 19, 2009 17:02
Multiple species and UDS source terms Ale FLUENT 2 September 9, 2002 03:45
uds and source terms problem ~~?? kevin FLUENT 0 November 8, 2001 23:05
K-Epsilon model? Brindaban Ghosh Main CFD Forum 2 June 24, 2000 04:22


All times are GMT -4. The time now is 06:29.