Or login with:
| doubledispersion_k( | double | k | |
| double | depth = 0 | ||
| double | gravity = 9.8066 | ) |
| k | ( |
| depth | the depth of the water to mean sea level. A value of zero or less corresponds to deep water. [m] |
| gravity | (default 9.8066). [m/s2] |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
| doubledispersion_k2( | double | a | |
| double | k | ||
| double | depth = 0 | ||
| double | gravity = 9.8066 | ) |
where
In deep water(represented with d<=0), this solution reduces to As in the linear dispersion relationship.#include <stdio.h> #include <codecogs/engineering/fluid_mechanics/waves/dispersion.h> using namespace Engineering::Fluid_Mechanics::Waves; int main() { double amp=3; // 3 meters printf(" k w "); for(double k=0.01; k<1;k+=0.1) { printf("\n %.6lf", k); double w=dispersion_k2(amp,k,2); printf(" %.3lf", w); } }
| a | amplitude of component with wavenumber k. [m] |
| k | wave-number of component ( |
| depth | the depth of the water to mean sea level. A value of zero or less corresponds to deep water. [m] |
| gravity | (default |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
| doubledispersion_w( | double | w | |
| double | depth = 0 | ||
| double | gravity = 9.8066 | ) |

#include <stdio.h> #include <codecogs/engineering/fluid_mechanics/waves/dispersion.h> using namespace Engineering::Fluid_Mechanics::Waves; int main() { printf(" k w recalculated k"); for(double k=0.01; k<1;k+=0.1) { printf("\n %.6lf", k); double w=dispersion_k(k,2); double k2=dispersion_w(w,2); printf(" %.3lf %.6lf", w, k2); } return 0; }
k w recalculated k 0.010000 0.044 0.010000 0.110000 0.483 0.110000 0.210000 0.904 0.210000 0.310000 1.294 0.310000 0.410000 1.648 0.410000 0.510000 1.962 0.510000 0.610000 2.241 0.610000 0.710000 2.489 0.710000 0.810000 2.710 0.810000 0.910000 2.910 0.910000
| w | ( |
| depth | (m) define the depth of the water to mean sea level. A value of zero or less corresponds to deep water. |
| gravity | (default |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge