mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
atmBoundaryLayer: Removed the hard-coded limit on z0
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1638
This commit is contained in:
@ -71,7 +71,7 @@ atmBoundaryLayer::atmBoundaryLayer(const vectorField& p, const dictionary& dict)
|
|||||||
flowDir_ /= mag(flowDir_);
|
flowDir_ /= mag(flowDir_);
|
||||||
zDir_ /= mag(zDir_);
|
zDir_ /= mag(zDir_);
|
||||||
|
|
||||||
Ustar_ = kappa_*Uref_/(log((Zref_ + z0_)/max(z0_, scalar(0.001))));
|
Ustar_ = kappa_*Uref_/(log((Zref_ + z0_)/z0_));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ tmp<vectorField> atmBoundaryLayer::U(const vectorField& p) const
|
|||||||
scalarField Un
|
scalarField Un
|
||||||
(
|
(
|
||||||
(Ustar_/kappa_)
|
(Ustar_/kappa_)
|
||||||
*log(((zDir_ & p) - zGround_ + z0_)/max(z0_, scalar(0.001)))
|
*log(((zDir_ & p) - zGround_ + z0_)/z0_)
|
||||||
);
|
);
|
||||||
|
|
||||||
return flowDir_*Un;
|
return flowDir_*Un;
|
||||||
|
|||||||
Reference in New Issue
Block a user