|
[Sponsors] |
January 11, 2010, 13:00 |
Question about UDS equations
|
#1 |
Member
Join Date: Apr 2009
Posts: 78
Rep Power: 17 |
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. |
|
January 11, 2010, 14:04 |
|
#2 |
Member
Join Date: Apr 2009
Posts: 78
Rep Power: 17 |
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...) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Guide: Writing Equations in LaTeX on the CFD Online Forums | pete | Site Help, Feedback & Discussions | 27 | May 19, 2022 04:19 |
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 |
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 |