This is the web version of EJS interface
EJS version 4.3.6
  1. Title=1 dimenional collision force model
  2. Author=Fu-Kwun Hwang and lookang
  3. Abstract=a remix by lookang
  4. CaptureTools=true
  5. DataTools=true
  6. LanguageTools=false
  7. EmersionSupport=false
  8. AppletColSupport=false
  9. UseInterpreter=true

Intro Page

    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    _pause(); t=0.; vel_data[0] = 0; vel_data[1] = vx1; vel_data[2] = vx2; collision = 0; // clear graph clear_graph = true; total_mom = m1*vx1+m2*vx2; total_KE = 0.5*m2*vx2*vx2 +0.5*m1*vx1*vx1; time_start = 0; time_end = 0;
    // http://www.um.es/fem/EjsWiki/index.php/Main/ElementsAboutColors // myColor = java.awt.Color.RED; //??myColor = new java.awt.Color(255,0,0); body1color = new java.awt.Color(0,0,255,200); //green with transparent 100 //body1color = new java.awt.Color(64,128,0,255); //green with transparent 100 body2color = new java.awt.Color(255,50,0,255); // orange with transparent 100 //momcolor = new java.awt.Color(155,0,155,255); // magneta previuosly redred //KEcolor = new java.awt.Color(75,0,75,255); // blue velocitycolor = new java.awt.Color(255,0,255,255); // magneta Fcolor = new java.awt.Color(0,200,0,255); // dark green //tablecolor = new java.awt.Color(0,255,255,255); // teal table //wheelcolor = new java.awt.Color(255,255,0,255) ; // yellow transparent wheel Fcolor = new java.awt.Color(0,200,0,255); totalcolour = new java.awt.Color(0,0,0,255); //green