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

Define water level in icoFOam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2017, 03:27
Default Define water level in icoFOam
  #1
New Member
 
Join Date: Mar 2017
Posts: 3
Rep Power: 9
steffn87 is on a distinguished road
Hi everyone,

perhaps someone could help me with the icoFom solver.
I build up with blockMesh a tank with a tiny output for water discharge.

With the setFieldsDict File i defined a water level in the tank for the first simulation step.

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
    volScalarFieldValue alpha.water 0
);

regions
(
    boxToCell
    {
        box (0.01 0.51 -0.05) (2.99 1 0.05);
        fieldValues
        (
            volScalarFieldValue alpha.water 1
        );
    }
);
This is my alpha.water File:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
             type        zeroGradient;
      
    }
    outlet
    {
             type        zeroGradient;
    }

    fixedWalls
    {
             type        zeroGradient;
    }
defaultFaces
    {
        type            empty;
    }

}
Now i am searching for a solver (to define the fvSolution File) in icoFoam to solve alpha.water.

In the end it should be a nearly constant water level and a constant discharge to prove Toricellis law.

I am just using OpenFOAM since 3 weeks, so i am really a newbie

Thank you very much for your help or new thought processes!
Attached Images
File Type: jpg icoFoam_waterLevel.jpg (76.7 KB, 37 views)

Last edited by wyldckat; April 25, 2017 at 07:36. Reason: Added [CODE][/CODE] markers
steffn87 is offline   Reply With Quote

Old   March 8, 2017, 04:17
Default Define water level in icoFOam
  #2
New Member
 
Join Date: Mar 2017
Posts: 3
Rep Power: 9
steffn87 is on a distinguished road
Hi everyone,

im searching for a way to define a beginning water level in an open tank with icoFoam.

I tried it with the SetFiledsDict, but it seems very complicated, because then i have to define an alpha.water File and also a solver in the fvSolution FIle to solve alpha.water.

Is there an easy way to just define a starting water level?

Thank you very much!!! I am very thankful for new thought processings, cause im very new in OpenFOAM...

Thanks


Steffen
steffn87 is offline   Reply With Quote

Old   March 9, 2017, 02:48
Default
  #3
New Member
 
Helvines Aquino
Join Date: Aug 2016
Posts: 13
Rep Power: 9
nesca87 is on a distinguished road
do you want to solve two phase flow problem? Because if you do, I think rather than using icoFoam, you probably want to use a multiphase solver, instead.

And yes, setFieldDicts can be used and maybe the easiest way to define the initial condition (incl. beginning level)
nesca87 is offline   Reply With Quote

Old   March 9, 2017, 05:13
Default
  #4
New Member
 
Join Date: Mar 2017
Posts: 3
Rep Power: 9
steffn87 is on a distinguished road
Hi,

thank you very much for your reply!

No i just want to calculate the discharge of an open container with a beginning water level.

My problem is that i dont know how to set a begining water level, without defining a water phase (alpha.water), that openfoam has to solve...
steffn87 is offline   Reply With Quote

Old   April 19, 2017, 05:37
Default
  #5
Member
 
W.T
Join Date: Oct 2012
Posts: 35
Rep Power: 13
dybuk is on a distinguished road
Hi
icoFoam is single phase incompressible solver.
Look at interFoam solvers (multiphase) for solving your problem.
dybuk is offline   Reply With Quote

Reply


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
Water level fall in Vof svenki7 ANSYS 2 February 24, 2015 22:57
Dam break simulation water level decreases over time aarratia FLUENT 1 May 9, 2014 10:25
UDF carbon conversion papteo Fluent UDF and Scheme Programming 1 August 18, 2011 07:32
UDF FOR UNSTEADY TIME STEP mayur FLUENT 3 August 9, 2006 10:19
uptodate water distribution network fredius,magige,tanzanian,(e.a) Main CFD Forum 0 January 27, 2002 07:10


All times are GMT -4. The time now is 03:21.