|
[Sponsors] |
April 4, 2010, 22:35 |
Set liquid level in a Tank
|
#1 |
New Member
Benjamin
Join Date: Jan 2010
Posts: 9
Rep Power: 16 |
Hello! I want to simulate a two phase mixing tank (air-water). I want to set the water level at a high of 0.26 meters in the y direction in the tank before the operation starts.
My overall domain is: (-0.129986 0 -0.129999) (0.13 0.35 0.129999) I want to simulate two cases: 1. Without airation, using MRFSimpleFoam. 2. With airation, using MRFTwoPhaseEulerFoam. For the first case I don't know how to set the liquid level. For the second case I have tried setFields, but I don't know if it is correct. My setFieldsDict is: regions ( boxToCell { box (-0.129986 0 -0.12.9999) (0.13 0.26 0.12999); fieldValues ( volScalarFieldValue alpha 0 ); } ); Could anybody help me to set the liquid level in the first case and say to me if in the second case the configuration is ok? Thanks in advance. |
|
April 6, 2010, 05:07 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37 |
The alpha value should be set to 1 not 0.
Best regards, Niels |
|
April 6, 2010, 11:52 |
|
#3 |
Member
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 67
Rep Power: 17 |
Try something like this:
Code:
defaultFieldValues ( volScalarFieldValue alpha1 0 // default value for the domain ); regions ( boxToCell { box (-0.129986 0 -0.12.9999) (0.13 0.26 0.12999); fieldValues ( volScalarFieldValue alpha1 1 // value for the specified region ); } ); |
|
April 6, 2010, 20:39 |
|
#4 |
New Member
Benjamin
Join Date: Jan 2010
Posts: 9
Rep Power: 16 |
But alpha is the dispersed phase volume fraction right? so if i put alpha equal to 1 it is like if my tank is fill with air, not with water I think. I am confused. Correct me if I am wrong. Thank you for your reply.
|
|
April 7, 2010, 00:46 |
|
#5 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Hello,
MRFSimpleFoam is a single-phase solver, so you cannot specify the level of the liquid, since there is only one phase. I assume MRFTwoPhaseEulerFoam is your extension of twoPhaseEulerFoam, since I've not seen a solver with that name :-) However you are correct: alphas is the volume fraction of the dispersed phase. As suggested above, setFields should work to set alpha. Take a look at the examples for twoPhaseEulerFoam. Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
Tags |
level, liquid, tank |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic sloshing and hydrodynamic modeling of liquid storage tank for earthquake | K i M | Main CFD Forum | 14 | April 22, 2011 23:24 |
calculating Normal vector in level set method | amir2920 | Main CFD Forum | 1 | July 21, 2009 08:25 |
using level set method | rubby | Main CFD Forum | 2 | March 7, 2009 03:02 |
liquid level in a vertical pipe | gorman | FLUENT | 2 | November 22, 2001 12:44 |
Level Set in Cavitation Modeling | Niklas Wikstrom | Main CFD Forum | 1 | September 9, 1999 14:08 |