Skip to content
Snippets Groups Projects
Commit f1e41526 authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: wave models - corrected setting of U for shallowWaterAbsorption. Fixes #388

parent 08496314
No related merge requests found
......@@ -61,7 +61,11 @@ void Foam::waveModels::shallowWaterAbsorption::setVelocity
const scalarField& level
)
{
U_ = vector::zero;
// Apply zero-gradient condition to z-component of velocity only
const volVectorField& U = mesh_.lookupObject<volVectorField>(UName_);
U_ = U.boundaryField()[patch_.index()].patchInternalField();
U_.replace(0, 0);
U_.replace(1, 0);
}
......
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