mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: wave model active absorption loop should be over all patch faces
This commit is contained in:
@ -370,9 +370,7 @@ void Foam::waveModel::correct(const scalar t)
|
|||||||
{
|
{
|
||||||
const scalarField activeLevel(this->waterLevel());
|
const scalarField activeLevel(this->waterLevel());
|
||||||
|
|
||||||
if (patch_.size())
|
forAll(U_, facei)
|
||||||
{
|
|
||||||
forAll(activeLevel, facei)
|
|
||||||
{
|
{
|
||||||
const label paddlei = faceToPaddle_[facei];
|
const label paddlei = faceToPaddle_[facei];
|
||||||
|
|
||||||
@ -386,8 +384,7 @@ void Foam::waveModel::correct(const scalar t)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
U_[facei] = vector::zero;
|
U_[facei].x() = 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user