CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

questions about interFoam

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

LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2020, 03:38
Smile questions about interFoam
New Member
jiaxin li
Join Date: Mar 2020
Posts: 1
Rep Power: 0
jiaxin li is on a distinguished road
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.

volScalarFieldValue alpha.water 0

box (0 0 -1) (0.1461 0.292 1);
volScalarFieldValue alpha.water 1

phases (water air);

transportModel Newtonian;
nu 1e-06;
rho 1000;

transportModel Newtonian;
nu 1.48e-05;
rho 1;
jiaxin li is offline   Reply With Quote

Old   May 20, 2020, 11:01
Senior Member
Join Date: Aug 2015
Posts: 393
Rep Power: 9
clapointe is on a distinguished road
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.

clapointe is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

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

All times are GMT -4. The time now is 08:18.