User:Dora Gustafson/wind motor core
< User:Dora Gustafson
Jump to navigation
Jump to search
Revision as of 10:20, 10 December 2016 by Dora Gustafson (talk | contribs) (Created page with " == Wind motor core == ==== For use in virtual sailboats in SL ==== This wind motor uses four '''vectors''' to calculate boat velocity: # '''''v''''': boat velocity # '''''win...")
Wind motor core
For use in virtual sailboats in SL
This wind motor uses four vectors to calculate boat velocity:
- v: boat velocity
- wind: wind velocity, direction at wind's eye
- head: boat heading, normalized vector
- n: sail normal, normalized vector. It doesn't matter which one of two normals is used
- v = head∙(-n∙(v + wind)*n)*head
The tricky thing in a wind motor is that v is a function of v and it can not be isolated
Therefor v is calculated by iteration, i.e. repeated calculations using the previous result
Notes
- head and n are normalized vectors
- It does not matter if the positive or negative sail normal n is used in the equation
- wind is pointing the wind's eye so the wind blows opposite. Thus the minus sign in the equation
- The magnitude of wind is the wind speed
- The magnitude of v is the boat speed