CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > 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 Search this Thread 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

Old   May 31, 2021, 16:22
Default
  #2
New Member
 
Santu
Join Date: Mar 2019
Posts: 1
Rep Power: 0
Santhoshkumarkeerthi is on a distinguished road
Quote:
Originally Posted by peter
;126893
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"?





Even I need this . If you got the answer please reply
Santhoshkumarkeerthi is offline   Reply With Quote

Old   May 31, 2021, 21:54
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 33
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
How to calculate area of particular surface through UDF?
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ 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
Define source on boundary cells in UDF mingersai Fluent UDF and Scheme Programming 20 October 23, 2017 05:41
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 12:29
Solver error message!!! IoSa CFX 1 September 14, 2006 05:48


All times are GMT -4. The time now is 05:43.