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

Water into 3D room

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 1, 2009, 12:04
Default Water into 3D room
  #1
Member
 
Dennis Rown
Join Date: Oct 2009
Posts: 51
Rep Power: 7
shangzung is on a distinguished road
Hello!

I am trying to simulate water entering a 3D tunnel through a hole on the ceiling. Somehow the simulation crashes after a couple of timesteps and i assume the error lies in the boundary conditions. I am working with interFoam. Here are the BC's:

alpha1:

tunnelWalls
{
type zeroGradient;
}

tunnelHole
{
type fixedValue;
value uniform 0.7;
}

tunnelPortals
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}

defaultFaces
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}


p:

tunnelWalls
{
type buoyantPressure;
value uniform 0;
}

tunnelHole
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
}

tunnelPortals
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
}

defaultFaces
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 0;
}

U:

tunnelWalls
{
type fixedValue;
value uniform (0 0 0);
}
tunnelHole
{
type fixedValue;
value uniform (0 0 0);
}
tunnelPortals
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
defaultFaces
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}

Is there an error that could cause the instability?
shangzung is offline   Reply With Quote

Old   January 15, 2010, 09:13
Default
  #2
New Member
 
Robert Langner
Join Date: Dec 2009
Location: Freiburg, Germany
Posts: 27
Rep Power: 7
Robat is on a distinguished road
Hi shangzung,

you may set some water-filled cells at your inlet, so you got some medium which can be influenced by your force(gravity). That's pretty easy with the setFieldsDict.
Or your water might leak out to fast, try to wall the oulets and make another hole in the ceiling (or use the ceiling itself) as a new outlet just temporary for checking.
I calculated a similar case some time ago(glass filled by water-tap). There were nearly the same conditions, except the pressure: I set the inlet to zeroGradient and the whole system to a higher pressure than 0 pascal.
May be you already done this( I don't know.): make adjustable and smaller timesteps and limit the Courant number.

I hope this is helpfully.
Regards, Robert
Robat is offline   Reply With Quote

Old   January 15, 2010, 10:47
Default
  #3
kpm
New Member
 
kpm
Join Date: Jan 2010
Location: Germany
Posts: 9
Rep Power: 7
kpm is on a distinguished road
I believe that Your crashes are due to large time steps.
You could try "maxCo 0.10" in controlDict to be on the safe side and see if it helps.

You could also use a different software for that, depending on what Your goal is.
The free 3D rendering software Blender contains a fluid simulator based on El'Beem which is quite good in making flowing water look convincingly, the fluid simulator is pretty fast and easy to use.
I used both, Blender and OpenFOAM, for flowing water, with the goal "convincing appearance".
In my opinion, the OpenFOAM-Paraview-combination is usually inferior to Blender in terms of computational effort and visual quality of the result (not necessarily in terms of physical "correctness", though).
So if You just want to see some convincing flowing water, Blender would usually be the better tool.
Blender itself might be a pain to use for a beginner, though...
so if Your goal was to practice OpenFOAM, stick with OpenFOAM.
kpm 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
condensation of water vapour at room walls Felix FLUENT 0 September 14, 2007 11:03
heat transfer: air in a room and water in a coil Alberto CFX 2 May 9, 2006 09:56
Water vapour condensation in CFX-5.7.1 hdj CFX 1 November 27, 2005 08:15
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
uptodate water distribution network fredius,magige,tanzanian,(e.a) Main CFD Forum 0 January 27, 2002 08:10


All times are GMT -4. The time now is 18:31.