|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 207
Rep Power: 17 ![]() |
I was working with a Fluent udf that involved assigning the flow primitive, u-velocity, to a uds.
C_UDSI(c,t,0)=C_U(c,t) However, when I plot the user-defined scalar within Fluent, the value is not close to the theoretical value for u-velocity. Additionally, the plot of of the uds looks does not match the plot of X-velocity. Has anyone encountered this problem before? I do not want to continue writing my udf if the assignments to user-defined scalars may not be accurate. I hooked the udf to a simple test case of couette flow. The visous flow is between a stationary bottom plate and a top plate moving the x-direction at 1 m/s. The distance between the plates is 0.001 meters. Taking a Line Rake of points along the midline of the geometry, X-velocity ranges from 0 at the bottom stationary plate to 1 at the top plate--this is in agreement with theory. User-defined scalar 0, however, ranges from 0.4491 at the bottom plate to 0.5168 at the top plate? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 16 ![]() |
Hello Troy
be aware that if you define a UDS Fluent will solve a transport equation for this scalar. Therefore C_UDSI(c,t,0)=C_U(c,t) is only true at the moment this assignment is executed in your udf (which one do you use?) but values will be updated every iteration/timestep performed. cheers |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF in Fluent | Andrew | Fluent UDF and Scheme Programming | 5 | March 7, 2016 03:38 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 01:29 |
UDF velocity and temperature | Raj | FLUENT | 3 | February 1, 2009 18:29 |
Pb with simple Fluent UDF example for inlet | francois | FLUENT | 0 | October 9, 2008 10:34 |
Urgent! Help on UDF to set inlet velocity | Ray Hong | FLUENT | 4 | December 30, 2005 12:32 |