# Urgent! how to get area through UDF?

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

 April 19, 2004, 03:38 Urgent! how to get area through UDF? #1 David 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 FJ 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 David 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 FJ Guest   Posts: n/a Hi, Oh,sorry! ."real av[ND_ND]"!. FJ

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post DS FLUENT 8 June 29, 2017 10:16 krish Fluent UDF and Scheme Programming 20 September 16, 2015 05:08 P9408 Fluent UDF and Scheme Programming 3 August 31, 2011 00:51 Angela Wang FLUENT 2 December 17, 2008 07:03 Sandilya Garimella FLUENT 0 May 19, 2008 12:35

All times are GMT -4. The time now is 18:03.