CFD Online URL
[Sponsors]
Home > Forums > FLUENT

how to get x coordinate of a centroid in a cell

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 26, 2006, 05: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, 03: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

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cells with t below lower limit Purushothama CD-adapco 2 May 31, 2010 22:58
Cell centroid and cell volume in general, and in Fluent zmester Main CFD Forum 3 October 17, 2009 12:05
cell centroid computation KRK FLUENT 0 February 9, 2007 13:04
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 05:15
Warning 097- AB CD-adapco 6 November 15, 2004 05:41


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