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

boundary cells

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 4, 2003, 05:09
Default boundary cells
  #1
Ale
Guest
 
Posts: n/a
Hi to all,

is it possible to identify (by a UDF) whether or not a cell is a boundary cell, and which one of its faces belongs to the boundary?

Thank you!

Ale
  Reply With Quote

Old   September 4, 2003, 06:24
Default Re: boundary cells
  #2
ap
Guest
 
Posts: n/a
You can directly check if a face belongs to a boundary looping over all faces and using the

THREAD_TYPE (t)

where t is the faces thread.

There are many values which THREAD_TYPE (t) may assume, according to which part of your domain the face belongs to.

I report some values.


Value of THREAD_TYPE (t) Part of the domain

THREAD_F_INTERIOR Face is internal to the
domain

THREAD_F_VINLET Face belongs to a velocity
inlet

THREAD_F_POUTLET Face belongs to a pressure
outlet

THREAD_F_OUTFLOW Face belongs to an outflow




You have to use a multiple if like:


if (THREAD_TYPE(t) == THREAD_F_INTERIOR) /* Interior
{
...
}

else if(THREAD_TYPE(t) == THREAD_F_POUTLET)
{
}

else if(THREAD_TYPE(t) == THREAD_F_VINLET)
{
}



Hope this helps

Hi

ap
  Reply With Quote

Old   September 4, 2003, 10:31
Default Re: boundary cells
  #3
Ale
Guest
 
Posts: n/a
Thanks a lot!

I found also the functions:

BOUNDARY_FACE_THREAD_P(tf)

BOUNDARY_FACE_GEOMETRY(f,tf,A,ds,es,A_by_es,dr0)

that can be useful to identify boundary cells and to get some information about them.

Regards,

Ale
  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
Define source on boundary cells in UDF mingersai Fluent UDF and Scheme Programming 13 Today 11:56
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
Domain Imbalance HMR CFX 3 March 6, 2011 21:10
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


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