Experiment Name : DC Circuit analysis.
Introduction :
Simulink is a MATLAB-based graphical programming environment for modeling, simulating and analyzing multi-domain dynamical systems. In this experiement we will create a model for DC Circuit analysis. We will verify the Ohm’s Law and Kirchhoff's Current Law (KCL).
Objective :
Design and simulate any system in Simulink before moving to hardware. Basically MATLAB Simulink is to
1. Ohm's law states that the current through a conductor between two points is directly proportional to the voltage across the two points.
2. We will design and simulate a simple DC circuit consist of Two DC source and verify the Ohm’s law. (Figure 1)
3. Secondly we will verify the Kirchhoff's Current Law (KCL). KCL states that, in a closed circuit, the entering current at node is equal to the current leaving at the node.
4. We will design and simulate circuit consisting multiple node and two voltage source. Thus verify the KCL. (Figure 2)
Matlab Simulink:
Figure 1: Verifiication of Ohm's Law
Figure 2: Verification Of Kirchhoff's Current Law (KCL)
Simulation and analysis :
i. At first, We lauch the Matlab. Here we are using MATLAB R2013a version. Then we need to write “Simulink” on command window of the matlab in order to launch the MATLAB Simulink, Where the libraries of Simulink Blocks that are available for use in constructing Simulink models.
ii. After that we navigated to library directory as follows — Simscape > SimPowerSystems > Electrical Sources and drag and drop the two “DC Voltage Source” in our Newly created modal page. All the electrical component such as resistor, inductor or capacitor can be found in Elements section. After that we need to component as with mouse pointer as our diagram/model needed to be. Commoponent canbe easily copied with in model while holding the ctrl key while dragging the commonnent.
iii. All the measuing instrument such as multi-meter/Ammeter/Voltmeter can be cound in library directory as follows — Simscape > SimPowerSystems > Measurement. In order to display the measurement value we also need to add the LCD Display/Scope component fromlibrary directory as follows — Simulink > Sinks.
iv. We also need to add Math Adder components which is located to library directory as follows — Simulink > Math Operation > ADD/Sum. We also need the increase the port of sum/add operator going to it’s option and adding + to port seciton.
v. After that we add the powergui on our deign blocks. It stores the equivalent Simulink circuit that represents the state-space equations of the model.
vi. Now we have to design the circuit manually by dragging mouse pointer carefully.
vii. To emulate the simulation, We need to Run the Simulation model. First open the scope window by double-clicking on it. Then go to Simulation Start. When the simulation has completed we will see the output on the scope.
Discussion:
In this experiement we design a DC circuit consisting two DC source. We measure and analyze the current of the circuit in different terminal. Thus we simulate and verify the Ohm’s law and Kirchhoff's Current Law (KCL) using MATLAB Simulink.
No comments:
Post a Comment