The new multiphaseEulerFoam is based on reactingMultiphaseEulerFoam with some improvements and rationalisation to assist maintenance and further development. The phase system solution has been enhanced to handle two phases more effectively and all two-phase specific models updated for compatibility so that multiphaseEulerFoam can also replace reactingTwoPhaseEulerFoam. When running multiphaseEulerFoam with only two-phases the default behaviour is to solve for both phase-fractions but optionally a reference phase can be specified so that only the other phase-fraction is solved, providing better compatibility with the behaviour of reactingTwoPhaseEulerFoam. All reactingMultiphaseEulerFoam and reactingTwoPhaseEulerFoam tutorials have been updated for multiphaseEulerFoam.
72 lines
1.5 KiB
C++
72 lines
1.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application multiphaseEulerFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 10;
|
|
|
|
deltaT 0.1;
|
|
|
|
writeControl runTime;
|
|
|
|
writeInterval 10;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression uncompressed;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep no;
|
|
|
|
maxCo 0.5;
|
|
|
|
maxDeltaT 1;
|
|
|
|
functions
|
|
{
|
|
numberDensity
|
|
{
|
|
type sizeDistribution;
|
|
functionObjectLibs ("libmultiphaseEulerFoamFunctionObjects.so");
|
|
|
|
writeControl outputTime;
|
|
writeInterval 1;
|
|
|
|
populationBalance bubbles;
|
|
functionType number;
|
|
coordinateType volume;
|
|
densityFunction yes;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|