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

Question about UDS equations

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 11, 2010, 12:00
Default Question about UDS equations
  #1
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 7
tstorm is on a distinguished road
Hi,

I have a user-defined v2-f turbulence model that uses 4 transport equations, for k, e, v2, and f. For that model, I have defined source equations using DEFINE_SOURCE, and I have turned on their respective equations in the GUI (SOLVE - CONTROLS - SOLUTION.)

I have another model that uses user-defined Reynolds stresses. Those are stored as UDSs, but there are no source equations. Instead, they're defined inside of a DEFINE_ADJUST macro.

My question is this: do I have to turn on the equations in the SOLVE - CONTROLS SOLUTION window for UDS 4, 5, 6, and 7 (the user-defined Reynolds stresses)? I'm thinking that since there's no source equation for them, there's no need to turn them on in the GUI.

Thanks in advance.
tstorm is offline   Reply With Quote

Old   January 11, 2010, 13:04
Default
  #2
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 7
tstorm is on a distinguished road
I guess I should post an example.

Here's how the k equation is defined:

DEFINE_SOURCE(k_source, c, t, dS, eqn)
{
real source;

dS[eqn]=- C_R(c,t)*C_R(c,t)*C_MU*C_UDSI(c,t,V2)/C_UDMI(c,t,0);
source=C_UDMI(c,t,3) - C_R(c,t)*C_R(c,t)*C_MU*C_UDSI(c,t,V2)*C_UDSI(c,t,K )/C_UDMI(c,t,0);

return source;
}

And here's how one of the Reynolds stresses is defined:

DEFINE_ADJUST(ke_adjust,domain)
{
(...other code...)
C_UDSI(c,t,R_11)= -2.0*cmu1*C_UDSI(c,t,V2)*T1*S11 + 2./3.*C_UDSI(c,t,K)
-V*C_UDSI(c,t,K)*SQR(T)*
( cmu2*(S11*W11+S12*W21+S13*W31+S11*W11+S12*W21+S13* W31) - cmu3*(S11*S11+S12*S12+S13*S13-1./3.*S) );
(...other code...)
}
tstorm is offline   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
Guide: Writing Equations in LaTeX on the CFD Online Forums pete Site Help, Feedback & Discussions 12 May 6, 2014 21:22
Maths problem when deriving conservation of energy equations. Demonwolf Main CFD Forum 1 June 15, 2009 14:21
UDS Flux Question - HARD! Greg Perkins FLUENT 1 March 14, 2002 21:54
Pressureless Euler-Poisson Equations Mikael Tushensson Main CFD Forum 0 April 12, 2001 20:18
question K.L.Huang CD-adapco 1 March 29, 2000 03:57


All times are GMT -4. The time now is 11:14.