I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 1.20
sub units 0.00
+
0

celerity

The phase velocity of a wave (also known as 'wave celerity')
Controller: CodeCogs

Interface

C++

Celerity K

 
doublecelerity_kdoublek
doubledepth = 0
doublegravity = 9.8066 )
The velocity of a wave is defined by where ω is the wave frequency and k is the wave-number.

Using a linear linear dispersion relationship, i.e. \inline  w^2 = g k tanh(k d), we can derive a more useful expression for the wave velocity given a specific specific value of k, i.e.

In deep water (represented with d<=0), this solution reduces to

Example 1

#include <stdio.h>
#include <codecogs/engineering/waves/celerity.h>
using namespace Engineering::Waves;
 
int main()
{
  printf("   k         w ");
  for(double k=0.01; k<1;k+=0.1)
  {
    printf("\n %.6lf", k);
    double w=celerity_k(k,2);
    printf("  %.3lf", w);
  }
}
Output:
k         c
??

Parameters

kwave-number defines as (2π /m). [rad/m]
depththe 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). [m/s2]

Returns

wave-frequency (2π /s). [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.