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

Set liquid level in a Tank

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2010, 21:35
Default Set liquid level in a Tank
  #1
New Member
 
Benjamin
Join Date: Jan 2010
Posts: 9
Rep Power: 16
chemeng is on a distinguished road
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.
chemeng is offline   Reply With Quote

Old   April 6, 2010, 04:07
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
The alpha value should be set to 1 not 0.

Best regards,

Niels
ngj is offline   Reply With Quote

Old   April 6, 2010, 10:52
Default
  #3
Member
 
Piotr Prusinski
Join Date: Oct 2009
Location: Warsaw, Poland
Posts: 67
Rep Power: 16
piprus is on a distinguished road
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
   );
   }
 );
piprus is offline   Reply With Quote

Old   April 6, 2010, 19:39
Default
  #4
New Member
 
Benjamin
Join Date: Jan 2010
Posts: 9
Rep Power: 16
chemeng is on a distinguished road
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.
chemeng is offline   Reply With Quote

Old   April 6, 2010, 23:46
Default
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
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.
alberto is offline   Reply With Quote

Reply

Tags
level, liquid, tank


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
Dynamic sloshing and hydrodynamic modeling of liquid storage tank for earthquake K i M Main CFD Forum 14 April 22, 2011 22:24
calculating Normal vector in level set method amir2920 Main CFD Forum 1 July 21, 2009 07:25
using level set method rubby Main CFD Forum 2 March 7, 2009 02:02
liquid level in a vertical pipe gorman FLUENT 2 November 22, 2001 11:44
Level Set in Cavitation Modeling Niklas Wikstrom Main CFD Forum 1 September 9, 1999 13:08


All times are GMT -4. The time now is 06:26.