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:
parent
c08a8c97a0
commit
1449a67364
3 changed files with 5 additions and 9 deletions
|
|
@ -110,7 +110,7 @@ atmBoundaryLayerInletEpsilonFvPatchScalarField
|
|||
{
|
||||
Ustar_[i] =
|
||||
kappa_*Uref_
|
||||
/(log((Href_ + z0_[i])/max(z0_[i] , scalar(0.001))));
|
||||
/(log((Href_ + z0_[i])/z0_[i]));
|
||||
}
|
||||
|
||||
z_ /= mag(z_);
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ atmBoundaryLayerInletVelocityFvPatchVectorField
|
|||
{
|
||||
Ustar_[i] =
|
||||
kappa_*Uref_
|
||||
/(log((Href_ + z0_[i])/max(z0_[i] , scalar(0.001))));
|
||||
/(log((Href_ + z0_[i])/z0_[i]));
|
||||
}
|
||||
|
||||
const vectorField& c = patch().Cf();
|
||||
|
|
@ -129,11 +129,7 @@ atmBoundaryLayerInletVelocityFvPatchVectorField
|
|||
{
|
||||
Un[i] =
|
||||
(Ustar_[i]/kappa_)
|
||||
*log
|
||||
(
|
||||
(coord[i] - zGround_[i] + z0_[i])
|
||||
/max(z0_[i], scalar(0.001))
|
||||
);
|
||||
*log((coord[i] - zGround_[i] + z0_[i])/z0_[i]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ atmBoundaryLayer::atmBoundaryLayer(const vectorField& p, const dictionary& dict)
|
|||
flowDir_ /= mag(flowDir_);
|
||||
zDir_ /= mag(zDir_);
|
||||
|
||||
Ustar_ = kappa_*Uref_/(log((Zref_ + z0_)/max(z0_, scalar(0.001))));
|
||||
Ustar_ = kappa_*Uref_/(log((Zref_ + z0_)/z0_));
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ tmp<vectorField> atmBoundaryLayer::U(const vectorField& p) const
|
|||
scalarField Un
|
||||
(
|
||||
(Ustar_/kappa_)
|
||||
*log(((zDir_ & p) - zGround_ + z0_)/max(z0_, scalar(0.001)))
|
||||
*log(((zDir_ & p) - zGround_ + z0_)/z0_)
|
||||
);
|
||||
|
||||
return flowDir_*Un;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue