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

Different behavior using UDF vs constant value

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2015, 12:01
Default Different behavior using UDF vs constant value
  #1
Member
 
Nick
Join Date: Feb 2012
Posts: 33
Rep Power: 14
valahian1 is on a distinguished road
Hi there!

I want to simulate fast combustion of air-methane mixture in FLUENT and I use methane-air-2step as material. Giving to this mixture a constant value for specific heat and the same value by meaning of DEFINE_SPECIFIC_HEAT, the results are very different (for example, in the first case the temperatures start from 300K, as I set for initial conditions, and the second case has temperatures start from 2400K). The interpreted and compiled UDFs give identical results.
Can you explain the different behavior between usage of constant value and same value in an UDF?
Thank you!
valahian1 is offline   Reply With Quote

Old   March 5, 2015, 22:42
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Could you supply the UDF you are using? Compare the results between using the UDF and not using the UDF; are these results different? Ensure that Fluent is hooking the UDF you intend and not an old copy.
`e` is offline   Reply With Quote

Old   March 6, 2015, 03:34
Default
  #3
Member
 
Nick
Join Date: Feb 2012
Posts: 33
Rep Power: 14
valahian1 is on a distinguished road
Thank you for reply, 'e'. Meanwhile, I solved the problem. The different between cases is that, using constant value, Fluent takes into account a reference temperature of 298.15K, and in case of using the same value in an UDF, the reference value is that you specified for initial conditions.
valahian1 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF using c_face_loop(c,t,i) frederic FLUENT 3 January 17, 2017 00:17
fluid flow but temperature raises from nowhere? mxcfd STAR-CCM+ 5 September 16, 2014 06:46
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 12:29
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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