C# Class MotionTextureComputer.Form1

Exibir arquivo Open project: Patapom/GodComplex

Public Methods

Method Description
Form1 ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

FillInput ( float _In ) : void
FillWithBitmap ( float _In ) : void
OnLoad ( EventArgs e ) : void
Phillips ( double kx, double kz, double V, double Wx, double Wz ) : double

The Phillips spectrum: Ph(K) = A.[exp( -1/(k.L)² ) / k^4].dot( Kn, Wn )² Where: A = a numerical factor K = (kx, kz), kx=2.PI.n/Lx, kz=2.PI.m/Lz n€[-N/2,N/2] and m€[-M/2,M/2] k = norm of K Kn = normalized K Wn = normalized wind direction L = V²/g the largest possible wave arising from a continuous wind of speed V g = 9.8m/s² the gravitational constant

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

FillInput() protected method

protected FillInput ( float _In ) : void
_In float
return void

FillWithBitmap() protected method

protected FillWithBitmap ( float _In ) : void
_In float
return void

Form1() public method

public Form1 ( ) : System
return System

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e EventArgs
return void

Phillips() protected method

The Phillips spectrum: Ph(K) = A.[exp( -1/(k.L)² ) / k^4].dot( Kn, Wn )² Where: A = a numerical factor K = (kx, kz), kx=2.PI.n/Lx, kz=2.PI.m/Lz n€[-N/2,N/2] and m€[-M/2,M/2] k = norm of K Kn = normalized K Wn = normalized wind direction L = V²/g the largest possible wave arising from a continuous wind of speed V g = 9.8m/s² the gravitational constant
protected Phillips ( double kx, double kz, double V, double Wx, double Wz ) : double
kx double
kz double
V double Wind velocity in m/s
Wx double Normalized wind direction
Wz double
return double