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

The patchField type for wedge

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2015, 02:03
Question The patchField type for wedge
  #1
New Member
 
Join Date: Jan 2015
Location: Shanghai,China
Posts: 13
Rep Power: 11
Jerry L.D. Cheng is on a distinguished road
I am sorry that I choosed a wrong icon for my thread, now I have to post it againt with a question icon.
Good afternoon everyone~
Today I am using OpenFOAM to caculate an axi-semmytric flowfield.
After checkMesh ,the following message came out:

--> FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
patch type wedge and patchField type zeroGradient
file: /opt/OpenFOAM-2.3.0/FOAM_RUN/tutorials/nozzle/0/p.boundaryField.wedge_front from line 48 to line 48.
From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /home/sergio/rpmbuild/BUILD/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 172.
FOAM exiting

Does this mens that I set a wrong patchField type(zeroGradient) for my patches typed "wedge"?
If this is the problem, where can I find the correct patchField type for "wedge" patch?

That's all, thank you ~
Jerry L.D. Cheng is offline   Reply With Quote

Old   January 21, 2015, 04:12
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

You have indeed read the error message correctly. For a wedge patch all the fields should have a fieldType wedge, like this:

Code:
boundaryField
{
    wedgePatchName
    {
         type           wedge;
    }
}
This is similar to the empty patches in many of the tutorials, but instead of "type empty" you should use "type wedge".

Regards,
Tom
Jerry L.D. Cheng likes this.
tomf is offline   Reply With Quote

Old   January 21, 2015, 05:59
Default
  #3
New Member
 
Join Date: Jan 2015
Location: Shanghai,China
Posts: 13
Rep Power: 11
Jerry L.D. Cheng is on a distinguished road
Hi, Mr. Tom:
your methord solved my problem and I've learned more about "empty", thank you very much.
Jerry L.D. Cheng is offline   Reply With Quote

Old   September 30, 2016, 14:08
Default
  #4
Member
 
Ashish Magar
Join Date: Jul 2016
Location: Mumbai, India
Posts: 81
Rep Power: 9
ashishmagar600 is on a distinguished road
Hii,

i am also having the same problem, but i cant use wedge. can someone help me please

error>>inconsistent patch and patchField types for
patch type empty and patchField type zeroGradient
file: /home/magar/OpenFOAM/magar-4.0/run/USER_DIR/my_Cases/rotorCases/case4/0/k.boundaryField.defaultFaces from line 33 to line 33.

From function static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::fvPatch&, const Foam:imensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = double]
in file /home/openfoam/OpenFOAM/OpenFOAM-4.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 160.


thanks.
ashishmagar600 is offline   Reply With Quote

Old   October 3, 2016, 04:12
Default
  #5
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Quote:
error>>inconsistent patch and patchField types for
patch type empty and patchField type zeroGradient
This tells you that the type in constant/polyMesh/boundary is set as empty. This means all your variables need to have:

Code:
boundaryField
{
    patchName
    {
         type           empty;
    }
}
Regards,
Tom
tomf 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
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Meshing & Mesh Conversion 2 March 8, 2018 01:47
Strange high velocity in centrifugal pump simulation huangxianbei OpenFOAM Running, Solving & CFD 26 August 15, 2014 02:27
Problems with a barrier in a river faerber OpenFOAM Running, Solving & CFD 2 July 6, 2014 22:29
Simulation won't show turbulence pete_87 OpenFOAM Running, Solving & CFD 4 June 25, 2014 11:35
Flow Around a Cylinder ronaldo OpenFOAM 5 September 18, 2009 08:13


All times are GMT -4. The time now is 20:52.