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

Like Tree1Likes
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2023, 09:20
Smile How to set internal boundary in OpenFOAM
  #1
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
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, 04:50
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
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/*)
arch.mr likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   March 29, 2023, 09:29
Default
  #3
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
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 17, 2020 00:44
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


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