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

How to find all boundary cell-faces for an internal region (cellSet)?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2018, 07:40
Default How to find all boundary cell-faces for an internal region (cellSet)?
  #1
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 13
keepfit is on a distinguished road
Hi Foamers,

When I was calculating the surface integral of Tau (the stress tensor field) on an internal region ABCD (rectangle here) using Gauss's theorem, some significant error was found between the calculated and the analytical result.

The region ABCD (rigid solid body) is treated as fluid material m2. When it is located between the phases 1 (material m1) and 2 (material m2), the volume integral over the region ABCD can be problematic, because in this case the material inside the sub-region AD-ef is still m2.

Fig. 1: Problem domain.




Fig. 2: Regular internal region (rectangle here) composed of two different materials: m1 and m2, where the interface e-f between them is irregular.





Instead, if we can find the boundary cell-faces that encompass ABCD, we can do surface integral directly, and the error might be reduced.

The question now is: how do we efficiently find all the boundary cell-faces of an continuous internal region (e.g. using topoSet boxToCell)?

Thanks in advance,


David
keepfit is offline   Reply With Quote

Reply

Tags
gaussdivschemes, surface integrals


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 can't create refimenet region clktp OpenFOAM Meshing & Mesh Conversion 3 February 27, 2022 09:26
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 15:53
[Gmsh] Vertex numbering is dense KateEisenhower OpenFOAM Meshing & Mesh Conversion 7 August 3, 2015 10:49
[snappyHexMesh] SnappyHexMesh Internal Flow Example (Diesel Injector) Irish09 OpenFOAM Meshing & Mesh Conversion 23 July 15, 2013 07:45
[snappyHexMesh] Layers don't fully surround surface EVBUCF OpenFOAM Meshing & Mesh Conversion 14 August 20, 2012 04:31


All times are GMT -4. The time now is 13:12.