mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' into develop
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user