CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

EngineeringWaves

group celerity

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 1.00
sub units 0.00
add a commercial licence to your cart
0
viewed 20 times and licensed 6 times

The velocity of a wave group (also known as 'group celerity')

Controller: CodeCogs  Contact Controller
+View version details
Contents hide toc
buy now     get GPL     add to cart

Interface

#include <codecogs/engineering/waves/group_celerity.h>

using namespace Engineering::Waves;

double group_celerity_k (double k, double depth=0, double gravity=9.8066)
Uses a linear dispersion relationship to compute the wave group velocity

Function Documentation

Group Celerity K Calculator
  
Add calculator to website or email
 
doublegroup_celerity_kdoublek
doubledepth = 0
doublegravity = 9.8066 )
Within a train of waves the movement of energy is usually slower than that of the waves. As such is you study a short train of waves they will develop at the back of the group, travel forward through the group and disappear at the front of the group.

[DIAGRAM]

The definition of group velocity is:
C_g = \frac{\partial \omega}{\partial k}

In deep water, where \omega^2=gk, group velocity is merely
C_g = \frac{1}{2}C
While in shallow water the form is a little more complicated, i.e.
C_g = \frac{g}{2 \omega} \left [ k sech^2(k d) + tanh(k d) \right ]

Using this second form, we can plot as an example the relationship between Cg and wave-number, k :
\graph  k=0:4, depth=1:10:4, gravity=9.8066
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:
kwave-number defines as (2 \pi/m). [rad/m]
depththe depth of the water to mean sea level. A value of zero or less corresponds to deep water. [m]
gravityacceleration due to gravity (default 9.8066 m/s^2). [m/s^2]
Returns:
wave-frequency (2 \pi/s). [rad/s]
Authors:
Will Bateman (February 2005)
Source Code:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 14 Apr 09 @ 16:38     Page Rendered: 2010-03-12 14:47:07

Valid CSS!   Valid XHTML 1.0 Transitional