Optimum Angles

Here I present a tool that will compute 3 different optimum angles for use with SOL. It grabs the polar and race course information from the server when you ‘login’ and thereafter updates your boat (location and wind data) every 20 seconds. You can use it to compute optimum VMG TWAs for both Upwind and Downwind, and also find the exact TWA for maximum boatspeed. The most flexible aspect is computing VMC.

You can compute VMC to the next Waypoint on the course, to a specific direction (useful in those ‘Just get me West ASAP’ situations) or to an arbitrary location, specified by latitude and longitude (as decimal degrees)

I intended to make this a ‘Run in the Browser, Flash’ application, but for various technical reasons that is not possible at this time. So the next best thing is to distribute it as an Adobe AIR application (AIR is the Desktop brother of Flash) – So, Operating System will not restrict you using this tool, although it may need you to install Adobe AIR (here)

[Edit:] As I now have server space (thanks to Markku/hmm) you can use a Flash version online here.

So, now to the application itself – I made it as simple as possible (but not any simpler)…

Start it up, a popup Window appears for you to login – select a race, input your login and click ‘Login’. You can also use the tool for multiple races simultaneously by selecting ‘All Races’ from the race list. This will log you into each race you are currently registered for.

Once login is completed, the Login popup disappears and the 3 lower buttons will become active and some numbers appear in the wind boxes… That’s pretty much it – now start clicking those 3 lower buttons! 😉

Here is the App when it first loads (it may take a few seconds to retrieve a list of races):

If you logged into a single race, the race name will be displayed in a disabled dropdown list at the top of the UI. If you logged into all races, then each race you are registered in will be listed in this dropdown (which will now be enabled), and you can easily switch between races by selecting one from this list. Below is a screenshot showing the tool logged into a single race on the left, and ‘All Races’ on the right:

Here is shown the Optimal VMG angles for the current wind conditions:

Maximum BS is self-explanatory, so here is an example showing optimal VMC to the next mark – the output also displays the boat type the Optimal Angle(s) were computed for, just to help prevent computing for the wrong boat when using with multiple races:

As you can see, you can specify a VMC (Velocity Made to Course) target in one of 3 ways – Use the next waypoint from the course, specify a direction (Bearing) or a location (lat/lon). Click the ‘VMC’ button and you will get output something like what you see here. It shows the maximum VMC for both Port and Starboard tacks, so you can also use it to confirm your own determinations of favoured tack etc…

All Angles are computed accurate to 0.01°, so if it says the optimal downwind vmg angle is 142.17 – don’t sail at 142.15, or .20 unless you have some reason to! 😉

So what exactly is this telling me? It reports the exact COG and TWA that you need to sail to achieve optimum VMC, and the Boat-speed you will have at that COG/TWA as well as, obviously, the VMC you will be making to your target. Clearly in the example above Starboard is well favoured – things get interesting when the tacks are close…

You can uncheck ‘Use Wind from Boat’ and the wind will stop updating (it will still get boat updates, just not change the displayed wind. This will allow you to enter your own values – Setting a TWA DC for in 3 hours time, when the wind is +5kn from now? just enter the TWS you will be in at the time and click ‘VMG’ to find the best angle to use. Checking the option again and the Wind at your boat location appears in the boxes again. The app uses whatever is shown in the wind fields to compute vmg/vmc.

There are tool tips over most of the UI to help you use it.

Note: This is NOT production quality software – If you click ‘Login’ without selecting a race or giving your boatname and password – There are no polite error messages…

Hope this helps you sail faster!

But remember, the trick is in choosing the best VMC target – not necessarily the mark! 😉

The Adobe AIR Installer should look something like this:

Download it from here.

Double click the file to install it – doing so again will allow you to uninstall it (but you wouldn’t want to, right?) – It *may* prompt you to install AIR if you haven’t already, or it may require you to have it installed already, I really don’t know 😉

Note: The tool updates your boat data every 20 seconds, and if you have ‘Use Wind from boat’ checked you will see the wind fields (TWS/TWD) change – but it does NOT redo the last computation, ie you need to click ‘VMG’ (or whatever) again to compute the optimum angles in the new wind (and location for VMC to waypoint or location)

  1. #1 by Vince Nel on May 5, 2012 - 13:56

    Thanks mate. Nice tool indeed

  2. #2 by Peter Chapman on May 6, 2012 - 23:09

    Aaron thanks very much, it will save me a lot if time working with my crude spreadsheet which required me to input about 10 CC’s and TWS to find the best VMC so greatly improves my work productivity. I think it is very generous putting your clever tools up for free so we regular SOL’rs without huge IT skills can utilise some of the tools you hot shots use. I have no problem with the hot shots using their own programming in conjunction with publicly available routers or writing their own. It only crosses the line for me when they have special access to the SOL code so they can automate some of their routing unless it is widely available as your tool is. I am in awe of your programming skills, I wish I had some work to engage you on. What is your regular day job, how do you get time to do it?
    Peter (Chappo)

    • #3 by AGage on May 7, 2012 - 06:32

      I would just like to correct you on one small point – no one has any special access to the SOL code as you put it.
      I, as a SOL admin and developer have access to the actual program code, yes, but there is no way for me or anyone else to utilise that to race faster.
      All of the data comes to the race client via plain text based, standard HTTP requests – which I know still doesn’t necessarily make it accessible to everybody, as it does take some knowledge to understand all this, but it is not hidden as such – before I was a SOL admin/developer I had used pretty much just the tools that come built in to the Chrome web browser and had figured out how the client and server communicate. Just look at hmm’s, race data site. His first race was Leg 1 of the SWR/VOR last November, it didn’t take him long to figure it out either.
      There was a time when brainaid was the only one using actual SOL wx in his routing, but not because he had any special access, he just had the skills to do it and he was the first, now we all can have that weather, whether to use in routing or an external grib viewer
      I do believe that tools should be available to all, hence I share what I write, but I also understand others who create custom routers wanting to keep it to themselves.

      This year I returned to study some more, I still get a few jobs here and there over the net, and my regular day job was as programmer, yes…

  3. #4 by Peter Chapman on May 7, 2012 - 07:23

    Thanks for the explanation. You can see how the non IT guys can get a perception that the hot shots have inside knowledge and access but as you explained it is only a case of intercepting data from the server. Hmm is a good example of the way you can use that data.

    • #5 by AGage on May 7, 2012 - 07:27

      Yes I can see exactly why many would think there is a group with ‘inside information’, which is why I have tried both here and on the forums to somehow let people know this isn’t the case. You can actually see this at work yourself. I am just writing a post describing this…

  4. #6 by Peter Chapman on May 7, 2012 - 07:48

    Yes I remember some members took their bat and ball and left about 2 years ago when Brain didn’t go the lengths you are going to to remove this perception. Fantastic work on the new client, massive improvements to make useability easier, less time consuming. Thanks.

  5. #7 by bc - Racing as Morgaine on May 9, 2012 - 10:54

    Great Tool!!! I love the flexibility you’ve provided.

  1. New Tool – Compute Optimal Angle Automatically « Sailonline.org Tools
  2. Using the VMG/C Calculator to Determine Favoured end of the Finish Line « Sailonline.org Tools
  3. New Site for New Tools « Sailonline.org Tools

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: