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

Apply boundary condition on internal face (faceZones)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By simrego

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2020, 13:47
Default Apply boundary condition on internal face (faceZones)
  #1
New Member
 
Giannokostas Konstantinos
Join Date: Aug 2016
Posts: 6
Rep Power: 10
k.giannoko is on a distinguished road
Hello,


I want to simulate a flow in straight 3D pipe using pressure driven flow. It means that I apply fixedValue p1 at the inlet patch (z=0) and fixedValue p2 at the outlet patch (z=L) while velocity is setting to zero gradient type for both inlet/outlet pathces. Everything is ok and the field is correct. Now I want to create a small region at the inlet of the pipe where the first face is the inlet patch (z=0) and the second is an internal face named intFace placed at z = L/3. I create this geometry from Salome and save the mesh in .unv. When I run ideasUnvToFoam it creates three pathces (inlet, outlet,wall) and one faceZones (intFace). Now I want to apply p1 at the inlet patch, p2 at the intFace and zero gradient at the outlet patch, while for velocity the boundary conditions are the same as before. How can I impose a fixedValue at an internal face ??


This is not working



intFace

{

type fixedValue;
value uniform p2;

}



Thank you
k.giannoko is offline   Reply With Quote

Old   January 24, 2020, 04:28
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


You can't impose a boundary condition on an internal face. There is a strong reason why it is called BOUNDARY condition, and not internal condition. In the 0 directory you can't prescribe anything on a faceZone.
But you can create a baffle from that faceZone. See the attached image (Sorry for the poor quality, I'm not an artist. ). The left is the initial mesh, where that red face is the faceZone. Then you can split it into two boundary faces as you can see on the right side. Of course the mesh won't distorted, i just draw it like this so you can see that there is 2 face now. And on these faces you can impose cyclic boundary conditions with pressure jump, internal wall, or anything you want. For that check the "createBaffles" utility.
Attached Images
File Type: png Untitled.png (5.5 KB, 132 views)
Liangyuan likes this.
simrego is offline   Reply With Quote

Old   January 27, 2020, 04:23
Default
  #3
New Member
 
Giannokostas Konstantinos
Join Date: Aug 2016
Posts: 6
Rep Power: 10
k.giannoko is on a distinguished road
Thank you very much for your reply. I will check it !!!
k.giannoko is offline   Reply With Quote

Reply

Tags
boundary condition error, internal faces


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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
[blockMesh] Internal walls of zero thickness anger OpenFOAM Meshing & Mesh Conversion 23 February 6, 2020 19:25
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 18:38
snappyhexmesh remove blockmesh geometry philipp1 OpenFOAM Running, Solving & CFD 2 December 12, 2014 11:58


All times are GMT -4. The time now is 16:29.