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

BUG: Boussinesq wave model - corrected coefficient reported by Gabi

parent bc05a40b
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ Foam::vector Foam::waveModels::Boussinesq::Deta ...@@ -79,7 +79,7 @@ Foam::vector Foam::waveModels::Boussinesq::Deta
vector deta(vector::zero); vector deta(vector::zero);
scalar C = sqrt(mag(g_)*(H + h)); scalar C = sqrt(mag(g_)*(H + h));
scalar ts = 3*h/sqrt(H/h); scalar ts = 3.5*h/sqrt(H/h);
scalar a = sqrt(3*H/(4*h))/h; scalar a = sqrt(3*H/(4*h))/h;
scalar Xa = -C*t + ts - X0 + x*cos(theta) + y*sin(theta); scalar Xa = -C*t + ts - X0 + x*cos(theta) + y*sin(theta);
scalar expTerm = exp(2*a*Xa); scalar expTerm = exp(2*a*Xa);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment