PVSystems.Electrical.Assemblies

Electrical assemblies useful in PV and power electronics

Information

Extends from PVSystems.Icons.AssembliesPackage (Icon for packages of assemblies).

Package Content

Name Description
PVSystems.Electrical.Assemblies.HBridge HBridge Basic ideal H-bridge topology (averaged)
PVSystems.Electrical.Assemblies.HBridgeSwitched HBridgeSwitched Basic ideal H-bridge topology (switched)
PVSystems.Electrical.Assemblies.BidirectionalBuckBoost BidirectionalBuckBoost Bidirectional Buck Boost converter
PVSystems.Electrical.Assemblies.CPMBidirectionalBuckBoost CPMBidirectionalBuckBoost Bidirectional Buck Boost for battery USB interface

PVSystems.Electrical.Assemblies.HBridge PVSystems.Electrical.Assemblies.HBridge

Basic ideal H-bridge topology (averaged)

PVSystems.Electrical.Assemblies.HBridge

Information

This model further composes IdealAverageCCMSwitch to form a typical H-bridge configuration from which a 1-phase inverter can be constructed. This model is based in averaged switch models.

Extends from Interfaces.TwoPort (Common interface for power converters with two ports), PVSystems.Icons.ConverterIcon (Icon for power converter models).

Parameters

TypeNameDefaultDescription
replaceable model SwitchModelCCM1 

Connectors

TypeNameDescription
PositivePinp1Positive pin of the left port (potential p1.v > n1.v for positive voltage drop v1)
NegativePinn1Negative pin of the left port
PositivePinp2Positive pin of the right port (potential p2.v > n2.v for positive voltage drop v2)
NegativePinn2Negative pin of the right port
input RealInputd 
replaceable model SwitchModel 

Modelica definition

model HBridge "Basic ideal H-bridge topology (averaged)" extends Interfaces.TwoPort; extends PVSystems.Icons.ConverterIcon; Modelica.Blocks.Interfaces.RealInput d; replaceable model SwitchModel = CCM1 constrainedby Interfaces.SwitchNetworkInterface; SwitchModel s1; SwitchModel s2; equation connect(s1.p1, p1); connect(s1.n1, p2); connect(s2.n1, n1); connect(s2.p1, n2); connect(s1.n2, n1); connect(d, s2.d); connect(d, s1.d); connect(s2.p2, p1); connect(s1.p2, p2); connect(s2.n2, n2); end HBridge;

PVSystems.Electrical.Assemblies.HBridgeSwitched PVSystems.Electrical.Assemblies.HBridgeSwitched

Basic ideal H-bridge topology (switched)

PVSystems.Electrical.Assemblies.HBridgeSwitched

Information

This model further composes IdealTwoLevelBranch to form a typical H-bridge configuration from which a 1-phase inverter can be constructed. This model is based on discrete switch models.

Extends from Interfaces.TwoPort (Common interface for power converters with two ports), PVSystems.Icons.ConverterIcon (Icon for power converter models).

Connectors

TypeNameDescription
PositivePinp1Positive pin of the left port (potential p1.v > n1.v for positive voltage drop v1)
NegativePinn1Negative pin of the left port
PositivePinp2Positive pin of the right port (potential p2.v > n2.v for positive voltage drop v2)
NegativePinn2Negative pin of the right port
input BooleanInputc1 
input BooleanInputc2 

Modelica definition

model HBridgeSwitched "Basic ideal H-bridge topology (switched)" extends Interfaces.TwoPort; extends PVSystems.Icons.ConverterIcon; Modelica.Blocks.Interfaces.BooleanInput c1; Modelica.Blocks.Interfaces.BooleanInput c2; IdealCBSwitch idealCBSwitch; IdealCBSwitch idealCBSwitch1; IdealCBSwitch idealCBSwitch2; IdealCBSwitch idealCBSwitch3; equation connect(c1, idealCBSwitch.c); connect(c1, idealCBSwitch3.c); connect(c2, idealCBSwitch2.c); connect(c2, idealCBSwitch1.c); connect(p1, idealCBSwitch2.p); connect(idealCBSwitch.p, idealCBSwitch2.p); connect(idealCBSwitch1.p, idealCBSwitch.n); connect(idealCBSwitch2.n, idealCBSwitch3.p); connect(n1, idealCBSwitch1.n); connect(idealCBSwitch3.n, idealCBSwitch1.n); connect(n2, idealCBSwitch3.p); connect(p2, idealCBSwitch.n); end HBridgeSwitched;

PVSystems.Electrical.Assemblies.BidirectionalBuckBoost PVSystems.Electrical.Assemblies.BidirectionalBuckBoost

Bidirectional Buck Boost converter

PVSystems.Electrical.Assemblies.BidirectionalBuckBoost

Information

Bidirectional buck boost converter

Extends from Interfaces.TwoPort (Common interface for power converters with two ports), PVSystems.Icons.ConverterIcon (Icon for power converter models).

Parameters

TypeNameDefaultDescription
replaceable model SwitchModelCCM1 
Power stage
CapacitanceCin Input capacitance [F]
ResistanceRcin Series resistance of input capacitor [Ohm]
CapacitanceCout Output capacitance [F]
ResistanceRcout Series resistance of output capacitor [Ohm]
InductanceL Inductance [H]
ResistanceRL Series resistance of inductor [Ohm]
Initialization
VoltagevCin_ini0Guess for initial voltage of Cin [V]
VoltagevCout_ini0Guess for initial voltage of Cout [V]
CurrentiL_ini0Guess for initial current of L [A]
Switches
Realdmax1Maximum duty cycle [1]
Realdmin1e-3Minimum duty cycle [1]

Connectors

TypeNameDescription
PositivePinp1Positive pin of the left port (potential p1.v > n1.v for positive voltage drop v1)
NegativePinn1Negative pin of the left port
PositivePinp2Positive pin of the right port (potential p2.v > n2.v for positive voltage drop v2)
NegativePinn2Negative pin of the right port
replaceable model SwitchModel 
input RealInputdbuckBuck control voltage
input RealInputdboostBoost control voltage

Modelica definition

model BidirectionalBuckBoost "Bidirectional Buck Boost converter" extends Interfaces.TwoPort; extends PVSystems.Icons.ConverterIcon; parameter Modelica.SIunits.Capacitance Cin "Input capacitance"; parameter Modelica.SIunits.Resistance Rcin "Series resistance of input capacitor"; parameter Modelica.SIunits.Capacitance Cout "Output capacitance"; parameter Modelica.SIunits.Resistance Rcout "Series resistance of output capacitor"; parameter Modelica.SIunits.Inductance L "Inductance"; parameter Modelica.SIunits.Resistance RL "Series resistance of inductor"; parameter Modelica.SIunits.Voltage vCin_ini=0 "Guess for initial voltage of Cin"; parameter Modelica.SIunits.Voltage vCout_ini=0 "Guess for initial voltage of Cout"; parameter Modelica.SIunits.Current iL_ini=0 "Guess for initial current of L"; parameter Real dmax(final unit="1") = 1 "Maximum duty cycle"; parameter Real dmin(final unit="1") = 1e-3 "Minimum duty cycle"; Modelica.Electrical.Analog.Basic.Capacitor outCap(C=Cout, v(start=vCout_ini)); Modelica.Electrical.Analog.Basic.Capacitor inCap(C=Cin, v(start=vCin_ini)); Modelica.Electrical.Analog.Basic.Inductor inductor(L=L, i(start=iL_ini)); replaceable model SwitchModel = CCM1 constrainedby Interfaces.SwitchNetworkInterface; SwitchModel buckSw(dmin=dmin, dmax=dmax); SwitchModel boostSw(dmin=dmin, dmax=dmax); Modelica.Blocks.Interfaces.RealInput dbuck "Buck control voltage"; Modelica.Blocks.Interfaces.RealInput dboost "Boost control voltage"; Modelica.Electrical.Analog.Basic.Resistor resistor(R=RL); Modelica.Electrical.Analog.Basic.Resistor inESR(R=Rcin); Modelica.Electrical.Analog.Basic.Resistor outESR(R=Rcout); equation connect(buckSw.n1, inductor.p); connect(buckSw.p2, inductor.p); connect(boostSw.n1, buckSw.n2); connect(boostSw.n2, boostSw.p1); connect(p1, buckSw.p1); connect(outCap.p, boostSw.p2); connect(inCap.p, buckSw.p1); connect(resistor.n, boostSw.p1); connect(inductor.n, resistor.p); connect(p2, boostSw.p2); connect(inCap.n, inESR.p); connect(outCap.n, outESR.p); connect(outESR.n, n2); connect(inESR.n, n1); connect(inESR.n, buckSw.n2); connect(outESR.n, buckSw.n2); connect(dbuck, buckSw.d); connect(dboost, boostSw.d); end BidirectionalBuckBoost;

PVSystems.Electrical.Assemblies.CPMBidirectionalBuckBoost PVSystems.Electrical.Assemblies.CPMBidirectionalBuckBoost

Bidirectional Buck Boost for battery USB interface

PVSystems.Electrical.Assemblies.CPMBidirectionalBuckBoost

Information

Bidirectional buck boost converter

Extends from Interfaces.TwoPort (Common interface for power converters with two ports), PVSystems.Icons.ConverterIcon (Icon for power converter models).

Parameters

TypeNameDefaultDescription
Power stage
CapacitanceCin Input capacitance [F]
CapacitanceCout Output capacitance [F]
InductanceL Inductance [H]
ResistanceRL Series resistance of inductor [Ohm]
Initialization
VoltagevCin_ini0Guess for initial voltage of Cin [V]
VoltagevCout_ini0Guess for initial voltage of Cout [V]
CurrentiL_ini0Guess for initial current of L [A]
CPM modulator
ResistanceRf Equivalent sensing resistance [Ohm]
Frequencyfs Switching frequency [Hz]
VoltageVa_buck Articial ramp amplitude for buck CPM [V]
VoltageVa_boost Articial ramp amplitude for boost CPM [V]

Connectors

TypeNameDescription
PositivePinp1Positive pin of the left port (potential p1.v > n1.v for positive voltage drop v1)
NegativePinn1Negative pin of the left port
PositivePinp2Positive pin of the right port (potential p2.v > n2.v for positive voltage drop v2)
NegativePinn2Negative pin of the right port
input RealInputvcBuck control voltage
input BooleanInputmodeBoost control voltage

Modelica definition

