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

'Cannot find patchField entry for outlet'

Register Blogs Community New Posts Updated Threads Search

Like Tree22Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2013, 11:43
Default 'Cannot find patchField entry for outlet'
  #1
Member
 
Olie
Join Date: Oct 2013
Posts: 51
Rep Power: 13
odellar is on a distinguished road
Hi,

If someone has answered this question before I apologise, but I've been searching for a long time across various forums and haven't managed to solve my problem.

I've got a geometry that is essentially an S-shaped pipe with one inlet and one outlet (both of which have the same surfaces area).

So I've set the inlet and outlet as patches, the 'top' and 'bottom' of the pipe as walls, and the 'front' and 'back' of the pipe as 'empty' since I just want a 2D solution.

I want a uniform inlet velocity of 1 m/s, and based on the continuity equation, the outlet velocity is 1 m/s as well (as it has the same surface area and my flow is incompressible).

I'm using a RAS k-epsilon solver.

This is where I have defined walls & patches etc in the blockMeshDict file:

Code:
boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 3 13 10)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (8 9 19 18)
        );
    }
    fixedWalls
    {
        type wall;
        faces
        (
            (3 2 12 13)
            (2 7 17 12)
            (7 6 16 17)
            (6 9 19 16)
            (0 1 11 10)
            (1 4 14 11)
            (4 5 15 14)
            (5 8 18 15)
        );
    }
);
(Note that I can view the geometry in ParaView and it looks correct so I don't think this is the issue).

This is where I have defined velocities (in 0/U):

Code:
dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform (1 0 0);
    }

    outlet
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }


    fixedWalls
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

    frontAndBack
    {
        type            empty;
    }
}
and this is where I have defined pressures:

Code:
dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
   

    inlet
    {
    type        zeroGradient;
    }

    outlet
    {
    type        zeroGradient;
    }

    fixedWalls
    {
        type            zeroGradient;
    }

    frontAndBack
    {
        type            empty;
    }
}
When I run pisoFoam it gives this error:

Code:
--> FOAM FATAL IO ERROR: 
Cannot find patchField entry for outlet

file: /home/olie/OpenFOAM/olie-2.2.1/run/tutorials/incompressible/pisoFoam/ras/s_shape/0/epsilon.boundaryField from line 26 to line 41.
I'm very new to OpenFOAM and wouldn't be at all surprised if I've just completely missed something.

Please ask if you'd like to see any of the other files, such as 0/epsilon or 0/k.

Thanks a lot for your time,
Olie
zandi, febriyan91, htbeck and 2 others like this.
odellar is offline   Reply With Quote

Old   October 18, 2013, 07:22
Default
  #2
Member
 
Olie
Join Date: Oct 2013
Posts: 51
Rep Power: 13
odellar is on a distinguished road
Sorry all I've sorted it, I'd missed out a semicolon on one line

If someone could let me know how I delete this thread I'll get rid of it.

Thanks
Olie
odellar is offline   Reply With Quote

Old   January 12, 2015, 05:12
Default
  #3
New Member
 
Warning
Join Date: Jan 2015
Posts: 15
Rep Power: 11
range_rover is on a distinguished road
it will be helpfull to others if you specify where was the collan missing in the script
range_rover is offline   Reply With Quote

Old   May 21, 2015, 14:03
Default
  #4
New Member
 
Deborah Gomes
Join Date: Mar 2014
Posts: 3
Rep Power: 12
deborahgomess is on a distinguished road
It help me a lot! You have no idea!
I was missing a semicolon too! After a parenthesis when I set a nonuniform inlet value at the 0/alpha.air.org

Thank you!
deborahgomess is offline   Reply With Quote

Old   July 2, 2015, 06:40
Default PisoFoam - Error report
  #5
New Member
 
Gizela
Join Date: May 2015
Posts: 11
Rep Power: 11
Gizazu is on a distinguished road
Hi. I finally got the simulation working but i have a litlle problems with definition of delta T and courant number which sometimes send back an error during the process. Could you help me with this doubt? What possibly I´m doing wrong?

Another question is that I´m doing a 3D simulation but i can only see Ux and Uz during the calculation. Is that normal?

Please, somebody help me!!!


Regards
Gizazu is offline   Reply With Quote

Old   February 21, 2016, 08:36
Default
  #6
kvk
New Member
 
kvknagaraju
Join Date: Feb 2016
Posts: 2
Rep Power: 0
kvk is on a distinguished road
can you please tell me how did you solve the problem ?
alcarnielo likes this.
kvk is offline   Reply With Quote

Old   May 28, 2017, 13:37
Default
  #7
New Member
 
Moe Alams
Join Date: May 2017
Posts: 13
Rep Power: 9
MoeCFD is on a distinguished road
This article has helped me as well. I added semi colon after uniform ( );
MoeCFD is offline   Reply With Quote

Old   October 25, 2017, 07:36
Default
  #8
New Member
 
Join Date: Oct 2017
Posts: 3
Rep Power: 9
Nishant79 is on a distinguished road
I am facing the same error.How did you get rid of this error?
Nishant79 is offline   Reply With Quote

Old   February 19, 2018, 13:01
Default
  #9
New Member
 
Reza Nouri
Join Date: Oct 2012
Location: Tennessee
Posts: 26
Rep Power: 14
reza2031 is on a distinguished road
Send a message via Skype™ to reza2031
I do not know if it helps. I had a similar error and finally found out that in blockMeshDict there was a typo in a boundary name.So, check the boundary names in 0 folder and blockMeshDict. Compare them, this might solve the error.
reza2031 is offline   Reply With Quote

Old   November 26, 2018, 00:41
Default
  #10
New Member
 
Ainal Hoque Gazi
Join Date: May 2018
Location: India
Posts: 27
Rep Power: 8
A H Gazi is on a distinguished road
I had a similar error. I have given double curly bracket before inlet.

boundaryField
{

back
{
type symmetryPlane;
}

front
{
type symmetryPlane;
}
}

inlet
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
alcarnielo and Ming Darcy like this.
A H Gazi is offline   Reply With Quote

Old   May 28, 2019, 17:02
Default
  #11
New Member
 
Abbasi Maaz
Join Date: Oct 2018
Location: Germany
Posts: 3
Rep Power: 8
Abbasi_Maaz is on a distinguished road
Also Make sure that there is no spaces in front of boundary name for example if you used "Outlet " (or any other boundary name) while initializing for pressure or velocity field instead of original "Outlet", it will also give you this error.
Abbasi_Maaz is offline   Reply With Quote

Old   August 8, 2019, 10:00
Default
  #12
Senior Member
 
zandi's Avatar
 
Fatema Zandi Goharrizi
Join Date: Mar 2009
Posts: 158
Rep Power: 17
zandi is on a distinguished road
it helps me out from a silly mistake thanks for post
zandi is offline   Reply With Quote

Old   October 9, 2019, 01:26
Default
  #13
New Member
 
Join Date: Feb 2019
Posts: 1
Rep Power: 0
neojarrah is on a distinguished road
Quote:
Originally Posted by reza2031 View Post
I do not know if it helps. I had a similar error and finally found out that in blockMeshDict there was a typo in a boundary name.So, check the boundary names in 0 folder and blockMeshDict. Compare them, this might solve the error.
thank you for your help,i have same mistake. XD
neojarrah is offline   Reply With Quote

Old   September 19, 2020, 07:29
Default
  #14
New Member
 
Join Date: Sep 2020
Posts: 4
Rep Power: 6
alcarnielo is on a distinguished road
Your tip really helped me a lot! This was exactly one of my errors in my simulation!
alcarnielo is offline   Reply With Quote

Old   September 28, 2021, 22:46
Default
  #15
New Member
 
王杰
Join Date: Sep 2021
Location: China
Posts: 5
Rep Power: 5
wangjie is on a distinguished road
Quote:
Originally Posted by reza2031 View Post
I do not know if it helps. I had a similar error and finally found out that in blockMeshDict there was a typo in a boundary name.So, check the boundary names in 0 folder and blockMeshDict. Compare them, this might solve the error.
thanks a lot! I use your method and solve it .it 's a right way to compare the blockMeshDict and 0/doundaryDict ,check the boundary name and semicolon,you will find what's wrong.
wangjie is offline   Reply With Quote

Old   November 9, 2021, 13:55
Default thank you
  #16
New Member
 
Join Date: Nov 2021
Posts: 1
Rep Power: 0
agogenola is on a distinguished road
Thank you very much, It helped me a lot!
agogenola is offline   Reply With Quote

Old   August 3, 2022, 00:04
Default Thanks!!!
  #17
New Member
 
Phil Nassaux
Join Date: Jul 2022
Posts: 1
Rep Power: 0
phil_in_Tex is on a distinguished road
You save me by putting me on the right track.
I had a naming mismatch case issue that also produced the same error.
phil_in_Tex is offline   Reply With Quote

