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

calculate integral in UDF

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 2, 2012, 08:13
Default calculate integral in UDF
  #1
New Member
 
Yu-Pei Chen
Join Date: Jun 2011
Posts: 26
Rep Power: 14
ypchen is on a distinguished road
Hi, everybody.
My case has a heat flux cross the wall, and it's not a constant value.
The value is calculated by integrating the domain from z1 to z2, the variable in the integral is temperature (function of z), others are just some constants.
I wanna calculate the integral in UDF.
I have a idea by using "TRAPEZOIDAL RULE", but I don't now how to do it. Does anyone knows how to calculate integral in UDF or how to apply TRAPEZOIDAL RULE ??
thank you very much !
ypchen is offline   Reply With Quote

 


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
Drag coefficient, DPM. jorge poyatos FLUENT 14 January 20, 2012 13:41
UDF for Heat Exchanger model francois louw FLUENT 2 July 16, 2010 02:21
How to calculate the mass flow rate with UDF ? HP FLUENT 0 January 10, 2005 19:38
DEFINE_DPM_OUTPUT macro UDF HELP Puneet FLUENT 3 November 28, 2003 10:55
DEFINE_GEOM UDF Problems Pat FLUENT 0 August 14, 2003 13:16


All times are GMT -4. The time now is 09:57.