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

FOAM FATAL IO ERROR: Cannot find patchField entry for procBoundary2to0

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Jelle Lagerweij

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2022, 10:29
Default FOAM FATAL IO ERROR: Cannot find patchField entry for procBoundary2to0
  #1
New Member
 
Jelle Lagerweij
Join Date: Jul 2022
Posts: 21
Rep Power: 4
Jelle Lagerweij is on a distinguished road
Dear cfd friends,

I having trouble with getting my first real OpenFOAM simulation setup right. I am trying to model a sphere in a square duct, but somehow, I can't seem to get the parallelized version to work as it should.


I created a tar.gz zip with my full model included, and added two files with the run commands I use: Allrunserial and Allrunparallel contain the commands I use to run my model. I want to set it up like the motorbike example, where I can run 1 potentialFoam initialisation and then run simpleFoam as my main program afterwards.


The Allrunparallel already breaks during the potentialFoam command, with the patchField entry error. The Allrunserial gives an error only when I start the simpleFoam main program. I think both of these error messages come from errors in my boundary conditions, but I can't find the place that I go wrong. (I did check semi-columns though).


I would be really thankful for some help,
Jelle Lagerweij


PS: later on, I will make the sphere leak a bit of hydrogen and investigate the gas-gas mixing that will occur. I need to change it to reactingFoam for that. The final goal is a safety assessment for a hydrogen production location. Obviously, the ventilation should be good enough that the by leakage, the hydrogen concentrations stay below the safety limits. It is a fun in-depth project for a master student in his internship .
Attached Files
File Type: gz sphere_in_duct.tar.gz (15.9 KB, 27 views)
Jelle Lagerweij is offline   Reply With Quote

Old   July 6, 2022, 12:38
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hi,

With your current workflow, just remove the -copyZero option on your second decomposePar command and you should be fine.

What error do you get when running simpleFoam with Allrunserial?

Yann
Yann is offline   Reply With Quote

Old   July 6, 2022, 13:18
Default
  #3
New Member
 
Jelle Lagerweij
Join Date: Jul 2022
Posts: 21
Rep Power: 4
Jelle Lagerweij is on a distinguished road
Thanks a lot, after your comment, I tweaked around a little. I immediately noticed that I do not remove the decompose folders correctly. I tried to, but didn't command it to search for the processor<> folders in the right directory. I believe that it means that when I decomposed it again the second time, nothing actually happened. I solved that now as well. However, now I get the error message when decomposing the second time. (I attached the new version).


The error for the parallel case is:

Code:
--> Number of processor faces = 12894
Max number of cells = 119705 (0.313694% above average 119331)
Max number of processor patches = 5 (25% above average 4)
Max number of faces between processors = 5013 (16.6356% above average 4298)

Time = 0


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

file: /home/xintc/OpenFOAM/xintc-9/run/sphere_in_duct/0/k/boundaryField from line 25 to line 44.
I also looked back to the serial case I tried. There I see the same error message, but at least I can see that the p and U fields seem to be accepted. (that at least makes me happy)

Code:
--> Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kOmegaSST
Selecting patchDistMethod meshWave


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

file: /home/xintc/OpenFOAM/xintc-9/run/sphere_in_duct/0/k/boundaryField from line 25 to line 44.

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

FOAM exiting
Attached Files
File Type: txt Allrunparallel.txt (570 Bytes, 14 views)
Jelle Lagerweij is offline   Reply With Quote

Old   July 6, 2022, 13:25
Default
  #4
New Member
 
Jelle Lagerweij
Join Date: Jul 2022
Posts: 21
Rep Power: 4
Jelle Lagerweij is on a distinguished road
Thank you very much,
After your tip, I fiddled around a little again. I noticed two things, first of all, I removed the old processor* folders incorrectly (forgot to make it run in the directory that is used in the terminal). So now I improved on that. Although I still can't make it till the simpleFoam command without errors. It breaks when decomposing it for the second time.



Code:
Number of processor faces = 12894
Max number of cells = 119705 (0.313694% above average 119331)
Max number of processor patches = 5 (25% above average 4)
Max number of faces between processors = 5013 (16.6356% above average 4298)

Time = 0


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

file: /home/xintc/OpenFOAM/xintc-9/run/sphere_in_duct/0/k/boundaryField from line 25 to line 44.

If I do the serial version of the run, I do get too the simpleFoam command without errors. However, then I get this back:


Code:
Create time

Create mesh for time = 0


SIMPLE: No convergence criteria found

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kOmegaSST
Selecting patchDistMethod meshWave


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

file: /home/xintc/OpenFOAM/xintc-9/run/sphere_in_duct/0/k/boundaryField from line 25 to line 44.

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

FOAM exiting

At least, they point at the same problem right now. It also looks like my p and U fields and boundary conditions get excepted as they are read during the simpleFoam command.


With kind regards,
Jelle
Attached Files
File Type: txt Allrunparallel.txt (570 Bytes, 12 views)
Jelle Lagerweij is offline   Reply With Quote

Old   July 6, 2022, 14:59
Default
  #5
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hi Jelle,

There is a closing bracket missing on the Inlet boundary condition on your k file. This is probably why simpleFoam is having trouble to read your BC on k.

Regards,
Yann
Yann is offline   Reply With Quote

Old   July 7, 2022, 04:25
Default Oeh, it works :)
  #6
New Member
 
Jelle Lagerweij
Join Date: Jul 2022
Posts: 21
Rep Power: 4
Jelle Lagerweij is on a distinguished road
Hi Yann,
Thanks a lot for your help. Somehow it seems to work now . I still had another error somewhere (I forgot to set nut as wallfunction somewhere) but I figured that out on my own. Thanks a lot for your help.
With kind regards,
Jelle Lagerweij
Yann likes this.
Jelle Lagerweij is offline   Reply With Quote

Old   July 12, 2022, 08:22
Default
  #7
New Member
 
Jelle Lagerweij
Join Date: Jul 2022
Posts: 21
Rep Power: 4
Jelle Lagerweij is on a distinguished road
I thought that I fixed everything and now it runs perfectly.


Except, the results are crap... Somehow, the flow doesn't seem to go through our system. Although I think that the boundary conditions are correct, when I run the model, the flow seems to stop at the inlet. I already checked, and I define the inlet patches as patch type (instead of wall) in the snappyHexMeshDictionary. I also tweaked around with my k_omega boundary conditions, but I think these should be ok. I included my full problem as attachment again, it should run simpleFoam without any fatal error now. Maybe you could explain to me why this behaves this way.


With kind regards,
Jelle Lagerweij
Attached Files
File Type: zip sphere_in_duct.zip (29.8 KB, 13 views)
Jelle Lagerweij is offline   Reply With Quote

Old   July 12, 2022, 10:15
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hi Jelle,

At the inlet your are setting a velocity of 20m/s along the x direction, but your channel is oriented in the y direction.
Just change your inlet velocity vector and it should be fine!

Cheers,
Yann
Yann is offline   Reply With Quote

Old   July 12, 2022, 10:59
Default
  #9
New Member
 
Jelle Lagerweij
Join Date: Jul 2022
Posts: 21
Rep Power: 4
Jelle Lagerweij is on a distinguished road
Lol, my IQ hit rock bottom .
Thanks a lot.


Jelle
Jelle Lagerweij is offline   Reply With Quote

Old   September 1, 2023, 11:54
Default Same problem for me
  #10
New Member
 
Yousuf Ali
Join Date: Apr 2023
Posts: 2
Rep Power: 0
yousufaero is on a distinguished road
Did you manage to run the case in parallel. I can not get that working.

Can you tell me how to do it


Thank you
Yousuf
yousufaero is offline   Reply With Quote

Old   September 1, 2023, 12:02
Default
  #11
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Yousuf,

This is not really possible to help you without knowing what you're doing. (check this post: How to give enough info to get help)
What did you try and what error do you get?

Regards,
Yann
Yann is offline   Reply With Quote

Reply

Tags
boundary conditions, patchfield boundaries


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
FOAM FATAL IO ERROR Cannot find patchField entry for procBoundary1to0 Jelle Lagerweij OpenFOAM Running, Solving & CFD 0 July 6, 2022 10:02
"FOAM FATAL IO ERROR: Cannot find patchField entry for NACA6409_patch24311" Pavlidis Chariton OpenFOAM Running, Solving & CFD 0 October 7, 2019 05:57
InterDyMFoam+simpleFunctionObject Elham OpenFOAM Running, Solving & CFD 5 July 10, 2017 12:59
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


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