Old   May 8, 2023, 17:38
Default
  #18
New Member
 
Airlia
Join Date: May 2023
Posts: 2
Rep Power: 0
Airlia is on a distinguished road
Hello

I have a geometry of an idealistic model of the cross-section of the human heart with four outlets and two inlets, and I specified both the solid wall and the flow wall. I can also inspect the geometry in Paraview, and all meshed regions are visible.

I received the error below while running pisoFoam, and I searched for a possible solution and came across this thread. I checked the boundary field code for syntax errors and found none, but I still get the same error

The error code I got after running pisoFoam;

--> FOAM FATAL IO ERROR:
Cannot find patchField entry for wall-part4_heart-cut-extrude8

file: /home/codebind/OpenFOAM/codebind-10/run/tutorials/incompressible/pisoFoam/LES/m2/0/p/boundaryField from line 24 to line 45.

From function void Foam::GeometricBoundaryField<Type, PatchField, GeoMesh>::readField(const Foam:imensionedField<TypeR, GeoMesh>&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]
in file /home/ubuntu/OpenFOAM/OpenFOAM-10/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 187.


Boundary field Code (with the error):
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 10
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

upperWall
{
type zeroGradient;
}

lowerWall
{
type zeroGradient;
}

frontAndBack
{
type empty;
}
}

// ************************************************** *********************** //
Boundary Code:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 10
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

13
(
wall-part4_heart-cut-extrude8
{
type wall;
inGroups List<word> 1(wall);
nFaces 1614;
startFace 1779560;
}
outlet1
{
type patch;
nFaces 146;
startFace 1781174;
}
outlet2
{
type patch;
nFaces 205;
startFace 1781320;
}
inlet1
{
type patch;
nFaces 138;
startFace 1781525;
}
inlet2
{
type patch;
nFaces 145;
startFace 1781663;
}
inlet3
{
type patch;
nFaces 146;
startFace 1781808;
}
inlet4
{
type patch;
nFaces 205;
startFace 1781954;
}
solidwall-part4_heart-sweep6
{
type wall;
inGroups List<word> 1(wall);
nFaces 6688;
startFace 1782159;
}
solidwall-part4_heart-sweep5
{
type wall;
inGroups List<word> 1(wall);
nFaces 4690;
startFace 1788847;
}
solidwall-part4_heart-cut-extrude8
{
type wall;
inGroups List<word> 1(wall);
nFaces 16043;
startFace 1793537;
}
flowwall
{
type wall;
inGroups List<word> 1(wall);
nFaces 66993;
startFace 1809580;
}
solidwall-contact_region-src
{
type patch;
nFaces 3920;
startFace 1876573;
}
solidwall-contact_region-trg
{
type patch;
nFaces 3580;
startFace 1880493;
}
)

// ************************************************** *********************** //


I'm new to OpenFoam and would greatly appreciate any assistance.

Thank you so much, Airlia.
Airlia is offline   Reply With Quote

Old   May 9, 2023, 05:46
Default
  #19
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Airlia,

Here is your error:
Code:
--> FOAM FATAL IO ERROR:
Cannot find patchField entry for wall-part4_heart-cut-extrude8

file: /home/codebind/OpenFOAM/codebind-10/run/tutorials/incompressible/pisoFoam/LES/m2/0/p/boundaryField from line 24 to line 45.
It means you need to have a boundary condition defined for wall-part4_heart-cut-extrude8 in the p file.
According to the p file you posted here, this is not the case.

Basically, all the entities listed in the boundary file needs to have boundary conditions in 0 directory, for each variable solved.

Cheers,
Yann
Airlia likes this.
Yann is offline   Reply With Quote

Old   May 9, 2023, 15:33
Thumbs up
  #20
New Member
 
Airlia
Join Date: May 2023
Posts: 2
Rep Power: 0
Airlia is on a distinguished road
Thank you so much, it worked!
Yann likes this.
Airlia is offline   Reply With Quote

Reply

Tags
patch, patch type, patchfield


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
OpenFoam171: error /usr/bin/ld: cannot find -llduSolvers Schipper OpenFOAM Programming & Development 9 August 26, 2020 06:31
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 07:32
Converting Starccm+ mesh Ladnam OpenFOAM 0 September 14, 2011 07:30
Entry level CFD Jobs Section Tez Main CFD Forum 1 February 20, 2007 02:19


All times are GMT -4. The time now is 15:14.