Project

week 3 simulink

AIM:-1. Find the Work Done of a Cutting Tool in Simulink Model.

2. Create a Simulink model to implement equation & Store result values using To File' block 3. Open 'Mass-Spring-Damper in Simulink and Simscape' model & solve the Given Problem.

#Part 1:- Find the Work Done of a Cutting Tool
Objective:- Calculate the Work Done on Simulink, as the tool moves through a distance of 100 mm under variable Force

Procedure:-- As we have the given Data for Distance & Force
Distance (mm) 0 20 40 60 80 100

Force (kN) 60 72 65 53 44 50
- We need to find the Work Done as the tool moves through a distance of 100 mm - Work done is when an object displaces in the direction of applied force

-Work Done = Force * Displacement

- We can calculate the work done by finding the area under the curve after plotting the values

- Here I am using ONE method to Find the Workdone, in method

-1 I am using the Signal Builder to provide the input value of displacement and force, Using Integrator Block, we can plot the area under the curve. - I use Mux block to plot the graph for both methods. - As a result, we get the area under the curve on Scope.

simulink model:-

RESULT:- WORK DONE BY CUTTING TOOL

#Part 2:- Create a Simulink model to implement equation & Store result values using To File' block
Objective:--Create two array data sets x = [22 3 55.6 9 12 10] and y = [5 31 95 56.3 77 61] from the command window.

-Create a Simulink model to implement equation z=3x2-5y+18.

-Store result values using To File block.
Procedure:-- To calculate the values of z, I use constant blocks to provide the values of x & y

- In MATLAB command window I made two arrays to give the values of x & y, and save the file in the same directory.

- Now further I use the Math Function block to square the value of x and then multiply it by 3 by using the gain block.

- For y value, I did the same procedure. and use the Sum block to complete the equation. - I use the Display Block to get the result for z, and also for the values of x & y. - As per the requirement to save the result as a file in the computer directory, I use TO WORKSPACE for the same and connect it after the sum of x & y.

RESULT:-

#Part 3:- Solve the following problems using 'Mass-Spring-Damper in Simulink and Simscape' model
Objective:- By using 'Mass-Spring-Damper in Simulink and Simscape' model solve the following;
1. Derive the governing equation for the model

2. Change the value of mass, damper, and spring for the Simscape model and plot the result. Change the value of Mass x0=2 in the Simulink model and plot the results. 3. Make the response from Simscape and Simulink as two separate displays.
Procedure:--we can find the 'Mass-Spring-Damper in Simulink and Simscape' model in the help tab.

In this example, shows the two models of 'Mass-Spring-Damper, one is created by Simulink and the other is created by using Simscape

- The Simulink model uses signal connections, which define how data flows from one block to another.

- The Simscape model uses physical connections, which permit a bidirectional flow of energy between components. Physical connections make it possible to add further stages to the mass-spring-damper simply by using copy and paste.

- Input/output connections require rederiving and reimplementing the equations.

- As per the given data, I am changing the values of mass, damper, and spring for the Simscape model, and changing the value of Mass x0=2 in the Simulink model and plot the results.
Model:-


Solve Governing Equation for the Model:--Simple Harmonic motion (Linear)-
Oscillation Motion
• To and fro motion of a particle about a mean position is called an oscillatory motion in which a particle moves on either side of equilibrium or mean position is an oscillatory motion. • It is a kind of periodic motion bounded between two extreme points. For example, Oscillation of Simple Pendulum, Spring-Mass System. • The object will keep on moving between two extreme points about a fixed point is called mean position or equilibrium position along any path. (the path is not a constraint). • There will be a restoring force directed towards equilibrium position or mean position. • In an oscillatory motion, the net force on the particle is zero at the mean position.

RESULT:-1) SIMULINK

2)SIMSCAPE


Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.