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

how to calculate the area of a boundary in UDF?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 9, 2005, 01:42
Default how to calculate the area of a boundary in UDF?
  #1
peter
Guest
 
Posts: n/a
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

Reply

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 12 February 24, 2015 09:05
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Domain Imbalance HMR CFX 3 March 6, 2011 21:10
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29
Solver error message!!! IoSa CFX 1 September 14, 2006 04:48


All times are GMT -4. The time now is 02:07.