db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
18 lines
447 B
C++
18 lines
447 B
C++
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));
|