Code covered by the BSD License  

Highlights from
Sea surface

2.5

2.5 | 2 ratings Rate this file 33 Downloads (last 30 days) File Size: 3.86 KB File ID: #24884
image thumbnail

Sea surface

by Orlando Rodríguez

 

30 Jul 2009 (Updated 07 Feb 2011)

Stochastic generation of the sea surface given wind speed and wind direction.

| Watch this File

File Information
Description

Utility for the generation of stochastic two-dimensional realizations of the sea surface for a given value of wind speed and wind direction. Uses the Pierson-Moskowitz spectrum for the frequency/wavenumber dependency and four different types of angular spreading, namely:

- none
- cosinus-squared
- Mitsuyasu
- Hasselmann
 

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
30 Jul 2009 Gary

Missing 'unifrnd'

30 Jul 2009 Gary

Also, the 'hass' case references the variable n, which is undefined.

05 Oct 2010 pilla hemagiri  
18 Oct 2011 Yoon-soo Jang

??? Input argument "wind_data" is undefined.

Error in ==> sea_surface at 77
     U = wind_data.U;

There are some error.

What is "wind data"?

01 Nov 2011 Orlando Rodríguez

Dear Yoon-soo Jang:
왜 먼저 Matlab을 배울하지?

Please login to add a comment or rating.
Updates
30 Jul 2009

Bug in the 'hass' option:

on line 143 it said "Mu = 4.06*ones( n );"
now it says " Mu = 4.06*ones( size(K) );"

(thank you Gary!)

07 Feb 2011

- Added JONSWAP spectrum
- Match to Beaufort scale

Tag Activity for this File
Tag Applied By Date/Time
physics Orlando Rodríguez 30 Jul 2009 11:00:23
statistics Orlando Rodríguez 30 Jul 2009 11:00:23
simulation Orlando Rodríguez 30 Jul 2009 11:00:23
simulation pilla hemagiri 05 Oct 2010 02:14:10
simulation Xiangliang Zhang 07 Feb 2011 12:18:46

Contact us at files@mathworks.com