# How to define the geometry of an inlet?

 Register Blogs Members List Search Today's Posts Mark Forums Read

 March 15, 2014, 20:08 How to define the geometry of an inlet? #1 New Member   P Join Date: Mar 2014 Posts: 1 Rep Power: 0 Hi all, I am trying to simulate flow through that passes through a sluice gate and into a flume. I have been trying to represent the flow from the sluice gate as an inlet patch that is part of a face while a wall composes the rest of that face. In doing so I get the following error: Code: ```FOAM FATAL ERROR: face 0 in patch 0 does not have neighbour cell face: 4(0 8 9 1)``` Here is the rest of my geometry: Code: ```vertices ( //Domain (0 0 0) //0 (0 0 0.31) //1 (20 0 0.31) //2 (20 0 0) //3 (0 0.45 0) //4 (0 0.45 0.31) //5 (20 0.45 0.31) //6 (20 0.45 0) //7 //Inlet (0 0.02551 0) //8 (0 0.02551 0.31)//9 ); blocks ( hex (0 1 2 3 4 5 6 7) (25 25 15) simpleGrading (1 1 1) ); edges ( ); boundary ( inlet { type patch; faces ( (0 8 9 1) ); } walls { type wall; faces ( (0 3 7 4) //sidewall (1 2 6 5) //sidewall (0 1 2 3) //floor of channel (8 4 5 9) //above inlet ); } outlet { type patch; faces ( (2 6 7 3) ); } atmosphere { type patch; faces ( (0 3 7 4) (8 4 5 9) (1 5 6 2) (1 3 2 0) ); } );``` I understand why I am getting this error, but now I'm wondering how can I represent the flow from the sluice gate so that the flow depth from the inlet is constant?

 March 17, 2014, 03:20 #2 New Member   Join Date: Oct 2013 Posts: 15 Rep Power: 12 i think the problem is, that you wanna build up an internal face and not a boundary. maybe you could have a look at the createbaffles tool?

 Tags blockmeshdict block mesh, flumes, inlet and outlet