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

Merge branch 'master' into develop

parents 740dbc4a f1e41526
Branches
Tags
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