![](/user_photo/2706_HbeT2.jpg)
- •Contents
- •1 LAboratory work # 1
- •Mathematical model
- •Stages of a program elaboration
- •Call Desktop matlab
- •Script-files and Function-files
- •Enter of input data by awarding method. Comments
- •Organization of enter of the input data by a dialogue mode
- •Creation of Function-file
- •Graphical output
- •2 LAboratory work # 2
- •Debugging and verification of programs
- •Search of syntactic mistakes
- •Debugging with the help of Editor/Debugger
- •Verification of results of calculation
- •3 LAboratory work # 3
- •The task for fulfillment
- •Individual tasks
- •4 LAboratory work # 4
- •Mathematical model
- •The block-diagram of algorithm of calculation according to mathematical model
- •The task for fulfillment
- •5 LAboratory work # 5
- •The task for fulfillment
- •Individual tasks
- •6 LAboratory work # 6
- •Mathematical model
- •Determination of zero approximation
- •Program of calculation in matlab environment
- •Results of calculation
- •Individual tasks
- •The task for fulfillment
- •7 LAboratory work # 7
- •Mathematical model
- •Program of calculation at matlab environment
- •Results of calculation
- •Individual tasks
- •The task for fulfillment
- •8 LAboratory work # 8
- •Mathematical model
- •Results of calculation
- •Improvement of convergence of the Newton method
- •The task for fulfillment
- •9 LAboratory work # 9
- •Mathematical model
- •The program of calculation in matlab environment
- •Results of calculation
- •The task for fulfillment
- •10 LAboratory work # 10
- •The task for fulfillment
- •Individual tasks
- •LIst of literature
The block-diagram of algorithm of calculation according to mathematical model
The block-diagram of algorithm of calculation is given in figure 4.4.
The task for fulfillment
· Make the program realizing developed algorithm;
· Include into the program the operators, allowing carry out verification of calculation results;
· Organize a graphical output of the calculated functions of currents and voltages;
· Debug the program;
· Save the results of the work (the program, listing of calculation, graphics) into a personal file.
Figure 4.4 – The block-diagram of algorithm of calculation of transient
5 LAboratory work # 5
TOPIC: Calculation of transients in linear electric circuits by numerical method. Part 2.
PURPOSE OF THE WORK: Practice of applying of method of state variable, numerical methods of integration of the differential equations and discrete current models of inductive and capacitor elements in backward Euler method for calculations of transients.___________________________________________________
The task for fulfillment
Create mathematical model realizing calculation branch transient currents beginning at the moment of switch shorting for your individual task;
Develop algorithm according to created mathematical model by means backward Euler method;
Make the program realizing developed algorithm;
Include into the program the operators, allowing carry out verification of calculation results;
Organize a graphical output of the calculated functions of currents and voltages;
Debug the program;
Save the results of the work (the program, listing of calculation, graphics) at your personal file.
Individual tasks
Variant 1:
Variant 2:
Variant 3:
Variant 4:
Variant 5:
Variant 6:
Variant 7:
Variant 8:
Variant 9:
Variant 10:
Variant 11:
Variant 12:
Variant 13:
Variant 14:
Variant 15:
Variant 16:
Variant 17:
Variant 18:
Variant 19:
Variant 20:
Variant 21:
Variant 22:
Variant 23:
6 LAboratory work # 6
TOPIC: Modeling of steady state processes in nonlinear electric circuits of direct current by numerical method in MATLAB environment. Part 1.
PURPOSE OF THE WORK: Problem statement, development of the program of calculation of electrical state in the simple nonlinear circuit of a direct current by the Newton method.__________________
Mathematical model
Let’s consider the example of the mathematical model development of the electric processes in the circuit represented in the figure 6.1 and analyze of them in MATLAB environment.
Figure 6.1 – Given electrical circuit
Let parameters values of elements are given as:
EMF – E= 10 V;
Linear resistance – R1=0.5 Ohm;
Nonlinear resistance Rn is given analytically accord to VACH:
Un=a·I⅓, (6.1)
where Un – voltage across of nonlinear resistor, a=4.
It is require the determination of the current through the given circuit.
Then accord to second Kirchhoff law the equation is as following:
R1·I+ Un =E. (6.2)
Let’s substitute Un into the above represented equation and the nonlinear algebraic equation concerning the current I is obtained:
R1·I+a·I⅓=E. (6.3)
This equation would be written down as f(I)= 0, where
f(I)= R1·I+ a·I⅓ -E. (6.4)
Accord to the Newton algorithm k+1 approach could be found as:
.
(6.5)
Expression for determination of f'(I) could be obtained from (6.4):
f'(I)=R1+a/(3·I⅔).