plecs for solar applications

11
electrical engineering software PLECS for Solar Energy Applications

Upload: others

Post on 08-Jun-2022

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PLECS for Solar Applications

electrical engineering software

PLECS for Solar Energy Applications

Page 2: PLECS for Solar Applications

Outline

Introduction to PLECS

Conventional Standalone PV System Overview

Photovoltaic Panel Modeling

Single Phase Inverter with Partial Shading Maximum power-point tracking

DC/DC controls

DC/AC controls

SVPWM Control of a Grid-Connected Three-Level NPC Inverter Hardware-in-the-Loop

Embedded Code Generation

2

Page 3: PLECS for Solar Applications

PLECS - Multi Domain System Level Simulation

3

Page 4: PLECS for Solar Applications

Conventional Standalone Photovoltaic Conversion System

4

Controller

DC/DCControl DC/ACControl

PVMeas.

DC/DCMeas. DC/ACMeas.

GridMeas.

Filter

DC/DC DC/AC TransformerGrid-sideFilter

GridBulkCapacitance

PVPanels

Page 5: PLECS for Solar Applications

Photovoltaic Panel Modeling

Production is a function of insolation, voltage, and temperature.

Equation and lookup-table based approaches common

5

M. G. Villalva, J. R. Gazoli and E. R. Filho, "Comprehensive Approach to Modeling and Simulation of Photovoltaic Arrays," in IEEE Transactions on Power Electronics, vol. 24, no. 5, pp. 1198-1208, May 2009, doi: 10.1109/TPEL.2009.2013862. D. J. Schnberger, "Modeling of a photovoltaic string using PLECS", 2009, [online]

I = Ipv(G) + I0 exp ( V + RsIVta ) − 1 −

V + RsIRp

Ipv Rp

Rs +

-

AIdV

Page 6: PLECS for Solar Applications

Photovoltaic Panel Modeling

Production is a function of insolation, voltage, and temperature.

Equation and lookup-table based approaches common

6

M. G. Villalva, J. R. Gazoli and E. R. Filho, "Comprehensive Approach to Modeling and Simulation of Photovoltaic Arrays," in IEEE Transactions on Power Electronics, vol. 24, no. 5, pp. 1198-1208, May 2009, doi: 10.1109/TPEL.2009.2013862.

Ipv Rp

Rs +

-

AIdV

0.221 Ω

415 Ω

8.214 A

9.8e-8 A

1.3867 V

1.3

I = Ipv(G) + I0 exp ( V + RsIVta ) − 1 −

V + RsIRp

Rs

Rp

Ipv

I0

Vt = NskT/q

a

Page 7: PLECS for Solar Applications

Single-Phase PV Inverter with Partial Shading

7

C_busV

A

V

25

Temperature A

Sun

V

DC/DCController

iv

siL

DC/ACController

Swa+Swa-

Swb+v_bus

Swb- i_gridv_grid

v_bus*

Sys

Enab

le

V_bus_desired

V_bus

V_bus

A

i_L

i_L

SysEnable

SysEnable

SysEnable

i_grid

v_grid

TG

TG

TG

Page 8: PLECS for Solar Applications

Hardware-in-the-Loop and Embedded Code Generation Demo

8

En

DigitalIn

Power

enPowerstageProtection

rst

Measurementstransformation

Ig_dqVg_dq

Vg

Ig

ω

Icap

Icap_dqsincos_phi 3-levelSVPWM

Vdc

Vαβ* sw3L

Vmid

Id_ref

Id*

0

Iq*

d-axiscontroller

Vinv_d*

ω

Ig_dqId*

Vg_dq

q-axiscontroller

Vinv_q*ω

Ig_dq

Iq*

Vg_dq

+−

PWM

ADC

PWMADC1

Task

ADC

ADC2

Task

ADC

Scope

ADC3

Task

ADC

ControlTaskTrigger

z-1

NOT LEDBlinking

DigitalOut

Demux_ADC

dqαβ

K

Virtualdampingresistor

PLECS RT Box

TI 28379D LaunchpadBreakout

Scope

Vdc Ig

V Vdc

V Vmid

Vmid Vg

Vg

Ig

Qu1

Qu2

Qu3

Qu4

Qv1

Qv2

Qv3

Qv4

Qw1

Qw2

Qw3

Qw4

Qu1Qu2

Qu3Qu4

Qv1Qv2

Qv3Qv4

Qw1Qw2

Qw3Qw4

Ig

AnalogOut

Vdc

AnalogOut

Vmid

AnalogOut

Vg

AnalogOut

abcαβ

XYPlot Vmid

z-1

NOT LEDBlinking

DigitalOut

0Vdc

0Vmid

EnableswonMCU

DigitalOut

Enableswitching

DigitalIn

PowerstageEnabled

DigitalOut

Qu

PWMCapture

Qv

PWMCapture

Qw

PWMCapture

PV1

SunV_3ph

0

Powertothegrid

Probe -1

Icap

Icap

Icap

AnalogOut

ModelSettings

Power

DigitalIn NOT

LCLFilter

PLECS RT Box

TI 28379D LaunchPad

Plant

Controller

Page 9: PLECS for Solar Applications

Hardware-in-the-Loop and Embedded Code Generation Demo

9

PLECS RT Box

TI 28379D LaunchpadBreakout

PLECS RT Box

TI 28379D LaunchPad

Plant

Controller

V Vgrid

Grid

V

Probe

PVV,I,P

Probe

Vac

Probe

Iac

PVstring

**

PvsV

PVC:1.5e-3v_init:388

L:2e-3

C:4.7e-6

L:3e-3

R:10

R:0.02 R:0.03

A25

Temp[0 50]ºC

Probe

PVV,I

ACOut

AnalogOut

DCOut

AnalogOut

Irradiance

s1s2

s3s4

PWM

PWMCapture

EnableswonMCU

DigitalOut

Enableslideswchannel:29

DigitalIn

Power

DigitalIn

Powerstageenabled(LED)

channel:29

DigitalOut z-1

NOT LEDBlinkingchannel:31

DigitalOut

NOT

s1

s2

s3

s4

A

Currentcontroller

err out

rst

+−−+

Voltagecontroller

I*err

rst

MPPcontroller

v*v,i

rst

PWM

ADC

PWM

ADC

Task

ADC

Unipolarduty

dV* Vdc

z-1

NOT LEDBlinking

DigitalOut

rst

En

DigitalIn

Power

enPowerstageProtection

rstrst

Probe

Scope

rst

MPPControlTask VoltageControlTask

LEDTask

Currentreference

Igrid*VgridI*

Vdc

VgridIgrid

Idc

Page 10: PLECS for Solar Applications

Hardware In the Loop (HIL) - Detailed Structure

10

Converter Model (RT Box)

Ctrl Hardware (MCU)

ADC Ctrl algorithm PWM

Data bus Data busReal time

Analog Output

PWM Input

PWM Capture

CPU calculate model

DACPLECS RT Box

TI 28379D LaunchpadBreakout

Page 11: PLECS for Solar Applications

electrical engineering software

Plexim GmbH

Technoparkstrasse 1 CH-8005 Zurich

Phone +41 44 533 51 00 Email [email protected] Web www.plexim.com

Plexim, Inc.

5 Upland Road, Suite 4 Cambridge, MA 02140

Phone +1 617 209 2121 Email [email protected] Web www.plexim.com