Question

In: Physics

Write a simple matlab program to model the position, velocity, and acceleration over time of Ruchardt's...

Write a simple matlab program to model the position, velocity, and acceleration over time of Ruchardt's experiment as a harmonic oscillator.

Solutions

Expert Solution

I cannot provide the exact Matlab code here but I can try to explain the problem and the solution and can provide an algorithm that can be used to write a program in any computer language.

Ruchardt's experiment is a method to find out the Heat Capacity ratio . Schematically the experimental set-up is described in Fig. 1

Fig. 1 a piston of mass "M" inside a tube (with its mouth open in both ends) tightly inserted inside a gas vessel. In equilibrium the gas pressure and the volume inside the vessel and hence the tube (below the piston) are and .

The atmospheric pressure () plus the weight () of the piston are trying to push the piston down the tube but the gas pressure from below () is pushing it upwards as a result the piston is in equilibrium, therefore the gas pressure:

------------------------(1)

Where is the area of the tube (Pressure = Force per unit area).

If the piston moves a tiny distance "" away from the equilibrium point (in either direction) the pressure will change by a tiny amount   from the equilibrium on the piston resulting in a force:

------------------------------(2)

Solution of this equation can tell us about the position and velocity , but in order to solve it we have to cast in terms of position, to do that we can right change in pressure in terms of volume change (area times distance moved), using the gas law:

---------------------------------(3)

Let's substitute this from Eq. (3) in Eq. (1), therefore:

---------------------------(4)

Equation (4) gives the acceleration of the piston and answers one third of the question. Eq. (4) is clearly the Stroke's law where in our case is given by

-----------------------(5)

And we know hat the solution of Stroke's equation is the Simple Harmonic Motion, Eq. (4) is like the equation of motion of a mass hanging at the bottom end of a spring with spring constant , the time period in terms of and is given by:

-------------------------(6)

Corresponding angular frequency is given by:

----------------------(7)

Now that we know the angular frequency, writing down the position as a function of time is simple, just the standard Simple Harmonic Oscillator solutions:

--------------------(8)

Where is just a constant phase that depends on the initial condition you choose, for example if you decide that at you released the piston from the equilibrium position, in other words, initially , in that case you can choose . is the maximum vertical distance the piston moves and clearly it is the distance that the piston travels in when starting at from the equilibrium position.  

Velocity can be obtained by simply taking a time derivative of Eq. (9)

-------------(10)

Let us now right down all the results together:

Position:

---------------(11)

Velocity:

------------(12)

Acceleration:

------------------(13)

Where

When one measures the time period or the angular frequency in the experiment and inputs the known parameters , , and , one can calculate easily using Eq. (6) or (7).

Now about a computer algorithm:

Declare the input parameters, in this case:

, , , and (this last one of course can be set to 0). Define the functions , and of time using Eq. (11), (12) and (13) and plot these position, velocity and acceleration functions.


Related Solutions

write a matlab code to find the following: initial position, initial velocity, and acceleration using the...
write a matlab code to find the following: initial position, initial velocity, and acceleration using the algorithm and information below time(seconds). height(m) velocity(m/s) 0. 0.2. 2.95 algorithm: 1. Enter data in to arrays. 2. Fit the height data to a 2nd order polynomial. 3. Evaluate the polynomial at enough points to get a smooth curve. 4. Find the velocity model by taking derivative of the height polynomial. 5. Evaluate the velocity polynomial at enough times to get a smooth curve
Draw a position-vs-time, velocity-vs-time, and acceleration-vs-time graph for each of the following objects: 1. A car...
Draw a position-vs-time, velocity-vs-time, and acceleration-vs-time graph for each of the following objects: 1. A car traveling in a straight line at a constant speed. 2. A ball rolling down a hill, getting faster as time goes by. 3. A rock that is tossed straight up in the air before coming back down to its starting point.
Matlab code please 6. Find the velocity, acceleration, and speed of a particle with the given...
Matlab code please 6. Find the velocity, acceleration, and speed of a particle with the given position function. (a) r(t) = e t cos(t)i+e t sin(t)j+ tetk t = 0 (b) r(t) = 〈t 5 ,sin(t)+ t 2 cos(t),cos(t)+ t 2 sin(t)〉, t = 1
1) Find the velocity and position vectors of a particle that has the given acceleration and...
1) Find the velocity and position vectors of a particle that has the given acceleration and the given initial velocity and position. a(t) = 7i+ 4j,    v(0) = k,    r(0) = i 2) Find the tangential and normal components of the acceleration vector. r(t) = 5(3t − t3) i + 15t2 j
In simple harmonic motion, what happens to the velocity as the acceleration is maximum and vice...
In simple harmonic motion, what happens to the velocity as the acceleration is maximum and vice versa what happens to the acceleration as velocity is maximum. Explain in details on how you arrive at your conclusion.
Find the velocity, acceleration, and speed of a particle with the given position function. r(t) =...
Find the velocity, acceleration, and speed of a particle with the given position function. r(t) = 2 cos(t), 2t, 2 sin(t)
Find the velocity, acceleration, and speed of a particle with the given position function. r(t) =...
Find the velocity, acceleration, and speed of a particle with the given position function. r(t) = 9 cos(t), 8 sin(t) v(t) = a(t) = |v(t)| = Sketch the path of the particle and draw the velocity and acceleration vectors for t = π 3 .
Suppose that a particle has the following acceleration vector and initial velocity and position vectors. a(t)  ...
Suppose that a particle has the following acceleration vector and initial velocity and position vectors. a(t)  =  7 i  +  9t k,    v(0)  =  4 i  −  j,    r(0)  =  j  +  5 k (a) Find the velocity of the particle at time t. (b) Find the position of the particle at time t.
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a...
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a car that accelerates from rest at constant acceleration, a, are given by = a n d = 12 Determine v and d at every second for the first 10 seconds for a car with acceleration of = 15 ft/s2. Your output must have exactly the same format as the template table below. Note that dots have been added to the table below; you can...
Compare and contrast a simple pendulum with a mass/spring pendulum. Be sure to address velocity, acceleration,...
Compare and contrast a simple pendulum with a mass/spring pendulum. Be sure to address velocity, acceleration, and energy conversions.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT