1. Mick West

    Mick West Administrator Staff Member

    I've revived the contrail pattern simulator on ContrailScience so the controls work again, and made it so it can be embedded in a post here.


    Note this is actually two different contrail simulators - the default shows two intersecting flight paths creating a grid, the other shows a racetrack contrail forming a pattern, you can toggle between them with the checkbox in the lower left.

    The key point that is being illustrated here is that contrails move across the sky - so when you see a contrail it's not actually the path the plane took - and it's often at a different angle to that path. It also shows that just two intersecting routes can create a grid across the whole sky - even if all the planes fly exactly along the same two routes.

    You can alter the simulator by dragging around the end points of the routes, and by adjusting the speed of the plane and the wind, as well as adjusting the wind direction.


    To embed it, used the code:
    [consim].[/consim]

    If you want to embed it on another website, the embed code is:
    Code:
    <iframe width=660px; height=660px; seamless; scrolling=no; src="https://www.metabunk.org/apps/racetrack_contrail_simulator/web-export/index.html"></iframe>
    And the full source code is attached. It uses the Processing framework.
     

    Attached Files:

    Last edited: Feb 22, 2014
    • Winner Winner x 8
    • Like Like x 3
  2. George B

    George B Extinct but not forgotten Staff Member

    Mick, is there anyway to port this simulator to a different site?
     
    Last edited by a moderator: Feb 22, 2014
  3. Mick West

    Mick West Administrator Staff Member

    The embed code is all that is needed. However most sites won't let you embed arbitrary code, so if it's not a site you personally control, then you'd have to get the administrator to do it.
     
  4. George B

    George B Extinct but not forgotten Staff Member

    Thanks I might try to see if GLP would allow it . . . do you mind if I try?
     
  5. Mick West

    Mick West Administrator Staff Member

    No problem.
     
  6. Mick West

    Mick West Administrator Staff Member

    It's a bit messy on an iphone unfortunately. I just altered the sizes of the controls so that it's more usable with a touch interface.
     
  7. Steve Funk

    Steve Funk Active Member

    Could you put a timer or clock on it? I'm guessing it is speeded up by approximately 10x.
     
  8. Mick West

    Mick West Administrator Staff Member

    300x. It runs ten seconds per frame, 30 frames per second.
     
  9. PCWilliams

    PCWilliams Active Member

    I'm going to capture this as a movie for easier embedding on websites like WordPress. I will (of course) include links and all appropriate credits. I just think something like this needs to be put out there.

    BTW Mick, may i suggest little aircraft icons in place of the "X" and a much larger wind direction arrow? I'm not so sure the average Joe will quite know what they're looking at, at first glance.

    :)

    Paul
     
    • Agree Agree x 1
  10. bobdongalong

    bobdongalong New Member