changed: never allow negative y+ in SAWallLaw
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@2927 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
@@ -40,6 +40,7 @@ bool SAWallLaw::computeYplus(double y, double nu, double utan, double& yplus) co
|
||||
while ((fabs(r) > rtol) && (it < maxit)) {
|
||||
drdyplus = -y*utan/(nu*yplus*yplus) - SA.dupdyp(yplus);
|
||||
yplus -= r/drdyplus;
|
||||
yplus = fabs(yplus);
|
||||
uplus = y*utan/(nu*yplus);
|
||||
r = uplus - SA.up(yplus);
|
||||
it++;
|
||||
|
||||
Reference in New Issue
Block a user