Be the first to rate this file! 62 downloads (last 30 days) File Size: 3.27 KB File ID: #24884

Sea surface

by Orlando Rodríguez

 

30 Jul 2009 (Updated 30 Jul 2009)

Code covered by the BSD License  

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

Download Now | 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)
Zip File Content  
Other Files license.txt,
sea_surface.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
30 Jul 2009 Gary

Missing 'unifrnd'

30 Jul 2009 Gary

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

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!)

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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com