In multiphase systems it is only necessary to solve for all but one of the moving phases. The new referencePhase option allows the user to specify which of the moving phases should not be solved, e.g. in constant/phaseProperties of the tutorials/multiphase/reactingMultiphaseEulerFoam/RAS/fluidisedBed tutorial case with phases (particles air); referencePhase air; the particles phase is solved for and the air phase fraction and fluxes obtained from the particles phase which provides equivalent behaviour to reactingTwoPhaseEulerFoam and is more efficient than solving for both phases.
96 lines
1.9 KiB
C++
96 lines
1.9 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 reactingMultiphaseEulerFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 2;
|
|
|
|
deltaT 2e-4;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 0.01;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat binary;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable on;
|
|
|
|
adjustTimeStep yes;
|
|
|
|
maxCo 2;
|
|
|
|
maxDeltaT 0.01;
|
|
|
|
functions
|
|
{
|
|
fieldAverage1
|
|
{
|
|
type fieldAverage;
|
|
libs ("libfieldFunctionObjects.so");
|
|
writeControl writeTime;
|
|
fields
|
|
(
|
|
U.particles
|
|
{
|
|
mean on;
|
|
prime2Mean off;
|
|
base time;
|
|
}
|
|
|
|
U.air
|
|
{
|
|
mean on;
|
|
prime2Mean off;
|
|
base time;
|
|
}
|
|
|
|
alpha.particles
|
|
{
|
|
mean on;
|
|
prime2Mean off;
|
|
base time;
|
|
}
|
|
|
|
p
|
|
{
|
|
mean on;
|
|
prime2Mean off;
|
|
base time;
|
|
}
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|