|
[Sponsors] |
April 19, 2004, 03:38 |
Urgent! how to get area through UDF?
|
#1 |
Guest
Posts: n/a
|
The following sentences of UDF are used to get the coordinates and pressure of the centriods on the specified boundary. And also I want to get the area of the face cells on the boundary to calculate the force. Which macro should I employ in this case and how?Thanks.
begin_f_loop(f,t) { F_CENTROID(x,f,t); fprintf(fload3,"%10.5lf %10.5lf %10.5lf %10.5lf\n",x[0],x[1],x[2],F_P(f,t)); } end_f_loop(f,t) |
|
April 19, 2004, 05:54 |
Re: Urgent! how to get area through UDF?
|
#2 |
Guest
Posts: n/a
|
Hi,
F_AREA(av, f, t) must be defined and NV_MAG(av) is summed . --here-- av[ND_ND}; real area; begin_f_loop(f,t) { F_AREA(av, f, t) F_CENTROID(x,f,t); fprintf(fload3,"%10.5lf %10.5lf %10.5lf %10.5lf\n",x[0],x[1],x[2],F_P(f,t)); area += NV_MAG(av); } end_f_loop(f,t) --- Thank you FJ |
|
April 19, 2004, 09:07 |
Re: Urgent! how to get area through UDF?
|
#3 |
Guest
Posts: n/a
|
Thank you very much.It have a litle question.It seems that the array av[ND_ND] should be declared a type"real av[ND_ND]" otherwise Fluent will report some errors occur.
|
|
April 20, 2004, 00:50 |
Re: Urgent! how to get area through UDF?
|
#4 |
Guest
Posts: n/a
|
Hi,
Oh,sorry! ."real av[ND_ND]"!. FJ |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Face/Surface area export (urgent) | DS | FLUENT | 8 | June 29, 2017 10:16 |
Area of a particular face of the cell using UDF | krish | Fluent UDF and Scheme Programming | 20 | September 16, 2015 05:08 |
Please help to urgent for UDF | P9408 | Fluent UDF and Scheme Programming | 3 | August 31, 2011 00:51 |
Magnus lift force using UDF - urgent help please | Angela Wang | FLUENT | 2 | December 17, 2008 06:03 |
URGENT custom property for UDF | Sandilya Garimella | FLUENT | 0 | May 19, 2008 12:35 |