ENH: acousticDamping - updated blending factor

This commit is contained in:
Andrew Heather
2016-06-30 12:46:46 +01:00
parent f2d05873b8
commit a60b1ddd6e

View File

@ -67,9 +67,9 @@ void Foam::fv::acousticDampingSource::setBlendingFactor()
{ {
blendFactor_[celli] = 0.0; blendFactor_[celli] = 0.0;
} }
else if ((d >= r1_) && (d <= (r1_ + r2_))) else if ((d >= r1_) && (d <= r2_))
{ {
blendFactor_[celli] = (1.0 - cos(pi*mag(d - r1_)/r2_))/2.0; blendFactor_[celli] = (1.0 - cos(pi*mag(d - r1_)/(r2_ - r1_)))/2.0;
} }
} }