flyinggorilla / simulator.atterwind.info

Apparent Wind Sail-Trim Simulator. This simulator trims an A-Class catamaran towards apparent wind. While this is an idealization, it comes close enough to get a better understanding of sail-trim.

Home Page:https://simulator.atterwind.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

https://simulator.atterwind.info

Apparent Wind Sail-Trim Simulator

This simulator trims an A-Class catamaran to best fit calculated apparent wind. While this is an idealization, it comes close enough to get a better understanding of sail-trim. Basic sail-twist concepts apply to all other catamarans like Nacra 15 or Nacra 17 as well as dinghys such as Laser or RS Aero too, just ignore lack of jib of the former and mast rotation, traveller on the latter.

  • learn and understand true-wind vs. apparent wind and it's impact to sail-twist and trim
  • improve sail-trim on the water with better understanding of how much sail-twist, mast-rotation and traveler move is needed in certain situations
  • share simulator views as URL hyperlinks with others, as baseline to discuss real-world trim improvements

simulator

Quick intro on how to use this simulator:

  1. adjust true-wind speed in knots. it's direction is irrelevant for the simulation.
  2. adjust wind condition, stable thermal winds have higher wind gradient impact than gusty unstable winds
  3. adjust boat heading in degrees relative to true-wind direction - e.g. 50° for upwind, and 135° for downwind.
  4. adjust boat speed in knots that you estimate to fit to wind and heading. The simulated foiling A-Cat will fly at 13+ knots. Because it's a simulator, have also fun sailing practically impossible configurations.
  5. click share current view to bookmark your current view or share it as Web link with others

Basics

Wind Speed Gradient

Surface friction causes the wind speed to be close to zero at the surface, meaning that the air molecules are slowed down by the water surface. Slow air molecules also slow down the air above them and so forth. This causes a gradient of wind speeds, also called wind shear. This simulation calculates the wind gradient based on this wind turbine research. Results are similar to studies by Frank Bethwaite's High Performance Sailing. When looking at the three screenshots below, you see on each on the left the true-wind-field. The cone points into the direction of wind flow and represents wind-speed by it's length. You will notice that the biggest wind speed gradient impact is in the lower third 0-3m range of the ~10m high boat. The leftmost configuration shows stable winds, which have highest wind sheer and the right most unstable gusty wind conditions. Those conditions are specified in the formula by the Hellman constant a. The apparent wind is visualized in front of the mast of the catamaran. However, as in this configuration the boat is not moving, the apparent wind gradient equals the true wind gradient.

stable neutral unstable
Stable wind condition Neutral wind condition Unstable wind condition
a=0.27 a=0.1 a=0.06

Apparent Wind

Apparent wind is the combination of true-wind and fair-wind (headwind) and well explained in wikipedia's apparent wind article. It is the main but not only reason for trimming twist into the sail. On high speed boats, such as foiling catamarans one can sail faster than the true wind-speed by leveraging apparent winds as shown on below left picture, foiling downwind at 23kn boatspeed and 15kn windspeed. This picture shows further, that the sail trim is similar to upwind sail trim as the apparent wind comes from a 94° different direction than the true wind.

Here is how it looks like on the water (not perfectly trimmed however, but thats why this site exists, to improve):

As the true-wind has different speeds at different heights due to the wind-speed-gradient, while induced headwind is constant across hight (ignoring boat rocking), the resulting apparent wind comes from different directions at varying heights. So in theory, we can now shape the ideally trimmed sail by shaping it exactly in optimal angles to the apparent wind. The main reason for sail-twist.

Sail Twist

