NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 22, 2017, 07:07:15 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
The softest thing overcomes the hardest thing in the universe. ...Lao Tzu (570-490 BC)
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: A pendulum connected to a spring  (Read 14545 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
concord
Full Member
***
Offline Offline

Posts: 125


WWW
«
Embed this message
on: August 21, 2005, 08:09:59 pm »

A pendulum connected to a spring:

http://mw.concord.org/modeler1.3/mirror/mechanics/pendulum3.html

Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: February 17, 2010, 04:35:53 pm » posted from:Taipei,T\'ai-pei,Taiwan

The following is an EJS version of the above applet (with more options)

You can drag the spring, particle and the rod with mouse click/drag.
You can change spring constant k, mass m , spring length L, and damping constant b.
Enjoy it!

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #2 on: October 24, 2011, 12:51:49 pm » posted from:Taipei,T'ai-pei,Taiwan

Equation used in the above simulation.
Assume angle \theta for the pendulum, angular velocity \omega=\frac{d\theta}{dt}
And \frac{d\omega}{dt}=calAplha(\theta)+ g\cos\theta+ -b\omega/m
where caAplha(\theta) calculate spring force and find it tangential component.

Code:
public double calAlpha (double c) {
 cs=Math.cos(c);
 sc=Math.sin(c);
 x=x2-R*cs;
 y=y2-R*sc;
 L=Math.sqrt((x-x1)*(x-x1)+(y-y1)*(y-y1));
 f=-k*(L-L0); fx=f*(x-x1);
 fy=f*(y-y1);
 n=-fx*cs-fy*sc;
 nx=-n*cs;
 ny=-n*sc;
 fx=fx-nx;
 fy=fy-ny;
 if(c>0)sign=-1;
 else sign=1;
 return sign*Math.sqrt(fx*fx+fy*fy)/I; // where I is the momentum of initial
}
Logged
Pages: [1]   Go Up
  Print  
The softest thing overcomes the hardest thing in the universe. ...Lao Tzu (570-490 BC)
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
N connected spring in vertical direction (with gravity)
Dynamics
Fu-Kwun Hwang 0 12502 Last post April 27, 2006, 10:31:06 am
by Fu-Kwun Hwang
Two blocks connected with spring with external force push
Dynamics
Fu-Kwun Hwang 0 10844 Last post February 26, 2007, 04:59:41 pm
by Fu-Kwun Hwang
A pendulum connected to a spring
misc
ahmedelshfie 1 4976 Last post July 02, 2010, 05:38:02 pm
by ahmedelshfie
N connected spring in vertical direction (with gravity)
dynamics
ahmedelshfie 0 3095 Last post June 09, 2010, 12:15:35 am
by ahmedelshfie
Two blocks connected with spring with external force push
dynamics
ahmedelshfie 0 6672 Last post July 09, 2010, 06:22:14 pm
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.341 seconds with 22 queries.since 2011/06/15