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

how to get x coordinate of a centroid in a cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2006, 04:32
Default how to get x coordinate of a centroid in a cell
  #1
wanghong
Guest
 
Posts: n/a
hi! i want apply a volume heat source whose funtion is q=q0*exp(x^2+y^2)/z^ in a 3D simulation,so i need get every x,y,z coordinate of every centroid in all cells from every known C-CENTROID.how to get them from ND_ND? THANKS!
  Reply With Quote

Old   February 27, 2006, 02:38
Default Re: how to get x coordinate of a centroid in a cel
  #2
RoM
Guest
 
Posts: n/a
ND_ND is just a constant defined as 2 for 2d and 3 for 3d.

C_CENTROID(x,c,t) with x[ND_ND] will store the x coordinate in x[0], y in x[1] and z in x[2].

RoM
  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
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58
Cell centroid and cell volume in general, and in Fluent zmester Main CFD Forum 3 October 17, 2009 11:05
cell centroid computation KRK FLUENT 0 February 9, 2007 12:04
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
Warning 097- AB Siemens 6 November 15, 2004 04:41


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