57 lines
1.5 KiB
C++
57 lines
1.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: 10
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object setFieldsDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
defaultFieldValues
|
|
(
|
|
volScalarFieldValue alpha.water 1
|
|
volScalarFieldValue alpha.oil 0
|
|
);
|
|
|
|
regions
|
|
(
|
|
/*boxToCell
|
|
{
|
|
box (-0.001414 -0.001414 -0.001) (0.001414 0.001414 0.001);
|
|
fieldValues
|
|
(
|
|
volScalarFieldValue alpha.water 1
|
|
);
|
|
}*/
|
|
sphereToCell
|
|
{
|
|
centre (-1.414e-05 0 0); //(-1.0e-5 0 0);//(-1.414e-5 0 0);
|
|
radius 0.7e-5; // 0.722e-5
|
|
fieldValues
|
|
(
|
|
volScalarFieldValue alpha.water 0
|
|
volScalarFieldValue alpha.oil 1
|
|
);
|
|
}
|
|
sphereToCell
|
|
{
|
|
centre (1.414e-05 0 0); //(-1.0e-5 0 0);//(-1.414e-5 0 0);
|
|
radius 0.7e-5;
|
|
fieldValues
|
|
(
|
|
volScalarFieldValue alpha.water 0
|
|
volScalarFieldValue alpha.oil 1
|
|
);
|
|
}
|
|
);
|
|
|
|
|
|
// ************************************************************************* //
|