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

Define interal boundaray condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 17, 2006, 13:05
Default Hi, I'm quite new so sorry if
  #1
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
Hi, I'm quite new so sorry if the question is stupid but after reading a lot of stuff I didn't find the aswer...
So, I' m trying to simulate a simple cube inside a wind tunnel (turbulent flow); I fixed symmetryPlanes, inlet outlet but what about the interal walls of the cube? Naturally openfoam gives me errors if I treat it as walls...
Thanx
clo is offline   Reply With Quote

Old   March 17, 2006, 14:13
Default What kind of error do you have
  #2
New Member
 
Andrea Palazzi
Join Date: Mar 2009
Posts: 15
Rep Power: 8
giampippetto is on a distinguished road
What kind of error do you have?
If you're using turbFoam and FoamX to set the BC, you have to edit the boundaary conditions for k at the walls, since FoamX sets fixedValue but the solver requires zeroGradient.

Bye
Andrea
giampippetto is offline   Reply With Quote

Old   March 17, 2006, 14:19
Default What kind of error do you have
  #3
New Member
 
Andrea Palazzi
Join Date: Mar 2009
Posts: 15
Rep Power: 8
giampippetto is on a distinguished road
What kind of error do you have?
If you're using turbFoam and FoamX to set the BC, you have to edit the boundaary conditions for k at the walls, since FoamX sets fixedValue but the solver requires zeroGradient.

Bye
Andrea
giampippetto is offline   Reply With Quote

Old   March 17, 2006, 14:23
Default the program recognize that the
  #4
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
the program recognize that these walls are interal and the mesh creation is aborted...I'm working in 3D.
clo is offline   Reply With Quote

Old   March 20, 2006, 04:19
Default Looks like your mesh isn't cor
  #5
New Member
 
Andrea Palazzi
Join Date: Mar 2009
Posts: 15
Rep Power: 8
giampippetto is on a distinguished road
Looks like your mesh isn't correctly defined... you can take a look at this case for a working example, a 2d cylinder.

fatcyl.tar.gz

Bye
Andrea
giampippetto is offline   Reply With Quote

Old   March 20, 2006, 04:24
Default sorry I can't download the fil
  #6
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
sorry I can't download the file...anyway I'm working in 3D so it doesn't look very interesting for me..
clo is offline   Reply With Quote

Old   March 20, 2006, 05:46
Default I downloaded the file but it i
  #7
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
I downloaded the file but it isn't very helpfull...thanx anyway! What I m looking for is a simple 3D case with a obstacle inside a flow to see how boundary conditions are defined on the walls of the obstacle...
clo is offline   Reply With Quote

Old   March 20, 2006, 05:49
Default What are your 'internal walls'
  #8
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
What are your 'internal walls'? OpenFOAM only allows boundary conditions on external faces.
mattijs is offline   Reply With Quote

Old   March 20, 2006, 08:32
Default A 2D case differs from a 3D on
  #9
New Member
 
Andrea Palazzi
Join Date: Mar 2009
Posts: 15
Rep Power: 8
giampippetto is on a distinguished road
A 2D case differs from a 3D only for some empty patches; the patches representing the cylinder walls have the same boundary conditions in 2D and 3D.

Bye
Andrea
giampippetto is offline   Reply With Quote

Old   March 20, 2006, 09:21
Default here that's the message error
  #10
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
here that's the message error when I try to give empty patches at internal walls:

--> FOAM FATAL ERROR : This mesh contains patches of type empty but is not 1D or 2D
by virtue of the fact that the number of faces of this
empty patch is not divisible by the number of cells.
clo is offline   Reply With Quote

Old   March 20, 2006, 09:45
Default Mattijs, I'm trying to specify
  #11
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
Mattijs, I'm trying to specify a little volume that forms an obstacle for a straight flow. For example in the 2D case DamBreak in the tutorial there is a step:if you try to put a third dimension to that case OpenFoam crashes the calculation because it gives empty boundary conditions to the internal surfaces that are specified to generate the geometry.


I understand that my explications are quite poor but in simple words I want to create an example like DamBreak in 3D
clo is offline   Reply With Quote

