waveForcing: Added optional lambdaBoundary specification

which allows lambda to set higher in the cells adjacent to the boundary which is
particularly useful when solving for waves in a domain with no mean-flow and
wave BCs to avoid numerical stability problems where the specified wave flow
reverses into the domain.  The alternative is to use symmetry rather than wave
BCs on the side patches which is stable without using lambdaBoundary but there
is modest distortion of the wave profile adjacent to the side patches which does
not propagate into the domain due to the wave forcing.
This commit is contained in:
Henry Weller
2023-05-26 15:25:01 +01:00
parent 42b24c20dd
commit f05ab894d3
5 changed files with 35 additions and 2 deletions

View File

@ -45,7 +45,8 @@ forcing
duration 0.5;
}
lambda 25;
lambda 5;
lambdaBoundary 25;
}

View File

@ -65,7 +65,7 @@ functions0
DebugSwitches
{
// Write the forcing and damping scale and force fields
// forcing 1;
forcing 1;
}
// ************************************************************************* //