There are following reasons for twisting the sail:

  • shaping the sail (think airfoil wing) to always have the right angle of attack to the apparent wind which changes direction and speed in height --- that's to me the main reason why the pro's say twist is speed.
  • more tolerance for dynamic wind changes twisted sail shape is more forgiving, as the broader range of angles to the wind keeps the airflow going and there is less risk for stalls
    • quick gust peaks can turn the apparent wind windwards (and lulls obviuosly the other way) - according to Frank Bethwaite's Higher Performance sailing, wind speed increases and decreases rapidly by an average of +/- 7% every 6 to 12 seconds. His data shows they occur even in lake breezes, which are typically thought to be smooth, steady winds.
    • boat rocking due to waves moves the mast top back and forth which can change apparent wind direction a lot in the mast-top, hence you sail with more twist to be more tolerant of dynamic apparent wind direction changes
  • get the airflow over the sail going when the boat was stopped or slowed down after a tack
  • reduce power in the sail, as the twist can bring especially the top section of the sail closer into the wind reducing angle of attack and as such lift

How to adjust twist?

  • sheet-out the mainsheet. This simulation sheets in and out automatically to meet the theoretical ideal twist. How much mainsheet to give to achieve the twist is displayed and bottom left in the text overlay. Note that this length is A-Class specific and you need to multiply this length with your pulley ratio. e.g. when the simulator shows 1cm give of mainsheet and you have a 12:1 purchase system, then it means you give 12cm with your hands. While this is not a precise metric, it provides the right magnitude.
  • restrict or force mast rotation. The mast attributes approx. 10% of the entire 13.94m² sail area on an A-Class catamaran, so it has a significant impact have the right angle of attack of the mast to the wind. The simulator puts the mast rotation exactly into the angle of the front part of the parabolic wing shape. When enabling the display of detailed trim metrics, you can find the calculated angle of attack to the wind by the mast. With the simulators default parabolic sail shape this is about -4.4° degrees to the apparent wind (at 20° angle of attack). Think of the mast as the very front section of an airplane wing.
  • sheet-out the traveller to reduce twist while keeping the sail adjusted to the apparent wind on downwind courses.
downwind, light winds, lots of twist upwind, foiling, high-boat speed, little twist
downwind light upwind foiling

The Assumptions behind the Simulator

Sail

Sails follow approximately a parabolic shape with it's max depth moved forward from the middle of the sail. Moving the camber or draft position forward from the 50% middle position, produces a better lift and comes close to a shape of a airwing. In practice camber position is moved forward towards a 36-45% position relative to chord length. In real world, the ways to move the camber position forward are:

  • Asymmetrical shaped battens (one end is thicker then the others). Such battens are made to bend under longitudinal pressure already at positions of choice, so have their max bend-depth typically somewhere between 36% to 45% of length. Fiberfoam battens are designed and made with their position of maximum camber at between 38% and 45%. Similarily also Dynaflex battens.
  • Pulling the cunningham bends the mast, flattens the sail, and moves the camber position forward. This changes also entry and exit angle of the sail shape. (cunningham is right now experimental in the simulator and I am not happy yet with the produced sail shape, but it provides already an idea)
  • Mast rotation influences the shape. Popular Fiberfoam tapered A-Class masts have a shape of 160×60 mm in the bottom to 130×45 mm in the top.
  • For sure there is more, e.g. the how the sail is cut/made may influence the camber position too.

The simulation calculates the sail-shape in two steps. First it is modeling a flat 2D version of a sail, with dimensions listed below in the table, and evently distributed mesh points. Then the sail shape is calculated based on Lester Gilbert's great summary of calculating a parabolic sail shape design and the surrounding theory, which is provided on onemetre.net. This parabolic shape is transformed into rotations, which are applied to all the mesh-points or vortices of the sail, turning the 2D sail into a 3D shaped sail. This approach simplifies modeling sail twist, by calculating apparent wind at each level of the sail and adding this rotation change to the rotation already determined for the sail shape. Limiting the max rotation difference between nearby levels of the sail lets, e.g. max 1° rotation difference between sail height of 1000mm vs. 1010mm is a simple approximation to limit stretching of the virtual sail material.

metric value comment
camber position 45% Camber or draft is slightly forward from middle
camber depth 10% this is % of chord length
chord at tack 2125mm this is tack distance from mast of a powered sail. approximately the boom length minus outhaul length from boom tip
chord at mast top 390mm the sail shape at the mast top is simply a scaled down version of the shape at the tack level
tack height 900mm tack position above deck
mast and sail height 9065mm
mast width 140mm the mast is treated as part of the parabolic sail shape and follows its shape and entry angle
decksweeper width 900mm decksweeper area is treated differently, it follows the sail shape of the tack height and gets clipped off
leech curvature 200mm A-Cat sails are open in design, only limited to 13.94m² in area including the mast. This curvature has been picked arbitrary to visually look closer to the real-world sails.
sail area 13.94m² The simulator calculates the area of the parabolic shaped sail by summing up the area of the triangular faces.
girth at tack 2181mm Girth is calculated numerically summing up the distance of 1000 points that are modeled along the parabolic shape, after scaling it to match the chord length
angle of attack 20° Apparent wind direction vs. sail chord, this drives the sail twist math (15°-20° are good angles)
foiling height 52cm Moves the entire sail to a 52cm higher position

Note, when boat is foiling, what happens at 13kts+, then the boat lifts by 52cm, thus sail is higher above water what has a slight impact on twist in lower sail area.

Apparent wind and sail angles

Mast rotation

Mast rotation is visualized as it appears on the DNA F1x A-Cat. The red pointer on the mast foot is the mast-rotation arm, used to limit or force rotation on real boats. The simulator infers mast rotation from the front section of the sail shape, so that the mast virtually follows exactly the calculated parabolic shape. With default settings, mast angle of attack to apparent wind is rounded -5°.

marker angle
| 20°
|| 30°
||| 50°
|||| 70°
max 90°

Traveller

The traveller is also visualized as it appears on the DNA F1x A-Cat. It's markers are setup in 10cm distance from each, with max 80cm position off centre. Below picture shows the traveller 18cm off-centre.

The traveller position is calculated through virtually elongating the leech of the sail to the transom. When there is no sail-twist (i.e. heading directly into the wind), the traveler position is exactly aligned to the horizontal sideways sail tack position. Now when there is sail-twist, the additional traveller movement is determined by virtually elongating the leech to the transom. This is a simple linear connection from the tack, the next leechpoint above the tack, and calculating the intersection at the transom leveraging simply the lever principle.

Experimental settings: Cunningham, Angle of Attack

  • Cunningham setting modifies the parabolic shape of the simulated sail to move the draft/camber forward. I am not fully happy with the resulting shape but feel free to play with it. It primarily changes the lift-force vector and it will become relevant when calculating sail lift and momentum. Cunningham simulation should potentially flatten the sail too.
  • Outhaul might be another optional setting to flatten the sail from its default 10% draft.
  • Angle of attack of e.g. 20° is a targeted angle that can be met when bearing away enough from the wind. According to Lester Gilbert's research 20° is optimum lift, but I am finding that 15° brings the simulator closer to real-world settings. Thoughts?

Real world comparision

