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

Problem with BC inconsistency

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By hjasak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2005, 14:13
Default Hi everybody, I want to per
  #1
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 17
segersson is on a distinguished road
Hi everybody,

I want to perform calculations for a square box, using simpleFoam, with flow from several different directions (one direction at a time). To perform calculations for flow coming from the "south east" direction, I need to have an inlet bc at both the south and the east boundary patches, and outlet conditions for the north and west boundary patches. For the upper boundary i use symmetry bc and the lower has a wall bc.
This setup gives me an error at execution, with a message telling me that my patch type is inconsistent with my boundary patch etc...
I've used this setup many times in Fluent, so I'm a little surprised it didn't work here. Does anybody know what I'm doing wrong?

/David
segersson is offline   Reply With Quote

Old   April 26, 2005, 14:18
Default Sorry for being blunt, but how
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Sorry for being blunt, but how did you imagine that the code will allow you to specify an outlet boundary condition on a patch that you specified as a symmetry plane?

The patch is either a symmetry plane, in which case the b.c. for ALL variables is symmetryPlane, or it is not and symmetry plane and you can set up any boundary condition you like.

If you still don't see it, please take a piece of paper, draw the symmetry plane boundary and try to figure out how should the flow come out of it.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 26, 2005, 17:21
Default When you say "square box" do y
  #3
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
When you say "square box" do you mean a cube or a 2-D square?

Assuming you are referring to a cube with diagonal cross-flow parallel to the wall and symmetry plane, there is no reason why it should not work. Maybe you should post the entire error message?
eugene is offline   Reply With Quote

Old   April 27, 2005, 11:39
Default Hi again, Sorry if I was uncl
  #4
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 17
segersson is on a distinguished road
Hi again,
Sorry if I was unclear, I meant a cube with cross diagonal flow. The error message is:
...
Create mesh for time = 0
Reading field p

--> FOAM FATAL IO ERROR : inconsistent patch and patchField types for
patch type symmetryPlane and patchField type fixedValue

file: /home/OpenFOAM/OpenFOAM/OpenFOAM-1.0.2/run/simpleBuilding/0/p::north from line 41 to line 43.

Function: fvPatchField<type>const fvPatch&, const Field<type>&, const dictionary &)
in file: /home/dm2/henry/OpenFOAM/OpenFOAM-1.0.2/src/OpenFOAM/lnInclude/newFvPat chField.C at line: 139.

FOAM exiting

The case works just fine when using just one inlet boundary and one outlet (the boundaries parallell to the flow are then set to symmetry).

Any ideas?
/David
segersson is offline   Reply With Quote

Old   April 27, 2005, 11:46
Default As I've answered above, you ha
  #5
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
As I've answered above, you have defined the patch type to be symmetryPlane and the boundary condition to be fixedValue, which is not allowed:

- if you want a symmetry plane, define the b.c. on p to be symmetryPlane

- if you want fixedValue, define the patch type to be "wall" or "patch".

Now read the error message again - if you think it is unclear, please let me know what you'd like it to say and I will change it.

Hrv
Aliosat likes this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 28, 2005, 12:34
Default Ok, now it works. I didn't kn
  #6
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 17
segersson is on a distinguished road
Ok, now it works.
I didn't know the difference between the patch type and the physicalType...
Changing the type in ../polyMesh/boundary from symmetryPlane to patch solved it.

Thanks for having patience with a beginner
//David
segersson 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
Inconsistency in CourantNoH rolando OpenFOAM Bugs 5 September 5, 2016 05:16
WAVE & TAB breakup inconsistency Orrin FLUENT 0 January 7, 2009 11:02
Inconsistency of GRidgen Prapanj Pointwise & Gridgen 3 September 30, 2007 15:08
problem in solving "wave generation" problem san FLUENT 2 April 3, 2006 23:37
Units inconsistency (CFX5.5) gilberto CFX 3 December 14, 2001 19:03


All times are GMT -4. The time now is 02:22.