|
[Sponsors] |
how to calculate the area of a boundary in UDF? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 9, 2005, 01:42 |
how to calculate the area of a boundary in UDF?
|
#1 |
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"? |
|
May 31, 2021, 16:22 |
|
#2 | |
New Member
Santu
Join Date: Mar 2019
Posts: 1
Rep Power: 0 |
Quote:
Even I need this . If you got the answer please reply |
||
May 31, 2021, 21:54 |
|
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
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 |