Skip to content
Snippets Groups Projects
Commit 5c3c2c15 authored by Charukeshi Mayuresh Joglekar's avatar Charukeshi Mayuresh Joglekar
Browse files

Update ACS_V9.ipynb

parent 685d68c5
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id:6abc5329-fdea-4f76-ad5f-f6e8ecc8cdac tags: %% Cell type:markdown id:6abc5329-fdea-4f76-ad5f-f6e8ecc8cdac tags:
Design and Simulation of a Grid Forming Inverter Design and Simulation of a Grid Forming Inverter
System definition System definition
This notebook presents the complete design and verification of an inverter working as grid forming This notebook presents the complete design and verification of an inverter working as grid forming
%% Cell type:code id:bc402d67 tags: %% Cell type:code id:bc402d67 tags:
``` octave ``` octave
clear all clear all
% Set the Octave Engine to run the simulation % Set the Octave Engine to run the simulation
SetSimulationEnvironment; SetSimulationEnvironment;
% Input Data % Input Data
Rf = 0.1 Rf = 0.1
Lf = 0.01 Lf = 0.01
Rc = 0.01 Rc = 0.01
Cf = 0.001 Cf = 0.001
Rl = 10 Rl = 10
Ll = 0.1 Ll = 0.1
om = 2*pi*50 om = 2*pi*50
Vref = sqrt(3)*220 Vref = sqrt(3)*220
``` ```
%% Cell type:markdown id:446033c6 tags: %% Cell type:markdown id:446033c6 tags:
Current Loop Current Loop
First thing we design the current loop compensating the pole of the inductance and fixing the First thing we design the current loop compensating the pole of the inductance and fixing the
bandwidth bandwidth
%% Cell type:code id:02055711 tags: %% Cell type:code id:02055711 tags:
``` octave ``` octave
ombc = 600*2*pi ombc = 600*2*pi
Kpc = ombc*Lf Kpc = ombc*Lf
Kic = ombc*Rf Kic = ombc*Rf
``` ```
%% Cell type:markdown id:d3944599 tags: %% Cell type:markdown id:d3944599 tags:
As result we have the following frequency responses As result we have the following frequency responses
Open loop current Open loop current
%% Cell type:code id:6a86cc64 tags: %% Cell type:code id:6a86cc64 tags:
``` octave ``` octave
Gc = tf(1,[Lf Rf]) Gc = tf(1,[Lf Rf])
bode(Gc) bode(Gc)
``` ```
%% Cell type:markdown id:556532ab tags: %% Cell type:markdown id:556532ab tags:
Adding the controller to the open loop Adding the controller to the open loop
%% Cell type:code id:bd6ffa04 tags: %% Cell type:code id:bd6ffa04 tags:
``` octave ``` octave
Rcur = tf([Kpc Kic],[1 0]) Rcur = tf([Kpc Kic],[1 0])
Gopenc = Rcur*Gc Gopenc = Rcur*Gc
bode(Gopenc) bode(Gopenc)
``` ```
%% Cell type:markdown id:9415b65d tags: %% Cell type:markdown id:9415b65d tags:
Voltage Loop Voltage Loop
The design is performed by tuning the PI control and assuming that ESR does not play a role and The design is performed by tuning the PI control and assuming that ESR does not play a role and
that the current loop is too fast for the voltage loop that the current loop is too fast for the voltage loop
%% Cell type:code id:ac110f53 tags: %% Cell type:code id:ac110f53 tags:
``` octave ``` octave
ombv = 100*2*pi ombv = 100*2*pi
fim = 60*pi/180 fim = 60*pi/180
Gv = tf(1,[Cf 0]) Gv = tf(1,[Cf 0])
[Go Fo]= bode(Gv,ombv) [Go Fo]= bode(Gv,ombv)
Fo = Fo*pi/180; Fo = Fo*pi/180;
Kpv = cos(-pi+fim-Fo)/Go Kpv = cos(-pi+fim-Fo)/Go
Kiv = -sin(-pi+fim-Fo)*ombv/Go Kiv = -sin(-pi+fim-Fo)*ombv/Go
``` ```
%% Cell type:code id:4dead95b tags: %% Cell type:code id:4dead95b tags:
``` octave ``` octave
Rv = tf([Kpv Kiv],[1 0]) Rv = tf([Kpv Kiv],[1 0])
Gopenv = Rv*Gv Gopenv = Rv*Gv
margin(Gopenv) margin(Gopenv)
``` ```
%% Cell type:code id:9d1a0433 tags: %% Cell type:code id:9d1a0433 tags:
``` octave ``` octave
% Set the Octave Engine to run the simulation % Set the Octave Engine to run the simulation
SetSimulationEnvironment; SetSimulationEnvironment;
tini = 0; tini = 0;
tfinal = 0.1; tfinal = 0.1;
dt = 0.0001; dt = 0.0001;
nflows = 44; nflows = 44;
nnode = 23; nnode = 23;
maxn = 20; maxn = 20;
toll = 0.0001; toll = 0.0001;
% Creating an hybrid diagram containing a power network and control % Creating an hybrid diagram containing a power network and control
hy = HybridSystem(nnode,nflows,tini,tfinal,dt,maxn,toll); hy = HybridSystem(nnode,nflows,tini,tfinal,dt,maxn,toll);
% POWER NETWORK TOPOLOGY - Inverter+Filter+Load % POWER NETWORK TOPOLOGY - Inverter+Filter+Load
% Voltage Source % Voltage Source
c1{1} = Signal2Source(1,0,24); c1{1} = Signal2Source(1,0,24);
c1{2} = Signal2Source(2,0,25); c1{2} = Signal2Source(2,0,25);
c1{3} = Signal2Source(3,0,26); c1{3} = Signal2Source(3,0,26);
% Resistor % Resistor
c1{4} = Resistance(1,4,Rf); c1{4} = Resistance(1,4,Rf);
c1{5} = Resistance(2,5,Rf); c1{5} = Resistance(2,5,Rf);
c1{6} = Resistance(3,6,Rf); c1{6} = Resistance(3,6,Rf);
% Inductor % Inductor
c1{7} = Inductor(4,7,Lf); c1{7} = Inductor(4,7,Lf);
c1{8} = Inductor(5,8,Lf); c1{8} = Inductor(5,8,Lf);
c1{9} = Inductor(6,9,Lf); c1{9} = Inductor(6,9,Lf);
% Current Sensors % Current Sensors
c1{10} = CurrentSensor(7,10,29); c1{10} = CurrentSensor(7,10,29);
c1{11} = CurrentSensor(8,11,30); c1{11} = CurrentSensor(8,11,30);
c1{12} = CurrentSensor(9,12,31); c1{12} = CurrentSensor(9,12,31);
% Capacitor Resistances % Capacitor Resistances
c1{13} = Resistance(10,20,Rc); c1{13} = Resistance(10,20,Rc);
c1{14} = Resistance(11,21,Rc); c1{14} = Resistance(11,21,Rc);
c1{15} = Resistance(12,22,Rc); c1{15} = Resistance(12,22,Rc);
% Capacitor Filter % Capacitor Filter
c1{16} = Capacitor(20,23,Cf); c1{16} = Capacitor(20,23,Cf);
c1{17} = Capacitor(21,23,Cf); c1{17} = Capacitor(21,23,Cf);
c1{18} = Capacitor(22,23,Cf); c1{18} = Capacitor(22,23,Cf);
% Line/Load Resistance % Line/Load Resistance
c1{19} = Resistance(10,13,Rl); c1{19} = Resistance(10,13,Rl);
c1{20} = Resistance(11,14,Rl); c1{20} = Resistance(11,14,Rl);
c1{21} = Resistance(12,15,Rl); c1{21} = Resistance(12,15,Rl);
% Line/Load Inductor % Line/Load Inductor
c1{22} = Inductor(13,16,Ll); c1{22} = Inductor(13,16,Ll);
c1{23} = Inductor(14,17,Ll); c1{23} = Inductor(14,17,Ll);
c1{24} = Inductor(15,18,Ll); c1{24} = Inductor(15,18,Ll);
% Current sensors on line % Current sensors on line
c1{25} = CurrentSensor(16,19,34); c1{25} = CurrentSensor(16,19,34);
c1{26} = CurrentSensor(17,19,35); c1{26} = CurrentSensor(17,19,35);
c1{27} = CurrentSensor(18,19,36); c1{27} = CurrentSensor(18,19,36);
% Voltage sensors across capacitors % Voltage sensors across capacitors
c1{28} = VoltageSensor(10,23,39); c1{28} = VoltageSensor(10,23,39);
c1{29} = VoltageSensor(11,23,40); c1{29} = VoltageSensor(11,23,40);
c1{30} = VoltageSensor(12,23,41); c1{30} = VoltageSensor(12,23,41);
% Adding all the components to the network diagram % Adding all the components to the network diagram
hy.AddListComponents2Network(c1); hy.AddListComponents2Network(c1);
CONTROL SYSTEM % CONTROL SYSTEM
% Voltage Control % Voltage Control
b1{1} = Constant(1,Vref); b1{1} = Constant(1,Vref);
b1{2} = Constant(2,0); b1{2} = Constant(2,0);
b1{3} = Sum(1,42,3,1,-1); b1{3} = Sum(1,42,3,1,-1);
b1{4} = Sum(2,43,4,1,-1); b1{4} = Sum(2,43,4,1,-1);
b1{5} = PI(3,5,Kpv,Kiv,0); b1{5} = PI(3,5,Kpv,Kiv,0);
b1{6} = PI(4,6,Kpv,Kiv,0); b1{6} = PI(4,6,Kpv,Kiv,0);
% Feedforward and decoupling voltage loop % Feedforward and decoupling voltage loop
b1{7} = Sum(5,8,9,1,1); b1{7} = Sum(5,8,9,1,1);
b1{8} = Sum(6,7,10,1,-1); b1{8} = Sum(6,7,10,1,-1);
b1{9} = Gain(43,8,2*pi*50*Cf); b1{9} = Gain(43,8,2*pi*50*Cf);
b1{10} = Gain(42,7,2*pi*50*Cf); b1{10} = Gain(42,7,2*pi*50*Cf);
b1{11} = Sum(9,37,11,1,1); b1{11} = Sum(9,37,11,1,1);
b1{12} = Sum(10,38,12,1,1); b1{12} = Sum(10,38,12,1,1);
% Current Control % Current Control
b1{13} = Sum(11,32,13,1,-1); b1{13} = Sum(11,32,13,1,-1);
b1{14} = Sum(12,33,14,1,-1); b1{14} = Sum(12,33,14,1,-1);
b1{15} = PI(13,15,Kpc,Kic,0); b1{15} = PI(13,15,Kpc,Kic,0);
b1{16} = PI(14,17,Kpc,Kic,0); b1{16} = PI(14,17,Kpc,Kic,0);
% Feedforward and decoupling current loop % Feedforward and decoupling current loop
b1{17} = Sum(15,16,19,1,1); b1{17} = Sum(15,16,19,1,1);
b1{18} = Sum(17,18,20,1,-1); b1{18} = Sum(17,18,20,1,-1);
b1{19} = Gain(33,16,2*pi*50*Lf); b1{19} = Gain(33,16,2*pi*50*Lf);
b1{20} = Gain(32,18,2*pi*50*Lf); b1{20} = Gain(32,18,2*pi*50*Lf);
b1{21} = Sum(19,42,21,1,1); b1{21} = Sum(19,42,21,1,1);
b1{22} = Sum(20,43,22,1,1); b1{22} = Sum(20,43,22,1,1);
% Park Output Voltage Reference % Park Output Voltage Reference
b1{23} = InvPark(21,22,2,24,25,26,23); b1{23} = InvPark(21,22,2,24,25,26,23);
% Angle Reference % Angle Reference
b1{24} = Constant(27,2*pi*50); b1{24} = Constant(27,2*pi*50);
b1{25} = Integrator(27,23,0); b1{25} = Integrator(27,23,0);
% Measurement Current Filter % Measurement Current Filter
b1{26} = Park(29,30,31,32,33,44,23); b1{26} = Park(29,30,31,32,33,44,23);
% Measurement Voltage Filter % Measurement Voltage Filter
b1{27} = Park(39,40,41,42,43,44,23); b1{27} = Park(39,40,41,42,43,44,23);
% Measurement Current Load % Measurement Current Load
b1{28} = Park(34,35,36,37,38,44,23); b1{28} = Park(34,35,36,37,38,44,23);
% Adding all the components to the Control Schema % Adding all the components to the Control Schema
hy.AddListComponents2Schema(b1); hy.AddListComponents2Schema(b1);
% Initialization % Initialization
hy.Init(); hy.Init();
p=1; p=1;
% Simulation Loop % Simulation Loop
while hy.Step() while hy.Step()
time(p) = hy.GetTime(); time(p) = hy.GetTime();
% Park Voltage % Park Voltage
out(1,p) = hy.GetFlow(42); out(1,p) = hy.GetFlow(42);
out(2,p) = hy.GetFlow(43); out(2,p) = hy.GetFlow(43);
% Park Currents % Park Currents
out(3,p) = hy.GetFlow(32); out(3,p) = hy.GetFlow(32);
out(4,p) = hy.GetFlow(33); out(4,p) = hy.GetFlow(33);
% Phase Voltages % Phase Voltages
out(5,p) = hy.GetFlow(39); out(5,p) = hy.GetFlow(39);
out(6,p) = hy.GetFlow(40); out(6,p) = hy.GetFlow(40);
out(7,p) = hy.GetFlow(41); out(7,p) = hy.GetFlow(41);
% Phase Currents % Phase Currents
out(8,p) = hy.GetFlow(34); out(8,p) = hy.GetFlow(34);
out(9,p) = hy.GetFlow(35); out(9,p) = hy.GetFlow(35);
out(10,p) = hy.GetFlow(36); out(10,p) = hy.GetFlow(36);
p=p+1; p=p+1;
end end
``` ```
%% Cell type:markdown id:d03968d1 tags: %% Cell type:markdown id:d03968d1 tags:
Park Voltages on the filter Park Voltages on the filter
%% Cell type:code id:754899a0 tags: %% Cell type:code id:754899a0 tags:
``` octave ``` octave
plot(time,out(1,:),time,out(2,:)); plot(time,out(1,:),time,out(2,:));
``` ```
%% Cell type:markdown id:d1bd8c81 tags: %% Cell type:markdown id:d1bd8c81 tags:
Park Currents on the filter Park Currents on the filter
%% Cell type:code id:cbcf34a5 tags: %% Cell type:code id:cbcf34a5 tags:
``` octave ``` octave
plot(time,out(3,:),time,out(4,:)); plot(time,out(3,:),time,out(4,:));
10 10
``` ```
%% Cell type:markdown id:92064e71 tags: %% Cell type:markdown id:92064e71 tags:
Phase Voltages Phase Voltages
%% Cell type:code id:5c863797 tags: %% Cell type:code id:5c863797 tags:
``` octave ``` octave
plot(time,out(5,:),time,out(6,:),time,out(7,:)); plot(time,out(5,:),time,out(6,:),time,out(7,:));
``` ```
%% Cell type:markdown id:e2e5a943 tags: %% Cell type:markdown id:e2e5a943 tags:
Phase currents Phase currents
%% Cell type:code id:62874b7a tags: %% Cell type:code id:62874b7a tags:
``` octave ``` octave
plot(time,out(8,:),time,out(9,:),time,out(10,:)); plot(time,out(8,:),time,out(9,:),time,out(10,:));
``` ```
%% Cell type:markdown id:41f840a9 tags: %% Cell type:markdown id:41f840a9 tags:
State Feedback with integrator State Feedback with integrator
We approach now the design in the state space domain We approach now the design in the state space domain
First thing we need to define the system matrices as state space matrices First thing we need to define the system matrices as state space matrices
%% Cell type:code id:deb91998 tags: %% Cell type:code id:deb91998 tags:
``` octave ``` octave
Ass = [-Rf/Lf om -1/Lf 0; -om -Rf/Lf 0 -1/Lf; 1/Cf 0 0 om; 0 1/Cf -om 0] Ass = [-Rf/Lf om -1/Lf 0; -om -Rf/Lf 0 -1/Lf; 1/Cf 0 0 om; 0 1/Cf -om 0]
Bss = [1/Lf 0; 0 1/Lf; 0 0; 0 0] Bss = [1/Lf 0; 0 1/Lf; 0 0; 0 0]
``` ```
%% Cell type:markdown id:528744c3 tags: %% Cell type:markdown id:528744c3 tags:
We assume not to measure the current of the load and we treat it as a disturbance We assume not to measure the current of the load and we treat it as a disturbance
As result we need to add an integrator and extend the system matrices of one order to track vd As result we need to add an integrator and extend the system matrices of one order to track vd
%% Cell type:code id:1959c477 tags: %% Cell type:code id:1959c477 tags:
``` octave ``` octave
C = [0 0 1 0;0 0 0 1] C = [0 0 1 0;0 0 0 1]
Asse = [Ass zeros(4,2);-C zeros(2,2)] Asse = [Ass zeros(4,2);-C zeros(2,2)]
Bsse = [Bss; zeros(2,2)] Bsse = [Bss; zeros(2,2)]
``` ```
%% Cell type:markdown id:b57c4a8a tags: %% Cell type:markdown id:b57c4a8a tags:
We design a pole placement controller We design a pole placement controller
%% Cell type:code id:4f8c3ed8 tags: %% Cell type:code id:4f8c3ed8 tags:
``` octave ``` octave
p1 = -100+1j*50; p1 = -100+1j*50;
p2 = -100-1j*50; p2 = -100-1j*50;
p3 = -100+1j*50; p3 = -100+1j*50;
p4 = -100-1j*50; p4 = -100-1j*50;
p5 = -1000; p5 = -1000;
p6 = -1000; p6 = -1000;
K = place(Asse,Bsse,[p1 p2 p3 p4 p5 p6]) K = place(Asse,Bsse,[p1 p2 p3 p4 p5 p6])
``` ```
%% Cell type:markdown id:826765d7 tags: %% Cell type:markdown id:826765d7 tags:
We can now verify in simulation We can now verify in simulation
%% Cell type:code id:99f9fcd5 tags: %% Cell type:code id:99f9fcd5 tags:
``` octave ``` octave
tini2 = 0; tini2 = 0;
tfinal2 = 0.1; tfinal2 = 0.1;
dt2 = 0.0001; dt2 = 0.0001;
nflows2 = 44; nflows2 = 44;
nnode2 = 23; nnode2 = 23;
maxn2 = 20; maxn2 = 20;
toll2 = 0.0001; toll2 = 0.0001;
% Creating an hybrid diagram containing a power network and control % Creating an hybrid diagram containing a power network and control
hy2 = HybridSystem(nnode2,nflows2,tini2,tfinal2,dt2,maxn2,toll2); hy2 = HybridSystem(nnode2,nflows2,tini2,tfinal2,dt2,maxn2,toll2);
% POWER NETWORK TOPOLOGY - Inverter+Filter+Load % POWER NETWORK TOPOLOGY - Inverter+Filter+Load
% Voltage Source % Voltage Source
c2{1} = Signal2Source(1,0,24); c2{1} = Signal2Source(1,0,24);
c2{2} = Signal2Source(2,0,25); c2{2} = Signal2Source(2,0,25);
c2{3} = Signal2Source(3,0,26); c2{3} = Signal2Source(3,0,26);
% Resistor % Resistor
c2{4} = Resistance(1,4,Rf); c2{4} = Resistance(1,4,Rf);
c2{5} = Resistance(2,5,Rf); c2{5} = Resistance(2,5,Rf);
c2{6} = Resistance(3,6,Rf); c2{6} = Resistance(3,6,Rf);
% Inductor % Inductor
c2{7} = Inductor(4,7,Lf); c2{7} = Inductor(4,7,Lf);
c2{8} = Inductor(5,8,Lf); c2{8} = Inductor(5,8,Lf);
c2{9} = Inductor(6,9,Lf); c2{9} = Inductor(6,9,Lf);
% Current Sensors % Current Sensors
c2{10} = CurrentSensor(7,10,29); c2{10} = CurrentSensor(7,10,29);
c2{11} = CurrentSensor(8,11,30); c2{11} = CurrentSensor(8,11,30);
c2{12} = CurrentSensor(9,12,31); c2{12} = CurrentSensor(9,12,31);
% Capacitor Resistances % Capacitor Resistances
c2{13} = Resistance(10,20,Rc); c2{13} = Resistance(10,20,Rc);
c2{14} = Resistance(11,21,Rc); c2{14} = Resistance(11,21,Rc);
c2{15} = Resistance(12,22,Rc); c2{15} = Resistance(12,22,Rc);
% Capacitor Filter % Capacitor Filter
c2{16} = Capacitor(20,23,Cf); c2{16} = Capacitor(20,23,Cf);
c2{17} = Capacitor(21,23,Cf); c2{17} = Capacitor(21,23,Cf);
c2{18} = Capacitor(22,23,Cf); c2{18} = Capacitor(22,23,Cf);
% Line/Load Resistance % Line/Load Resistance
c2{19} = Resistance(10,13,Rl); c2{19} = Resistance(10,13,Rl);
c2{20} = Resistance(11,14,Rl); c2{20} = Resistance(11,14,Rl);
c2{21} = Resistance(12,15,Rl); c2{21} = Resistance(12,15,Rl);
% Line/Load Inductor % Line/Load Inductor
c2{22} = Inductor(13,16,Ll); c2{22} = Inductor(13,16,Ll);
c2{23} = Inductor(14,17,Ll); c2{23} = Inductor(14,17,Ll);
c2{24} = Inductor(15,18,Ll); c2{24} = Inductor(15,18,Ll);
% Current sensors on line % Current sensors on line
c2{25} = CurrentSensor(16,19,34); c2{25} = CurrentSensor(16,19,34);
c2{26} = CurrentSensor(17,19,35); c2{26} = CurrentSensor(17,19,35);
c2{27} = CurrentSensor(18,19,36); c2{27} = CurrentSensor(18,19,36);
% Voltage sensors across capacitors % Voltage sensors across capacitors
c2{28} = VoltageSensor(10,23,39); c2{28} = VoltageSensor(10,23,39);
c2{29} = VoltageSensor(11,23,40); c2{29} = VoltageSensor(11,23,40);
c2{30} = VoltageSensor(12,23,41); c2{30} = VoltageSensor(12,23,41);
% Adding all the components to the network diagram % Adding all the components to the network diagram
hy2.AddListComponents2Network(c2); hy2.AddListComponents2Network(c2);
% CONTROL SYSTEM % CONTROL SYSTEM
% Voltage Control % Voltage Control
b2{1} = Constant(1,Vref); b2{1} = Constant(1,Vref);
b2{2} = Sum(1,42,2,1,-1); b2{2} = Sum(1,42,2,1,-1);
b2{3} = Integrator(2,3,0); b2{3} = Integrator(2,3,0);
b2{4} = Constant(4,0); b2{4} = Constant(4,0);
b2{5} = Sum(4,43,5,1,-1); b2{5} = Sum(4,43,5,1,-1);
b2{6} = Integrator(5,6,0); b2{6} = Integrator(5,6,0);
b2{7} = Gain([32 33 42 43 3 6],21,-K(1,:)); b2{7} = Gain([32 33 42 43 3 6],21,-K(1,:));
b2{8} = Gain([32 33 42 43 3 6],22,-K(2,:)); b2{8} = Gain([32 33 42 43 3 6],22,-K(2,:));
% Park Output Voltage Reference % Park Output Voltage Reference
b2{9} = InvPark(21,22,4,24,25,26,23); b2{9} = InvPark(21,22,4,24,25,26,23);
% Angle Reference % Angle Reference
b2{10} = Constant(27,2*pi*50); b2{10} = Constant(27,2*pi*50);
b2{11} = Integrator(27,23,0); b2{11} = Integrator(27,23,0);
% Measurement Current Filter % Measurement Current Filter
b2{12} = Park(29,30,31,32,33,44,23); b2{12} = Park(29,30,31,32,33,44,23);
% Measurement Voltage Filter % Measurement Voltage Filter
b2{13} = Park(39,40,41,42,43,44,23); b2{13} = Park(39,40,41,42,43,44,23);
% Measurement Current Load % Measurement Current Load
b2{14} = Park(34,35,36,37,38,44,23); b2{14} = Park(34,35,36,37,38,44,23);
% Adding all the components to the Control Schema % Adding all the components to the Control Schema
hy2.AddListComponents2Schema(b2); hy2.AddListComponents2Schema(b2);
% Initialization % Initialization
hy2.Init(); hy2.Init();
p=1; p=1;
% Simulation Loop % Simulation Loop
while hy2.Step() while hy2.Step()
time2(p) = hy2.GetTime(); time2(p) = hy2.GetTime();
% Park Voltage % Park Voltage
out2(1,p) = hy2.GetFlow(42); out2(1,p) = hy2.GetFlow(42);
out2(2,p) = hy2.GetFlow(43); out2(2,p) = hy2.GetFlow(43);
% Park Currents % Park Currents
out2(3,p) = hy2.GetFlow(32); out2(3,p) = hy2.GetFlow(32);
out2(4,p) = hy2.GetFlow(33); out2(4,p) = hy2.GetFlow(33);
p=p+1; p=p+1;
end end
``` ```
%% Cell type:code id:7e50a69a tags: %% Cell type:code id:7e50a69a tags:
``` octave ``` octave
plot(time2,out2(1,:),time2,out2(2,:)); plot(time2,out2(1,:),time2,out2(2,:));
``` ```
%% Cell type:code id:df1adc63 tags: %% Cell type:code id:df1adc63 tags:
``` octave ``` octave
plot(time2,out2(3,:),time2,out2(4,:)); plot(time2,out2(3,:),time2,out2(4,:));
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment