mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- place under compressibleInterFoam to ensure that the library dependency on VoFphaseCompressibleTurbulenceModels is satisfied
16 lines
457 B
C
16 lines
457 B
C
// Update alpha1
|
|
#include "alphaSuSp.H"
|
|
advector.advect(Sp,(Su + divU*min(alpha1(), scalar(1)))());
|
|
|
|
// Update rhoPhi
|
|
rhoPhi = advector.getRhoPhi(rho1, rho2);
|
|
alphaPhi10 = advector.alphaPhi();
|
|
|
|
alpha2 = 1.0 - alpha1;
|
|
|
|
Info<< "Phase-1 volume fraction = "
|
|
<< alpha1.weightedAverage(mesh.Vsc()).value()
|
|
<< " Min(" << alpha1.name() << ") = " << min(alpha1).value()
|
|
<< " Max(" << alpha1.name() << ") - 1 = " << max(alpha1).value() - 1
|
|
<< endl;
|