«

»

What Is Simulink ?

The leading environment for modeling, simulating, and implementing dynamic and embedded systems

Simulink is an extension to Matlab that allows engineers to rapidly and accurately build computer models of dynamical systems using block diagram notation Block diagram notation is a graphical means to represent dynamical systems.

Simulation and Model-Based Design Simulink® is a block diagram environment for multi domain simulation and Model-Based Design. It supports system-level design, simulation, automatic code generation, and continuous test and verification of embedded systems. Simulink provides a graphical editor, customizable block libraries, and solvers for modeling and simulating dynamic systems. It is integrated with MATLAB®, enabling you to incorporate MATLAB algorithms into models and export simulation results to MATLAB for further analysis.

Simulink offers a variety of components that are assembled graphically to provide a full system simulation

aa

Here is an example that will learn you how simulink works and  what can you do by simulink

Simulation of Second-order Systems

d

Look at the drawing and answer

If you make the above system and put an x mark on the spring and put a weight of m=20kg and pushed the weight by force u =5.2N what is the position of x after 2 sec ? So simulink can answer easily as follow:

لو عملت الشكل اللي فوق ده و حطيت نفطة او علامة  علي السوستة زي الشكل و حطيت وزن مقداره 20 كجم وزائيت الوزن ده بقوة مقدارها 5.2 نيوتن و قولتلك عاوز اعرف مكان النقطة بعد ثانيتين هتعرف؟

السيميولينك ممكن يجاوبك بسهولة و يرسملك كمان مسار النقطة مع الزمن

Solution:

For solving you have to use mathematical modeling

So first we need to model this system on simulink and to do it we have to get the equation for forces in x direction as follow:

سنقوم بتحليل القوي في الاتجاه الافقي و الحصول علي المعادلة الرياضية

c

 

 

f

 

 

System parameters

the input force u is in N, m is mass [kg], k is spring stiffness, and b is viscous damping coefficient, y is the displacement of the mass.

Use these numerical values: m = 20 kg, k = 2.0 N/m, and b = 4.0 N/(m/s) and u = 5.2 N.

Initial conditions:

ydot(0)=0 و Y(0)=1

Simulation parameters:

Fixed step =.1

nss

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>