|
[Sponsors] |
March 17, 2006, 13:05 |
Hi, I'm quite new so sorry if
|
#1 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
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 |
|
March 17, 2006, 14:13 |
What kind of error do you have
|
#2 |
New Member
Andrea Palazzi
Join Date: Mar 2009
Posts: 15
Rep Power: 17 |
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 |
|
March 17, 2006, 14:19 |
What kind of error do you have
|
#3 |
New Member
Andrea Palazzi
Join Date: Mar 2009
Posts: 15
Rep Power: 17 |
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 |
|
March 17, 2006, 14:23 |
the program recognize that the
|
#4 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
the program recognize that these walls are interal and the mesh creation is aborted...I'm working in 3D.
|
|
March 20, 2006, 04:19 |
Looks like your mesh isn't cor
|
#5 |
New Member
Andrea Palazzi
Join Date: Mar 2009
Posts: 15
Rep Power: 17 |
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 |
|
March 20, 2006, 04:24 |
sorry I can't download the fil
|
#6 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
sorry I can't download the file...anyway I'm working in 3D so it doesn't look very interesting for me..
|
|
March 20, 2006, 05:46 |
I downloaded the file but it i
|
#7 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
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...
|
|
March 20, 2006, 05:49 |
What are your 'internal walls'
|
#8 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
What are your 'internal walls'? OpenFOAM only allows boundary conditions on external faces.
|
|
March 20, 2006, 08:32 |
A 2D case differs from a 3D on
|
#9 |
New Member
Andrea Palazzi
Join Date: Mar 2009
Posts: 15
Rep Power: 17 |
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 |
|
March 20, 2006, 09:21 |
here that's the message error
|
#10 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
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. |
|
March 20, 2006, 09:45 |
Mattijs, I'm trying to specify
|
#11 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
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 |
|
March 20, 2006, 09:59 |
Hi clo!
(Concerning your mess
|
#12 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
March 20, 2006, 10:07 |
Hi Bernhard, what you say it's
|
#13 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
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!
|
|
March 20, 2006, 10:18 |
Hi!
Perhaps the nacaAirfoil
|
#14 |
Member
Andreas Hauffe
Join Date: Mar 2009
Location: Dresden, Germany
Posts: 36
Rep Power: 17 |
Hi!
Perhaps the nacaAirfoil tutorial for sonicTurbFoam will help you. Andreas |
|
March 20, 2006, 10:28 |
Hi Andreas! Unfortunately this
|
#15 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
Hi Andreas! Unfortunately this is a 2D example...
|
|
March 20, 2006, 10:37 |
Hi!
Yeah, but I thought, yo
|
#16 |
Member
Andreas Hauffe
Join Date: Mar 2009
Location: Dresden, Germany
Posts: 36
Rep Power: 17 |
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 |
|
March 20, 2006, 10:46 |
but how can 1 element shows me
|
#17 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
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!
|
|
March 20, 2006, 10:51 |
Hi!
It cannot. I know. But
|
#18 |
Member
Andreas Hauffe
Join Date: Mar 2009
Location: Dresden, Germany
Posts: 36
Rep Power: 17 |
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 |
|
March 20, 2006, 10:56 |
the proble is tha t this error
|
#19 |
Member
clo
Join Date: Mar 2009
Posts: 36
Rep Power: 17 |
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... |
|
March 20, 2006, 11:08 |
Clo, tell me if I'm understand
|
#20 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to define boundary condition for UDS ? | Joesphe | FLUENT | 0 | May 22, 2007 16:35 |
boundaray conditions | icho mehdi | FLUENT | 3 | April 13, 2002 17: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 |