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

filling a tank with water

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

Like Tree1Likes
  • 1 Post By wouter

Reply
 
LinkBack Thread Tools Display Modes
Old   June 11, 2014, 09:50
Default filling a tank with water
  #1
New Member
 
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 7
ashghan is on a distinguished road
Hello,

I am trying to fill a tank with water as shown in the figure. The red line indicates the water inlet at t=0 and the green line indicates the air exit. The picture was taken at 46 secs with the timestep being 0.0001. I have been running the case for over two weeks and the water level stopped to be filled in as in the screenshot. I am using the following initial conditions.

alpha.water
Code:
dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            inletOutlet;
        inletValue      uniform 1;
        value           uniform 1;
    }
    outlet
    {
        type            zeroGradient;
    }
    walls
    {
        type            zeroGradient;
    }
}
p_rgh
Code:
dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }

    outlet
    {
        type            outletInlet;
	outletValue	uniform 0;
    	value		uniform 0;
    }

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

    
}
U
Code:
dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type           fixedValue;
        value           uniform (2 0 0);
    }

    outlet
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }

    walls
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

    
}
Can somebody indicate me where I am going wrong or tell me how to speed up the calculation.

Regards
Ashwin
Attached Images
File Type: jpg filling .jpg (12.9 KB, 155 views)
ashghan is offline   Reply With Quote

Old   June 11, 2014, 18:11
Default
  #2
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 187
Rep Power: 10
wouter is on a distinguished road
hello ashghan,
The problem is the pressure definition. The number of variables is not equal to the number of freedom. Your system needs a point where the pressure is known.
If you look at the angledDuct turorial and remove the viscosity things (in 0 dir two boundaries, in fvOptions remove all you have a working case. I did this with a simple form of your fueltank? It ran for less than 4 hours.
I enclosed my case, but I had to remove the mesh because of the size restrictions.

Hope this helps
Wouter
Attached Images
File Type: jpg time18_5.jpg (22.3 KB, 135 views)
Attached Files
File Type: gz fueltank.tar.gz (2.5 KB, 115 views)
behcfd likes this.

Last edited by wouter; June 15, 2014 at 18:00.
wouter is offline   Reply With Quote

Old   June 18, 2014, 08:28
Default
  #3
New Member
 
ashwin
Join Date: Jul 2012
Location: erlangen
Posts: 26
Rep Power: 7
ashghan is on a distinguished road
Hey,

Yeah it works. Thanks


Quote:
Originally Posted by wouter View Post
hello ashghan,
The problem is the pressure definition. The number of variables is not equal to the number of freedom. Your system needs a point where the pressure is known.
If you look at the angledDuct turorial and remove the viscosity things (in 0 dir two boundaries, in fvOptions remove all you have a working case. I did this with a simple form of your fueltank? It ran for less than 4 hours.
I enclosed my case, but I had to remove the mesh because of the size restrictions.

Hope this helps
Wouter
ashghan is offline   Reply With Quote

Old   August 21, 2017, 07:15
Default Help
  #4
New Member
 
Join Date: Feb 2013
Posts: 19
Rep Power: 6
me12p1006 is on a distinguished road
Hi,

I am trying to solve water filling bottle tutorial from long back (http://www.tfd.chalmers.se/~hani/kur...Hemida_VOF.pdf). I am not getting reasonable results.

I used inlet velocity as 0.1 m/sec. I am attaching my FOAM files. Please kindly let me know what mistake I am doing.
Attached Files
File Type: zip bottlefill.zip (8.9 KB, 1 views)
me12p1006 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
Filling Tank with Water leff CFX 7 August 21, 2017 07:47
Filling tank with water Bin ANSYS 1 August 21, 2017 07:17
Simple Water Tank Transient 88phil88 CFX 5 March 17, 2014 04:48
Mixture and Decay of a tracer in a Water Tank Jeffrey1992 CFX 2 July 27, 2012 13:31
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 23:13.