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
16 lines
464 B
C++
16 lines
464 B
C++
volVectorField Ur = Ua - Ub;
|
|
volScalarField magUr = mag(Ur);
|
|
|
|
volScalarField CdaMagUr =
|
|
(24.0*nub/da)*(scalar(1) + 0.15*pow(da*magUr/nub, 0.687));
|
|
|
|
volScalarField CdbMagUr =
|
|
(24.0*nua/db)*(scalar(1) + 0.15*pow(db*magUr/nua, 0.687));
|
|
|
|
volScalarField dragCoef
|
|
(
|
|
"Cd",
|
|
0.75*(beta*rhob*CdaMagUr/da + alpha*rhoa*CdbMagUr/db)
|
|
);
|
|
|
|
volVectorField liftCoeff = Cl*(beta*rhob + alpha*rhoa)*(Ur ^ fvc::curl(U));
|