|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Mar 2017
Posts: 3
Rep Power: 9 ![]() |
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 ); } ); 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; } } 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! Last edited by wyldckat; April 25, 2017 at 07:36. Reason: Added [CODE][/CODE] markers |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Join Date: Mar 2017
Posts: 3
Rep Power: 9 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Helvines Aquino
Join Date: Aug 2016
Posts: 13
Rep Power: 10 ![]() |
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) |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Join Date: Mar 2017
Posts: 3
Rep Power: 9 ![]() |
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... |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
W.T
Join Date: Oct 2012
Posts: 35
Rep Power: 13 ![]() |
Hi
icoFoam is single phase incompressible solver. Look at interFoam solvers (multiphase) for solving your problem. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |