find the solution in working model.
for positive x direction
similary for other direction
% To test the mathematical model for a spring, mass and damper system
global M K R Amp freq mg
%Interval of Integration
tspan = [0 10];
% tspan = [0 10];
%initial conditions, at t = 0,
x0 = [ 0; ...%p1(t = 0) = 0 => initial momentum = 0, mass at
rest
0];%qk(t = 0) = 1 => Initial position
%Input Parameters
M = 1;%40;%Mass = 1Kg.
K = 8;%0.5;%50;%spring stiffness, N/m
zeta = 1;%0.25;%4;%0.005;%-0.1;%
R = 0.1;%2*zeta*sqrt(K*M);%10;%damping, N-s/m
Amp = 0.8;%0.001;%10;%0;%0;
freq = 3.8;%0;%0.5;%0;%0;
g = 9.81;
mg = M*g;
%calling the solver
options = odeset('OutputFcn', 'odeplot', 'OutputSel', [1 2]);
[t,x] = ode45('simpleode', tspan, x0, options);
[v] = velocity(t, x);
plotsimple% plot results
%ODE file for simple.m
function out1 = simpleode(t, x)
global M K R Amp freq mg
%The state vector = x, received after intergration from the
solver, at this instant.
p1 = x(1); %momentum of mass
qk = x(2); %displacement of mass
%Derivation of System Equations from the Bond graph.
%I. What do the elements give to the system?
% F = mg;
F = Amp*cos(freq*t); %unit sine wave input
e4 = F;
f1 = p1/M;
%e2 = (qk/(1-qk^2));%K*qk;
e2 = K*qk;
f3 = f1;
e3 = R*f3;
%II. What does the system give to the elements with integral
causality?
e1 = e4 - e3 - e2;
dp1 = e1;
f2 = f1;
dqk = f2;
% end
%Time derivative of the state vector
dx(1) = dp1;
dx(2) = dqk;
out1 = dx'; %Output of the ODE file simpleode.m, function simpleode
plot(t,x(:,2));
title('Displacement x(t)');
xlabel('time (s)');
ylabel('Displacement (m)');
pause;
plot(t,v(:,1));
title('v(x)');
xlabel('time (s)');
ylabel('Displacement (m)');
pause;
find the solution in working model. 5). A mass m moves over a horizontal surface under external harmonic excitation....
A mass m is on a horizontal frictionless surface and is attached to an ideal horizontal spring of spring constant k. The equilibrium position of the free end of the spring is at x = 0. The displacement of the mass by P⃗ begins and ends with the mass at rest.the displacement begins at position xi and ends at position xf. Select all true statements.a) Wp=-Ws b)=integration(kxdx) c)Wp=0 d)Wspring=0 e)Ws= integrate(-kxdx) f)P(x)=kx
A mass is placed on a frictionless, horizontal table. A spring (k = 165 N/m), which can be stretched or compressed, is placed on the table. A 3-kg mass is anchored to the wall. The equilibrium position is marked at zero. A student moves the mass out to x = 7.0 cm and releases it from rest. The mass oscillates in simple harmonic motion. Find the position, velocity, and acceleration of the mass at time t = 3.00 s. Round...
7) A block of mass m, resting on a horizontal frictionless surface, is attached to one end of a spring; the other end is fixed to a wall. It takes 3.6 J of work to compress the spring by 0.13 m. If the spring is compressed, and the mass is released from rest, it experiences a maximum acceleration of 15 m/s2. Find the value of (a) the mass of the block. As the block passes through its equilibrium position, a...
QUESTIONS A block of mass m, resting on a horizontal frictionless surface, is attached to one end of a spring; the other end is fixed to a wall. It takes 3.6J of work to compress the spring by 13 cm; then it is released from rest. It experiences a maximum acceleration of 15 m/s2. Find the value of (a) the mass of the block. As the block passes through its equilibrium position, a lump of putty of mass mi -...
A block of mass m, resting on a horizontal frictionless surface, is attached to one end of a spring; the other end is fixed to a wall. It takes 3.6J of work to compress the spring by 13 cm; then it is released from rest. It experiences a maximum acceleration of 15 m/s2. Find the value of (a) the mass of the block. As the block passes through its equilibrium position, a lump of putty of mass mı = 1.2...
• 30 In Fig. 7-10a, a block of mass m lies on a horizontal frictionless surface and is attached to one end of a horizontal spring (spring constant k) whose other "O 0.5 1 1.5 2 end is fixed. The block is initially at x (m) rest at the position where the spring Figure 7-36 Problem 30. is unstretched (x = 0) when a con- I stant horizontal force É in the positive direction of the x axis is applied...
Q1-(25 pts) A block of mass m is on a horizontal surface and is attached to a spring whose other end is fixed. The spring constant is k. The coefficient of kinetic friction between the block and the horizontal surface is u. A force Facts on the block always making an angle with the horizontal, as shown in the figure. The magnitude of the force is adjusted so that the block moves with constant speed v on the surface from...
A block of mass m, resting on a horizontal frictionless surface, is attached to one end of a spring; the other end is fixed to a wall. It takes 3.6 J of work to compress the spring by 13 cm; then it is released from rest. It experiences a maximum acceleration of 15 m/s2. Find the value of (a) the mass of the block. As the block passes through its equilibrium position, a lump of putty of mass mi -...
A block of mass m, resting on a horizontal frictionless surface, is attached to one end of a spring; the other end is fixed to a wall. It takes 3.6 J of work to compress the spring by 13 cm; then it is released from rest. It experiences a maximum acceleration of 15 m/s2. Find the value of (a) the mass of the block. As the block passes through its equilibrium position, a lump of putty of mass mi -...
A cart of mass m rolls without friction on a level surface, and is attached to a light spring of constant k, the other end of which is attached to a wall. Take the initial position of the cart, where the spring is neither extended nor compressed, to be the origin x = 0 of a coordinate system where positive x values are to the right and positive vectors point to the right. The cart is pushed to the left...