Let's compare this simulator with real-world trim settings recommended by the Pro's like Mischa Heemskerk who also builds the DNA F1x catamaran (yes, by now it's obvious, thats the boat I am sailing).

Here is Mischa's table:

true wind speed 0-6kn 7-11kn 12-15kn 16kn+ 0-7kn 7-9kn 10-16kn 17kn+
course upwind upwind upwind upwind downwind downwind downwind downwind
mast rotation [°] 50 30 25 20 70 30 40 50
cunningham mid light mid pull mid loose mid pull
traveller [cm] 0 0 0 5-10 max (80?) 10 20 30

Simulator with guesstimated boat speed (need a polar!)

This table is a big guesstimate right now as I need a polar diagram and more accurate real-world measurements of boat-speed and VMG vs. the rest of the settings.

true wind speed 0-6kn 7-11kn 12-15kn 16kn+ 0-7kn 7-9kn 10-16kn 17kn+
simulator view view view view view view view view
course upwind upwind upwind flying upwind foiling downwind downwind foiling downwind foiling downwind foiling
wind speed [kn] 4 9 14 20 5 8 14 20
heading [°] 45 45 45 50 135 130 140 150
boat speed [kn] 3 8 11 20 5 15 20 25
vmg [kn] 2.1 5.7 7.8 12.9 3.5 9.6 16.4 21.7
twist [°] 6 4 5 6 31 13.4 21 28
sail chord angle of attack [°] 20 20 20 15 15 15 15 15
apparent wind speed at mast top [kn] 6 16 23 36 4 12 12 13
mast rotation [°] 21 vs. 50 19 vs. 30 21 vs. 25 25 vs. 20 68 vs. 70 32 vs. 30 44 vs. 40 53 vs. 50
traveller [cm] 0 0 1 vs. 0 11 vs. 5-10 57 vs. max 6 vs. 10 16 vs. 20 24 vs. 30

When the table shows a vs. then it is simulator vs. Mischa's real-world-best-practice.

First conclusions: Calculations were based on 20° angle of apparent wind vs. sail chord. Adjusting angle of attack to 15° OR reducing the Hellman constant (for reduced wind-gradient) brings closer results. The result is close enough to get a rough feel, and wanting to get back on the water to try some trims in the real-world.

Usage details

Using mouse, touch and keyboard

Keyboard

key function
arrow-up/down boat speed +/-1kn
arrow-left/right boat heading -/+1°

Touch orbit control

one finger rotate
two fingers zoom, pan

Mouse orbit control

left mouse button + move rotate
right mouse button pan
mid mouse button + move zoom
scrolling wheel zoom

URL parameters

The simulator can be configured with URL query string parameters. You get those parameters automatically when clicking the share current view button, but you can also explicitly feed the simulator this way.

https://simulator.atterwind.info/?bh=135&bs=20&ws=15&wh=0.27&ch=2.6&cs=-2.1&cl=3.3&cry=46.0&crz=118.9&crx=-111.7&cth=-0.7&cts=-0.8&ctl=-0.3&csh=1

parameter default unit description
bh 0 ° angle of boat heading vs. true wind, also called course over ground (COG)
bs 5 kn boat speed over ground (SOG)
ws 5 kn true wind speed (TWS) at 10m height over water
wh 0.27 Hellman number wind condition defined by hellman number, 0.27 is the default for stable wind
ch 10.0 m camera position height
cs 8.0 m camera position aside
cl 8.0 m camera position along
crx -32.0 ° camera rotation X
cry 40.3 ° camera rotation Y
crz 22.0 ° camera rotation Z
cth 5.0 m camera target height
cts 0.0 m camera target aside
ctl 0.0 m camera target along
csh 0 0 or 1 1 to sync camera with boat heading rotation
vd 0 0 or 1 view details about trim and simulator calculations
saa 20 experimental: sail angle of attack vs apparent wind
sc 1 0 or 1 experimental: cunningham 1 soft .. 10 hard

Feedback, Legal, Credits and more

Feedback and discussions

Discussion forum on GitHub

Credits go to great sources used in this project:

License

Videos

Todo List

  • MOST-WANTED: polar diagram data to provide max speed info (vs. wishful speeds of) to enable "realistic constraints", and to simulate the twist and heading change as the boat picks up speed. If anyone has such an A-Class polar, please share.
  • Force moments and equilibrium
    • visualize force on sail
    • simulate a body sitting, hiking or trapezing
    • detect overpowered sail and adjust simulated twist and/or flatten the sail, pull cunningham
  • Additional experimental settings
    • outhaul
  • Gimmicks
    • add water spray & boat speed visualization
    • add WebXR (VR) capability -- update threejs for that

About

Apparent Wind Sail-Trim Simulator. This simulator trims an A-Class catamaran towards apparent wind. While this is an idealization, it comes close enough to get a better understanding of sail-trim.

https://simulator.atterwind.info

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 96.2%Language:HTML 3.4%Language:CSS 0.4%