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

Looping over faces in a cell

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 10, 2002, 16:55
Default Looping over faces in a cell
  #1
Senthil
Guest
 
Posts: n/a
Hi,

I want to loop over all the faces in a cell. I used the following code. When I compile it, it says there is an error on line c_face_loop(c,t,n). error message is "non-integer subscript expression: unsigned char". I would be grateful if somebody can help me debug this code.

Thread *t,*tf; cell_t c; face_t f; int n,k;

thread_loop_c (t,d) {

begin_c_loop (c,t)

c_face_loop(c,t,n)

{

f = C_FACE(c,t,n);

tf = C_FACE_THREAD(c,t,n);

} end_c_loop (c,t) }

Thank you Senthil
  Reply With Quote

 


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
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43
[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 17:10.