Files
openfoam/applications/solvers/multiphase/interFoam/UBlendingFactor.H

7 lines
198 B
C

surfaceScalarField alpha1f = fvc::interpolate(alpha1);
surfaceScalarField UBlendingFactor
(
"UBlendingFactor",
sqrt(max(min(4*alpha1f*(1.0 - alpha1f), 1.0), 0.0))
);