Commit a60b1ddd authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: acousticDamping - updated blending factor

parent f2d05873
......@@ -67,9 +67,9 @@ void Foam::fv::acousticDampingSource::setBlendingFactor()
{
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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment