In this tutorial, a multi-phase 2D flow will be simulated using interFoam.
$FOAM_RUN/tutorials/multiphase/interFoam/laminar
Two phase conditions of 1 is assigned to water block and 0 to air. To do so, a few things need to be done:
1. cp 0/alpha.water.org 0/alpha.water
2. Remove alpha.water.org or cut it to some other directories, otherwise paraFoam will
read alpha.water.org for your 0s time frame. (Note that this is not pointed out in
UserManual)
3. Use command setFields to write phase fraction info in alpha.water.
4. Run the case using "tee" to store log files, command interFoam | tee log
Before showing any of results, note that the below lines in "setFieldsDict" under "system" directory are given:
defaultFieldValues
(
volScalarFieldValue alpha.water 0
);
regions
(
boxToCell
{
box (0 0 -1) (0.1461 0.292 1); //The box here defines min and max coordinate of box
containing the water phase.
fieldValues
(
volScalarFieldValue alpha.water 1
);
}
);
$FOAM_RUN/tutorials/multiphase/interFoam/laminar
Two phase conditions of 1 is assigned to water block and 0 to air. To do so, a few things need to be done:
1. cp 0/alpha.water.org 0/alpha.water
2. Remove alpha.water.org or cut it to some other directories, otherwise paraFoam will
read alpha.water.org for your 0s time frame. (Note that this is not pointed out in
UserManual)
3. Use command setFields to write phase fraction info in alpha.water.
4. Run the case using "tee" to store log files, command interFoam | tee log
Before showing any of results, note that the below lines in "setFieldsDict" under "system" directory are given:
defaultFieldValues
(
volScalarFieldValue alpha.water 0
);
regions
(
boxToCell
{
box (0 0 -1) (0.1461 0.292 1); //The box here defines min and max coordinate of box
containing the water phase.
fieldValues
(
volScalarFieldValue alpha.water 1
);
}
);