Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large Energy From Catching Skater #424

Closed
KatieWoe opened this issue Jul 11, 2018 · 9 comments
Closed

Large Energy From Catching Skater #424

KatieWoe opened this issue Jul 11, 2018 · 9 comments
Assignees

Comments

@KatieWoe
Copy link
Contributor

Test device:
Dell Laptop
Operating System:
Windows 10
Browser:
Chrome
Problem description:
Total and Thermal Energy can become very large by letting skater leave track then using track to catch her and launch her again. For phetsims/qa/issues/134 Likely connected to /issues/422 and #32 and #418
Steps to reproduce:

  1. Go to the Playground Screen
  2. Use the tracks to create a short ramp you can easily move and that the skateboarder can easily fly off off. Select the button that allows for sticking to the track
  3. Set the ramp high up and to the left of the screen.
  4. Start the skater down the ramp
  5. When the skater leaves the edge of the ramp, move the track to catch her before she hits the ground.
  6. Move the track back up and to the left before the skater leaves the track once more
  7. Repeat as many times as you are able

Screenshots:
skate park catch
Due to issues with the video maker I was unable to do as many iterations as I would like

Troubleshooting information (do not edit):

Name: ‪Energy Skate Park: Basics‬ URL: https://phet-dev.colorado.edu/html/energy-skate-park-basics/1.4.0-dev.1/phet/energy-skate-park-basics_en_phet.html Version: 1.4.0-dev.1 2018-06-20 00:09:06 UTC Flags: pixelRatioScaling User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Language: en-US Window: 1536x741 Pixel Ratio: 2.5/1 WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium) GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) Vendor: WebKit (WebKit WebGL) Vertex: attribs: 16 varying: 30 uniform: 4096 Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32) Max viewport: 16384x16384 OES_texture_float: true Dependencies JSON: {"assert":{"sha":"928741cf","branch":"master"},"axon":{"sha":"f0522e7c","branch":"master"},"brand":{"sha":"89d28f63","branch":"master"},"chipper":{"sha":"e8946524","branch":"master"},"dot":{"sha":"6482f8c9","branch":"master"},"energy-skate-park-basics":{"sha":"288fcefd","branch":"master"},"joist":{"sha":"22e437d5","branch":"master"},"kite":{"sha":"a1086efc","branch":"master"},"phet-core":{"sha":"17326041","branch":"master"},"phet-io":{"sha":"3ea0727a","branch":"master"},"phet-io-wrapper-classroom-activity":{"sha":"53708616","branch":"master"},"phet-io-wrapper-hookes-law-energy":{"sha":"8a546a32","branch":"master"},"phet-io-wrapper-lab-book":{"sha":"1527afd6","branch":"master"},"phet-io-wrappers":{"sha":"8d814eab","branch":"master"},"phetcommon":{"sha":"6ec8cd89","branch":"master"},"query-string-machine":{"sha":"4182612f","branch":"master"},"scenery":{"sha":"88cb642e","branch":"master"},"scenery-phet":{"sha":"7bcde0b2","branch":"master"},"sherpa":{"sha":"88c3b828","branch":"master"},"sun":{"sha":"7579e8fa","branch":"master"},"tandem":{"sha":"8461b6f3","branch":"master"}}
@EthanWJohnson
Copy link

You're able to achieve a similar effect by changing the track geometry the skater is on while going over it. Instead of catching and, grab a track vertex as the skater is near it and alter its positioning, adding on to the thermal and total energy indefinitely.

image

From what i'm seeing here, the total/thermal energy seems to be increasing mostly when the track moves with the skater on it, with the increase in potential/thermal energy coming from elevated positions and friction. Possibly less of a bug and more a consequence of how the thermal energy is handled/unintended behavior?

@jessegreenberg
Copy link
Contributor

@arouinfar @ariel-phet @samreid the report in #424 (comment) is physically accurate because this is just adding more energy to the system indefinitely, right?

To prevent bars from leaving the panel, should we add arrows like in CL:B?
capture

Or maybe there is another way to limit this somehow, like zeroing the velocity and thermal energy when dragging the track? Hmm, I don't like that very much, sounds too limiting.

@jessegreenberg
Copy link
Contributor

jessegreenberg commented Jul 13, 2018

From #424 (comment), I haven't been able to get the thermal energy to grow like that, just the total energy by adding lots of potential energy by dragging a control point up while the skater is moving.

EDIT: I think @EthanWJohnson may be describing #422.

@samreid
Copy link
Member

samreid commented Jul 15, 2018

It does seem similar to #422--I'll wait to hear from @ariel-phet before working on this.

@samreid samreid removed their assignment Jul 15, 2018
@jessegreenberg jessegreenberg removed their assignment Jul 16, 2018
@arouinfar
Copy link

@KatieWoe interesting find. I do not think the behavior in your screen capture is physically incorrect, though it certainly reveals a design flaw with the bar graph itself.

If I play with the sim in a window with a narrow aspect ratio, it's quite possible for the bars to go beyond the bounds of the panel, simply by dragging the skater to the top of the window. This looks messy to me, so I would be in favor of the CLB-like solution @jessegreenberg proposed.

image image

@jessegreenberg @samreid I also think that @EthanWJohnson's #424 (comment) sounds like #422 to me.

@arouinfar arouinfar assigned samreid and jessegreenberg and unassigned arouinfar Jul 17, 2018
@jessegreenberg
Copy link
Contributor

Thanks @arouinfar. @ariel-phet is this an enhancement we should add in energy-skate-park, and defer for the upcomming LoL/PhET-iO release?

@jessegreenberg jessegreenberg removed their assignment Jul 19, 2018
@samreid
Copy link
Member

samreid commented Sep 10, 2018

Unassigning myself while we await feedback from @ariel-phet.

@samreid samreid removed their assignment Sep 10, 2018
@ariel-phet
Copy link

@jessegreenberg @arouinfar yes, I agree we should add the CL:B style "off chart" arrows. I have reproduced this behavior, and certainly it is not incorrect physics as your are "pumping" energy into the system (I did the vertex control point moving). So I think the off the chart indicator is a nice solution.

@jessegreenberg
Copy link
Contributor

Arrows to indicate energy beyond graph limis are in this sim now and they were necessary for energy-skate-park. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants