contactAngleModels: Corrected handling of contact angle conversion from degrees to radians

This commit is contained in:
Henry Weller
2024-06-28 17:22:21 +01:00
parent 303e3d1f60
commit cb5d40932a
2 changed files with 5 additions and 5 deletions

View File

@ -81,8 +81,8 @@ Foam::contactAngleModels::dynamic::cosTheta
return cos return cos
( (
theta0_ theta0_
+ thetaRec_ - theta0_*max(uCoeff, scalar(0)) + (thetaRec_ - theta0_)*max(uCoeff, scalar(0))
- thetaAdv_ - theta0_*min(uCoeff, scalar(0)) - (thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
); );
} }

View File

@ -72,9 +72,9 @@ Foam::contactAngleModels::gravitational::cosTheta
return cos return cos
( (
degToRad(theta0_) theta0_
+ degToRad(thetaRec_ - theta0_)*max(uCoeff, scalar(0)) + (thetaRec_ - theta0_)*max(uCoeff, scalar(0))
- degToRad(thetaAdv_ - theta0_)*min(uCoeff, scalar(0)) - (thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
); );
} }