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

boundary cells

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ap

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2003, 06: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, 07: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
juliahartig likes this.
  Reply With Quote

Old   September 4, 2003, 11: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


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
Define source on boundary cells in UDF mingersai Fluent UDF and Scheme Programming 20 October 23, 2017 05:41
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


All times are GMT -4. The time now is 02:15.