# Finding out boundary cells in a domain

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

 October 10, 2003, 04:38 Re: Finding out boundary cells in a domain #2 Andrew Garrard Guest   Posts: n/a OK, I think there are alot of problems with this code. It might be easier if you tell us exactly what you are trying to do and we could suggest a better code. One of the major problems, to my mind, is that you are defining several cell and face threads and not specifying what they are in your geometry. For example, you define a thread *t and then begin a cell loop without telling the code what the thread is. You need a line like: Thread *t = Lookup_Thread(d, thread_ID); Where thread_ID is the boundary ID taken from the fluent GUI. What is it that you want your code to do? All I can see is that you are printing the value of k, which is uninitialised anyway.

 October 12, 2003, 16:21 Re: Finding out boundary cells in a domain #4 Mazyar Guest   Posts: n/a Hi, I think another easy way for specifying a velocities to those cells is that you: 1) mark those cells in: adapt/boundary/...=> choose the cell row next to that boundary 2) separate them in: grid/separate/cell... 3)In boundary condition menu, specify mass and momentum source values according to the formula in manual. another method is using a DEFINE_ADJUST function : 1) loop over the cells of the domain 2) get the center point of the cells using: C_CENTROID( ) 3)Using an IF statement: if(center of the cell is equal to location you want) then C_U(c,t)=10 Good luck

 October 13, 2003, 04:56 Re: Finding out boundary cells in a domain #5 Andrew Garrard Guest   Posts: n/a That piece of code looks alot healthier, glad that it is working.

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post stephan OpenFOAM Running, Solving & CFD 5 October 4, 2016 11:56 ARC Open Source Meshers: Gmsh, Netgen, CGNS, ... 0 February 27, 2010 11:56 tippo CFX 2 May 5, 2009 10:55 FredPacheo FLUENT 5 September 5, 2008 05:45 michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15

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