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

Question about UDS equations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2010, 12:51
Default Question about UDS equations
  #1
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 17
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, 14:02
Default
  #2
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 17
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


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
Maths problem when deriving conservation of energy equations. Demonwolf Main CFD Forum 1 June 15, 2009 15:21
UDS Flux Question - HARD! Greg Perkins FLUENT 1 March 14, 2002 22:54
ODD: no UDS flux across interior boundary Bob FLUENT 1 February 25, 2002 20:15
Pressureless Euler-Poisson Equations Mikael Tushensson Main CFD Forum 0 April 12, 2001 21:18
question K.L.Huang Siemens 1 March 29, 2000 05:57


All times are GMT -4. The time now is 16:46.