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

How to set internal boundary in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2023, 08:20
Smile How to set internal boundary in OpenFOAM
  #1
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 45
Rep Power: 8
qingqingliu is on a distinguished road
I am simulating a flow field using pimpleFoam. I want to set an "internal boundary" inside the geometry and specify the velocity on the "internal boundary". Is there a way to do this?
qingqingliu is offline   Reply With Quote

Old   March 29, 2023, 03:50
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Yes. Use e.g,. topoSet to get you faces and create a faceSet. After that use createPatch to create a new patch with the faceSet you created previously. You will see the new patch in constant/polyMesh/boundaries. Finally, specify the new boundary conditions for your new patch(s) inside your files (0/*)
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   March 29, 2023, 08:29
Default
  #3
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 45
Rep Power: 8
qingqingliu is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Yes. Use e.g,. topoSet to get you faces and create a faceSet. After that use createPatch to create a new patch with the faceSet you created previously. You will see the new patch in constant/polyMesh/boundaries. Finally, specify the new boundary conditions for your new patch(s) inside your files (0/*)
Thanks Tobi for your reply. Because I just want to specify velocity on one face, I used labelToFace as follows:
actions
(

{
name baffleFace;
type faceSet;
action new;
source labelToFace;
value (???);

}

);

In value, I need to input the face ID. Do you know how to get the face ID of an internal face? The boxToFace seems not to work if I just want to find one face.
qingqingliu is offline   Reply With Quote

Reply

Tags
internal boundary, openfoam


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
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


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