CFD Online Logo CFD Online URL
Home > Forums > FLUENT

how to calculate the area of a boundary in UDF?

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

LinkBack Thread Tools Display Modes
Old   December 9, 2005, 01:42
Default how to calculate the area of a boundary in UDF?
Posts: n/a
Sponsored Links
I wanna write a UDF which is applied to a boundary, say, UDF like the following: #include "udf.h"

DEFINE_PROFILE(x_velocity, thread, index) {

float t, x_velocity;

float Area;

real x[ND_ND];

real y;

face_t f;

begin_f_loop(f, thread)


t = RP_Get_Real("flow-time");

Area =

x_velocity = Q/Area;/*Q is the flow rate*/

F_PROFILE(f, thread, index) = x_velocity;


end_f_loop(f, thread) }

how to calculate the area "Area"?
  Reply With Quote
Sponsored Links


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Define source on boundary cells in UDF mingersai Fluent UDF and Scheme Programming 17 June 27, 2017 15:41
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29
Solver error message!!! IoSa CFX 1 September 14, 2006 04:48

Sponsored Links

All times are GMT -4. The time now is 13:19.