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

thread facet cell in flunt

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2005, 04:06
Default thread facet cell in flunt
  #1
peter
Guest
 
Posts: n/a
newbie here, learning the UDF, and really confued some of the terms, can some one tell me the meaning and difference of "thread", "facet" "cell", for exapmle

real x[ND_ND];

real y;

face_t f;

begin_f_loop(f, thread)

{

F_CENTROID(x, f, thread);

y = x[1];

F_PROFILE(f, thread, index) = 20. - y*y/(.0745*.0475)*20.;

}

end_f_loop(f, thread)

in my opinion, F_CENTROID returns the x coordinate of a thread, but why let y= x[1] everytime?

any hints or references would be appereciated.
  Reply With Quote

Old   September 27, 2005, 09:02
Default Re: thread facet cell in flunt
  #2
RoM
Guest
 
Posts: n/a
Hello,

in fluent all cells an faces are grouped together in so calles threads. as an exampel all faces that belong to a specific boundary are gouped together in one thread. lets call this thread boundary face thread and the thread number (id) can be seen in the boundary conditions panel. if you know the number of the thread you can access all faces of that thread usually with one of fluents loop macros. since the id of a thread is just a number and the thread itsefl is a data structure holding all infomations you will need to get a pointer to that data structure. there are fluent commands to do so but since your udf looks like a udf to specify a velocity profile at a boundary fluent will provide the thread pointer for you. the loop macro will loop over all faces of the boundary and face_t is just the index (id) of a specfic face.

in you udf the first line uses one of fluents macros and will expand to "real x[2]" for 2d cases and "real x[3]" for 3d. this means x is a vector storing 2 or 3 components. x[0] will be the x-coodinate, x[1] the y-coordinate and x[2] the z-coordinate (3d only). F_CENTROID will store the center coordinates of a face in x and F_PROFILE will set the velocity profile for that face as a function of y.

RoM
  Reply With Quote

Old   September 27, 2005, 23:16
Default Re: thread facet cell in flunt
  #3
peter
Guest
 
Posts: n/a
Thanks a lot, RoM, u help me a lot.
  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
udf problem jane Fluent UDF and Scheme Programming 37 February 20, 2018 05:17
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 16:57
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
Warning 097- AB Siemens 6 November 15, 2004 05:41


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