group celerity
The velocity of a wave group (also known as 'group celerity')
Controller: CodeCogs
Interface
C++
Group Celerity K
doublegroup_celerity_k( | double | k | |
double | depth = 0 | ||
double | gravity = 9.8066 | ) |
There is an error with your graph parameters for group_celerity_k with options k=0:4 depth=1:10:4
Error Message:Function group_celerity_k failed. Ensure that: Invalid C++
Example 1
#include <stdio.h> #include <codecogs/engineering/waves/group_celerity.h> using namespace Engineering::Waves; int main() { printf(" k Cg "); for(double k=0.01; k<1;k+=0.1) { printf("\n %.6lf", k); double w=group_celerity_k(k,2); printf(" %.3lf", w); } }
Output:k Cg ??
Parameters
k wave-number defines as (). [rad/m] depth the depth of the water to mean sea level. A value of zero or less corresponds to deep water. [m] gravity acceleration due to gravity (default 9.8066 m/s2). [m/s2]
Returns
- wave-frequency (). [rad/s]
Authors
- Will Bateman (February 2005)
Source Code
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.