This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/multiphase/twoPhaseEulerFoam/liftDragCoeffs.H

19 lines
447 B
C
Raw Normal View History

volVectorField Ur = Ua - Ub;
volScalarField magUr = mag(Ur);
volScalarField Ka = draga->K(magUr);
volScalarField K = Ka;
if (dragPhase == "b")
{
volScalarField Kb = dragb->K(magUr);
K = Kb;
}
else if (dragPhase == "blended")
{
volScalarField Kb = dragb->K(magUr);
K = (beta*Ka + alpha*Kb);
}
volVectorField liftCoeff = Cl*(beta*rhob + alpha*rhoa)*(Ur ^ fvc::curl(U));