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/bubbleFoam/liftDragCoeffs.H

17 lines
464 B
C++
Raw Permalink Normal View History

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));