mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: acousticDamping - updated blending factor
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user