NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Collaborative Community of EJS => Topic started by: lookang on April 29, 2013, 02:27:19 pm



Title: Ejs Open Source Rocket Physics Java Applet Model
Post by: lookang on April 29, 2013, 02:27:19 pm
Ejs Open Source Rocket Physics Java Applet Model by lookang, based on assignment given by Larry Engelhardt
built to share with Hillgrove Secondary
Broadening learning horizons through Flight and Aerospace.

Rocket Launch - Project Template

This is an incomplete template for the "Modeling a Rocket Launch with Gravity and Air Resistance" project. Modify this template to complete the project as described in the PDF document available at http://www.compadre.org/osp/items/detail.cfm?ID=11294.

completed by lookang for sharing with Hillgrove Secondary School
for the Broadening Learning horizons through flight and aerospace niche area.


Title: Re: Ejs Open Source Rocket Physics Java Applet Model
Post by: lookang on April 29, 2013, 02:34:40 pm
changes made by lookang:

assignment completed by lookang following Larry Engelhardt useful PDF
made visibility of the flame by adding ( t>0) && ( burnRate>0)
added thrust = (burnRate*v)
added analytic solution
added gravity g = gs/((1+y/Rearth)*(1+y/Rearth));
added gravityforce =-(m+mFuel)*g;
added air resistance in fixed relationship
if (y<44307){
 Temperature= Temperatureo- L*y;
 Pressure = Pressureo*Math.pow((Temperature/Temperatureo),(g*Molarmassair/R*L*y));// need this to avoid bug in calculation when Pressure <0
}
else if (y>44307){
  Temperature=0.0065;
  Pressure = 0.001;
  }

densityair=Pressure*Molarmassair/(R*Temperature);
DragForce = 0.5*densityair*area*Cd*vy*vy;
added scale to draw forces on rocket world view
added bottom panel as in my usual layout
added timer

enjoy!