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

What's wrong with the patch / p...?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By danishdude

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2012, 17:39
Default What's wrong with the patch / p...?
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
Hello,

I want to test a hydrofoil (symmetry case based on motorBike case) and keep getting error messages from potentialFoam and simpleFoam.

What's wrong?

Find attached the error messages and the case (without the foil, as the file exceeds 97kB).

E.g. potentialFoam log:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.1-5ae28021cd90
Exec : potentialFoam -noFunctionObjects -writep
Date : Jan 04 2012
Time : 22:25:53
Host : tenno-EP45-UD3R
PID : 7255
Case : /home/tenno/OpenFOAM/tenno-2.0.1/run/tutorials/incompressible/simpleFoam/wing
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p



--> FOAM FATAL IO ERROR:

patch type 'patch' not constraint type 'symmetryPlane'
for patch maxY_domain_upper_wall of field p in file "/home/tenno/OpenFOAM/tenno-2.0.1/run/tutorials/incompressible/simpleFoam/wing/0/p"

file: /home/tenno/OpenFOAM/tenno-2.0.1/run/tutorials/incompressible/simpleFoam/wing/0/p::boundaryField::maxY_domain_upper_wall from line 27 to line 27.

From function symmetryFvPatchField<Type>::symmetryFvPatchField
(
const fvPatch& p,
const Field<Type>& field,
const dictionary& dict
)

in file fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.C at line 99.

FOAM exiting
Attached Files
File Type: txt log.blockMesh.txt (2.7 KB, 20 views)
File Type: txt log.potentialFoam.txt (1.8 KB, 4 views)
File Type: txt log.simpleFoam.txt (1.7 KB, 3 views)
File Type: txt log.snappyHexMesh.txt (57.3 KB, 5 views)
File Type: gz wing.tar.gz (38.9 KB, 19 views)
klausb is offline   Reply With Quote

Old   January 4, 2012, 18:57
Default
  #2
New Member
 
Michael Ahlmann
Join Date: Feb 2010
Posts: 27
Rep Power: 16
danishdude is on a distinguished road
Your symmetry planes are defined as patches in:

/constant/polyMesh/boundary

You need to change those to symmetry plane. The error message is telling you that you are trying to apply a symmetry condition to a patch.
lth and nisha like this.
danishdude is offline   Reply With Quote

Old   January 5, 2012, 08:01
Default Now I am running into the next problem - patch name .stl ...
  #3
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
Thank you!

But now I am running into the next patch problem.

SimpleFoam doesn't get the patch name of the wing. The wing is represented through wing.stl and the name defined in that file is also wing (first line is: solid wing).

Error: Cannot find any patch names matching wing_wing

SimpleFoam is looking for a patch name wing_wing which is to my knowledge made up internaly: name of wing.stl defined in sHMDict+ _name defined in the wing.stl file.

My trial & error approach didn't work.

Any idea, what needs to be changed? Find attached the simpleFoam log file.

Klaus
Attached Files
File Type: txt log.simpleFoam.txt (85.9 KB, 13 views)
klausb is offline   Reply With Quote

Old   January 5, 2012, 14:33
Default Case file - I am still not able to define the patch name
  #4
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
Hello,

find attached my case file - I am still not able to define the patchname for my wing (wing.stl).

I need to fix the following SimpleFoam error:

Reading surface description:
yNormal

--> FOAM Warning :
From function polyBoundaryMesh::patchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching wing_wing
--> FOAM Warning :
From function polyBoundaryMesh::patchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching wing_wing

Any ideas how to do that?

Klaus
Attached Files
File Type: txt log (Kopie).simpleFoam.txt (53.4 KB, 2 views)
File Type: gz wing (Kopie).tar.gz (88.6 KB, 13 views)
klausb is offline   Reply With Quote

Old   January 7, 2012, 14:24
Default
  #5
New Member
 
Michael Ahlmann
Join Date: Feb 2010
Posts: 27
Rep Power: 16
danishdude is on a distinguished road
Sorry for the slow response. The error message I get when running your case is:

Code:
--> FOAM FATAL ERROR: 
Invalid wall function specification
    Patch type for patch minX_inlet must be wall
    Current patch type is patch
This is because you specified the following in your /0/nu file:

Code:
    minX_inlet
    {
        type            nutkWallFunction;
        value           uniform 0;
    }
I'm assuming that your "minX_inlet" is in fact an inlet, as such, the /0/nut file should have the following instead:

Code:
    minX_inlet
    {
        type            calculated;
    }
Once that is fixed, the code issues the same error for maxX_outlet. So this one should also be changed to 'type calculated;" in the 0/nut

Additionally, the case also complains about use of deprecated syntax. This is not a big deal (and does not cause the code to stop); however, I recommend reviewing the messages and adjusting your input files per the instructions. The case will run without doing so.

With the above two modifications, the case successfully ran the first iteration on my machine. I did not check your boundary condition types in any level of detail as there are several examples on the forums of people modeling airfoils, and personally, I do not have much experience doing so, but I would recommend reviewing your wing boundary condition. Wouldn't it be more common to use a wall function than a fixed value for an object in the flow?

Best of luck!
danishdude is offline   Reply With Quote

Old   March 9, 2016, 02:08
Default
  #6
New Member
 
vel
Join Date: Mar 2016
Posts: 6
Rep Power: 10
vetri1689 is on a distinguished road
hi danish i am also getting the same error which you have mentioned. i changed it to type calculated. but still getting the same error. i think it is because in constant/polymesh/boundary i mentioned it as patch.
is there any other way to eliminate this error?
vetri1689 is offline   Reply With Quote

Old   May 11, 2020, 21:44
Default
  #7
New Member
 
Mateus
Join Date: Apr 2020
Posts: 6
Rep Power: 6
Mateus Elias is on a distinguished road
Hello!
I having the same error message. I trying run a landing gear fairing in OpenFoam, but the mesage that the cpolaina cannot be found on polyBoundaryMesh. Do you know what can be wrong?

Is this patch created when I run the file snappyHexMesh, right?

Thank you by your attention.
Mateus Elias is offline   Reply With Quote

Reply


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
udf error srihari FLUENT 1 October 31, 2016 15:18
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 01:28.