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

Urgent! how to get area through UDF?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2004, 03:38
Default 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)
  Reply With Quote

Old   April 19, 2004, 05:54
Default 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
  Reply With Quote

Old   April 19, 2004, 09:07
Default 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.
  Reply With Quote

Old   April 20, 2004, 00:50
Default Re: Urgent! how to get area through UDF?
  #4
FJ
Guest
 
Posts: n/a
Hi,

Oh,sorry! ."real av[ND_ND]"!.

FJ
  Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 22:40.