model CPMBidirectionalBuckBoost "Bidirectional Buck Boost for battery USB interface" extends Interfaces.TwoPort; extends PVSystems.Icons.ConverterIcon; parameter Modelica.SIunits.Capacitance Cin "Input capacitance"; parameter Modelica.SIunits.Voltage vCin_ini=0 "Guess for initial voltage of Cin"; parameter Modelica.SIunits.Capacitance Cout "Output capacitance"; parameter Modelica.SIunits.Voltage vCout_ini=0 "Guess for initial voltage of Cout"; parameter Modelica.SIunits.Inductance L "Inductance"; parameter Modelica.SIunits.Current iL_ini=0 "Guess for initial current of L"; parameter Modelica.SIunits.Resistance RL "Series resistance of inductor"; parameter Modelica.SIunits.Resistance Rf "Equivalent sensing resistance"; parameter Modelica.SIunits.Frequency fs "Switching frequency"; parameter Modelica.SIunits.Voltage Va_buck "Articial ramp amplitude for buck CPM"; parameter Modelica.SIunits.Voltage Va_boost "Articial ramp amplitude for boost CPM"; Control.CPM_CCM buck_cpm( L=L, Rf=1, fs=fs, Va=Va_buck, d_disabled=1); Control.CPM_CCM boost_cpm( L=L, Rf=1, fs=fs, Va=Va_boost, d_disabled=0); Modelica.Blocks.Sources.RealExpression vsense(y=Rf*conv.inductor.i); Modelica.Blocks.Sources.RealExpression vm1_buck(y=v1 - v2); Modelica.Blocks.Sources.RealExpression vm2_buck(y=-v2); Modelica.Blocks.Sources.RealExpression vm1_boost(y=v1); Modelica.Blocks.Interfaces.RealInput vc "Buck control voltage"; Modelica.Blocks.Interfaces.BooleanInput mode "Boost control voltage"; BidirectionalBuckBoost conv( Cin=Cin, Cout=Cout, L=L, RL=RL, vCin_ini=vCin_ini, vCout_ini=vCout_ini, iL_ini=iL_ini, Rcin=1e-3, Rcout=1e-3, dmax=1, dmin=1e-3); Modelica.Blocks.Logical.Not not1; Modelica.Blocks.MathBoolean.OnDelay onDelay(delayTime=3/fs); Modelica.Blocks.MathBoolean.OnDelay onDelay1(delayTime=3/fs); equation connect(conv.p1, p1); connect(conv.p2, p2); connect(conv.n2, n2); connect(conv.n1, n1); connect(vm2_buck.y, buck_cpm.vm2); connect(vsense.y, boost_cpm.vs); connect(vm1_buck.y, boost_cpm.vm2); connect(vm1_boost.y, boost_cpm.vm1); connect(vm1_buck.y, buck_cpm.vm1); connect(vsense.y, buck_cpm.vs); connect(vc, buck_cpm.vc); connect(vc, boost_cpm.vc); connect(mode, not1.u); connect(boost_cpm.d, conv.dboost); connect(buck_cpm.d, conv.dbuck); connect(mode, onDelay.u); connect(onDelay.y, boost_cpm.enable); connect(not1.y, onDelay1.u); connect(onDelay1.y, buck_cpm.enable); end CPMBidirectionalBuckBoost;

PVSystems.Electrical.Assemblies.HBridge.SwitchModel PVSystems.Electrical.Assemblies.HBridge.SwitchModel


PVSystems.Electrical.Assemblies.HBridge.SwitchModel

Parameters

TypeNameDefaultDescription
Realdmin1e-3Minimum duty cycle [1]
Realdmax1Maximum duty cycle [1]

Connectors

TypeNameDescription
PositivePinp1Positive pin of the left port (potential p1.v > n1.v for positive voltage drop v1)
NegativePinn1Negative pin of the left port
PositivePinp2Positive pin of the right port (potential p2.v > n2.v for positive voltage drop v2)
NegativePinn2Negative pin of the right port
input RealInputdDuty cycle

Modelica definition

replaceable model SwitchModel = CCM1 constrainedby Interfaces.SwitchNetworkInterface;

PVSystems.Electrical.Assemblies.BidirectionalBuckBoost.SwitchModel PVSystems.Electrical.Assemblies.BidirectionalBuckBoost.SwitchModel


PVSystems.Electrical.Assemblies.BidirectionalBuckBoost.SwitchModel

Parameters

TypeNameDefaultDescription
Realdmin1e-3Minimum duty cycle [1]
Realdmax1Maximum duty cycle [1]

Connectors

TypeNameDescription
PositivePinp1Positive pin of the left port (potential p1.v > n1.v for positive voltage drop v1)
NegativePinn1Negative pin of the left port
PositivePinp2Positive pin of the right port (potential p2.v > n2.v for positive voltage drop v2)
NegativePinn2Negative pin of the right port
input RealInputdDuty cycle

Modelica definition

replaceable model SwitchModel = CCM1 constrainedby Interfaces.SwitchNetworkInterface;

Automatically generated Mon Sep 11 16:11:47 2017.