Horizontal Wind Model 07
Implement Horizontal Wind Model 07
Libraries:
Aerospace Blockset /
Environment /
Wind
Description
The Horizontal Wind Model 07 block implements the U.S. Naval Research Laboratory HWM™ routine to calculate the meridional and zonal components of the wind for a set of geographic coordinates: latitude, longitude, and altitude.
Limitations
For code generation, use this block only for targets whose type is int 32 or higher.
Ports
Input
μ l h — Geodetic latitude, longitude, and geopotential altitude
three-element vector | altitude is a value between 0 and 500 km
Geodetic latitude (μ), longitude (l), and geopotential altitude (h), specified as a three-element vector.
Latitude and longitude values are in degrees.
Altitude values are held outside the range 0 to 500 km. The altitude value is in the units selected in Units.
Data Types: double
day — Day
scalar | value between 1 and 366
Day of year in Coordinated Universal Time (UTC), specified as a value between 1 and 366 (for a leap year). Values are wrapped within the range 1 to 366 days.
Data Types: double
sec — Elapsed seconds
scalar
Elapsed seconds since midnight for the specified day, in UTC.
Data Types: double
Ap — Ap index
scalar | range from 0 to 400
Ap index for the Universal Time (UT), specified as a scalar, ranging from 0 to 400. Select the index from NOAA National Geophysical Data Center, which contains 3 hour interval geomagnetic disturbance index values. If the Ap index value is greater than zero, the software takes into account magnetic effects during model evaluation.
Dependencies
To enable this port, set Model to
Total
or
Disturbance
.
Data Types: double
Output
Vwind — Wind velocity vector
1-by-2 vector
Wind velocity vector, returned as a 1-by-2 vector, containing the meridional and zonal wind components, in that order.
Data Types: double
Parameters
Units — Input and output units
Metric (MKS)
(default) | English (Velocity in ft/s)
| English (Velocity in kts)
Input and output units, specified as:
Units | Wind Speed | Wind Velocity |
---|---|---|
| Meters per second | Meters per second |
| Feet per second | Feet per second |
| Knots | Knots |
Programmatic Use
Block Parameter:
units |
Type: character vector |
Values: 'Metric
(MKS)' | 'English (Velocity in
ft/s)' | 'English (Velocity in
kts)' |
Default: 'Metric
(MKS)' |
Model — Horizontal wind model type
Quiet
(default) | Total
| Disturbance
Horizontal wind model type for which to calculate the wind components, specified as:
Disturbance
Calculate the effect of only magnetic disturbances in the wind.
Quiet
Calculate the horizontal wind model without magnetic disturbances.
Total
Calculate the combined effect of the quiet and magnetic disturbances.
Programmatic Use
Block Parameter:
model |
Type: character vector |
Values:
'Quiet' | 'Total' |
'Disturbance' |
Default:
'Quiet' |
Action for out-of-range input — Out-of-range block behavior
Error
(default) | Warning
| None
Out-of-range block behavior, specified as follows.
Value | Description |
---|---|
| No action. The block imposes upper and lower limits on an input signal. |
| Warning in the Diagnostic Viewer, model simulation
continues. For Accelerator and Rapid Accelerator modes,
setting the action to |
| MATLAB® returns an exception, model simulation
stops. For Accelerator and Rapid Accelerator modes,
setting the action to |
Programmatic Use
Block Parameter:
action |
Type: character vector |
Values:
'None' | 'Warning' |
'Error' |
Default:
'Warning' |
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version History
Introduced in R2014bR2021b: Horizontal Wind Model 07 Block Possible Changed Returned Values
The Horizontal Wind Model 07 block now accepts:
day port values that are decimal, negative,
0
, or greater than366
.sec port values that are
0
or greater than86400
.
As a result, the output values from this block might change from previous releases.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)