Old   March 20, 2006, 09:59
Default Hi clo! (Concerning your mess
  #12
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi clo!
(Concerning your message from 6:21. That is an output from the solver, right?)

If I understand you correctly, what you'll want to do is assign a physical boundary condition (for instance 'wall') to that cube.

'empty' is only applicable for cases with dim<3 because OF always solves in 3D and empty helps to 'stretch' the geometry in the direction of the superfluous dimensions into infinity. But that is descibed somewhere in the UserManual in much better words.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 20, 2006, 10:07
Default Hi Bernhard, what you say it's
  #13
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
Hi Bernhard, what you say it's right. I can't find a 3D example that shows me the difference how to treat surfaces used to create geometry and suraces that are real walls!
clo is offline   Reply With Quote

Old   March 20, 2006, 10:18
Default Hi! Perhaps the nacaAirfoil
  #14
Member
 
Andreas Hauffe
Join Date: Mar 2009
Location: Dresden, Germany
Posts: 36
Rep Power: 8
andimb is on a distinguished road
Hi!

Perhaps the nacaAirfoil tutorial for sonicTurbFoam will help you.

Andreas
andimb is offline   Reply With Quote

Old   March 20, 2006, 10:28
Default Hi Andreas! Unfortunately this
  #15
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
Hi Andreas! Unfortunately this is a 2D example...
clo is offline   Reply With Quote

Old   March 20, 2006, 10:37
Default Hi! Yeah, but I thought, yo
  #16
Member
 
Andreas Hauffe
Join Date: Mar 2009
Location: Dresden, Germany
Posts: 36
Rep Power: 8
andimb is on a distinguished road
Hi!

Yeah, but I thought, you want to know, how to set the internal walls, like the airfoil. If you set the empty patch at the to sides in this tutorial to a symmetry plane, you have a 3D case.
Ok, with 1 hexa-Element in z-direction.
But it should be the same, or?

Andreas
andimb is offline   Reply With Quote

Old   March 20, 2006, 10:46
Default but how can 1 element shows me
  #17
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
but how can 1 element shows me the flow in the Z direction? (for example in the airfoil case downwash effect)? it's 2D view as 3D!
clo is offline   Reply With Quote

Old   March 20, 2006, 10:51
Default Hi! It cannot. I know. But
  #18
Member
 
Andreas Hauffe
Join Date: Mar 2009
Location: Dresden, Germany
Posts: 36
Rep Power: 8
andimb is on a distinguished road
Hi!

It cannot. I know. But I thought the problem is to define the boundary conditions. And this is the same. It doesn't matter if there are 1 or more Elements.
Perhaps I didn't understand the problem.

Andreas
andimb is offline   Reply With Quote

Old   March 20, 2006, 10:56
Default the proble is tha t this error
  #19
clo
Member
 
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 8
clo is on a distinguished road
the proble is tha t this error is shown

--> FOAM FATAL ERROR : This mesh contains patches of type empty but is not 1D or 2D
by virtue of the fact that the number of faces of this
empty patch is not divisible by the number of cells.

The only way is to find a real 3D example...
clo is offline   Reply With Quote

Old   March 20, 2006, 11:08
Default Clo, tell me if I'm understand
  #20
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Clo, tell me if I'm understand the problem you want to simulate correctly: you want to simulate a cube that is suspended (by some mystic force) in mid-air in a wind tunnel. That is a setup that rarley occurs in real live, but it's a perfectly fine example case.

Now. You and me speak of the cube as "being inside the wind tunnel" but for the unsuspecting air molecule (and therefor for the whole fluid) the wall of the cube isn't different from the wall of the wind tunnel. Therefor for the flow the cube is an external boundary and 'wall' is a good starting point for a physical boundary condition. If you want to try different boundary conditions look at table 6.3 and 6.4 in the UserGuide, but NOT table 6.2.

In my definition the wall of the cube is only an 'internal' wall if there is a grid inside the cube (is that the case?)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to define boundary condition for UDS ? Joesphe FLUENT 0 May 22, 2007 15:35
boundaray conditions icho mehdi FLUENT 3 April 13, 2002 16:47
How to define the condition of inlet ?? kevin FLUENT 0 March 3, 2002 23:32
How to define the condition of inlet ?? kevin FLUENT 1 February 27, 2002 01:27
How to define the boundary condition Merkle FLUENT 0 December 1, 2000 05:01


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