|
[Sponsors] |
May 19, 2020, 03:38 |
questions about interFoam
|
#1 |
New Member
jiaxin li
Join Date: Mar 2020
Posts: 1
Rep Power: 0 |
Hi!
I'm new about OpenFoam.I followed the dambreak tutorial but had some confusions. Now I know the file "setFieldsDict". It gives a nonuniform initial condition about phase fraction.(air=0,water=1) At the same time ,OpenFoam use "transportproperties"file give the nu and density of water and air(See below) But what I don't understand is how OpenFoam choose properties in "transportproperties"file as the property of phase-0 or phase-1.Because I don't see a clear correspondence between the two files.In other words, why OpenFoam give the water property to phase-1 rather than phase-0. thanks for your help. defaultFieldValues ( volScalarFieldValue alpha.water 0 ); regions ( boxToCell { box (0 0 -1) (0.1461 0.292 1); fieldValues ( volScalarFieldValue alpha.water 1 ); } ); phases (water air); water { transportModel Newtonian; nu 1e-06; rho 1000; } air { transportModel Newtonian; nu 1.48e-05; rho 1; } |
|
May 20, 2020, 11:01 |
|
#2 |
Senior Member
Join Date: Aug 2015
Posts: 494
Rep Power: 14 |
You can think of alpha.water as a binary field -- if it is 1, it is water (and uses thermophysical properties for water) and if it is zero, it is air (and uses the corresponding properties). In between I'd guess it's a blend of the two, but I don't remember off the top of my head where that happens... probably wherever the thermo interFoam lives.
Caelan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
interFoam vs. simpleFoam channel flow comparison | DanM | OpenFOAM Running, Solving & CFD | 12 | January 31, 2020 15:26 |
Question about interFoam Solver | Kahnbein.Kai | OpenFOAM Running, Solving & CFD | 2 | August 26, 2019 15:36 |
interFoam (HELYX-OS) pressure boundary conditions | SFr | OpenFOAM Running, Solving & CFD | 8 | June 23, 2016 16:36 |
k-e & GAMG interFoam Schemitisation Stability Issue | JFM | OpenFOAM Running, Solving & CFD | 3 | December 1, 2015 05:58 |
three questions regarding interFoam (basic but may confuse many people) | Ya_Squall2010 | OpenFOAM Programming & Development | 0 | April 2, 2010 20:07 |