60
Seminar: Modelling Renewables Resources and Storage in PowerFactory V15.2 Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 1/119 All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2015. http:www.fglongatt.org Seminar: Modelling Renewables Resources and Storage in PowerFactory V15.2 @fglongatt @fglongatt Seminar: Modelling Renewables Resources and Storage in PowerFactory V15.2 Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 2/119 All rights reserved. No part of this publication may be reproduced or distributed in any form without permission of the author. Copyright © 2015. http:www.fglongatt.org Copyright Notice Copyright Notice The documents are created by Francisco M. Gonzalez-Longatt and contain copyrighted material, trademarks, and other proprietary information. All rights reserved. No part of the documents may be reproduced or copied in any form or by any means - such as graphic, electronic, or mechanical, including photocopying, taping, or information storage and retrieval systems without the prior written permission of Francisco M. Gonzalez-Longatt . The use of these documents by you, or anyone else authorized by you, is prohibited unless specifically permitted by Francisco M. Gonzalez-Longatt. You may not alter or remove any trademark, copyright or other notice from the documents. The documents are provided “as is” and Francisco M. Gonzalez-Longatt shall not have any responsibility or liability whatsoever for the results of use of the documents by you. @fglongatt @fglongatt fglongatt.org

Modelling Renewables Resources and Storage in PowerFactory V15.2, Universidad Carlos III Madrid

Embed Size (px)

Citation preview

Page 1: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 1/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Seminar:

Modelling Renewables Resources and Storage in

PowerFactory V15.2

@fglongatt@fglongatt

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 2/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Copyright Notice

Copyright NoticeThe documents are created by Francisco M. Gonzalez-Longatt and contain copyrighted material, trademarks, and other proprietary information. All rights reserved. No part of the documents may be reproduced orcopied in any form or by any means - such as graphic, electronic, or mechanical, including photocopying, taping, or information storage and retrieval systems without the prior written permission of Francisco M.Gonzalez-Longatt . The use of these documents by you, or anyone else authorized by you, is prohibited unless specifically permitted by Francisco M. Gonzalez-Longatt. You may not alter or remove anytrademark, copyright or other notice from the documents. The documents are provided “as is” and Francisco M. Gonzalez-Longatt shall not have any responsibility or liability whatsoever for the results of use of thedocuments by you.

@fglongatt@fglongatt

fglongatt.org

Page 2: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 3/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Agenda

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 4/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Agenda• Basic PowerFactory Concepts

• Overview of System Analysis Functions

• Dynamic Modelling with PowerFactory

• Types of Wind Turbines Technologies

• WTG Models for Load Flow and Short CircuitCalculation

• Global “Templates” library

• WTG Models for Dynamic Simulation

• Fully Rated WTG Template

• PV and Battery Energy Storing System (BESS)

• The Book…

Page 3: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 5/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Basic PowerFactoryConcepts

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 6/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

I. Basic PowerFactory Concepts• The calculation program PowerFactory, as written by

DIgSILENT.

• It is a computer aided engineering tool for the analysisof industrial, utility, and commercial electrical powersystems.

• It has been designed as an advanced integrated andinteractive software package dedicated to electricalpower system and control analysis in order to achievethe main objectives of planning and operationoptimization.

http://www.digsilent.de/

Dr. Martin Schmieg

Page 4: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 7/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

I. Basic PowerFactory Concepts• The name DIgSILENT stands for "DIgital SImuLation

and Electrical NeTwork calculation program''.

• DIgSILENT Version 7 was the world's first powersystem analysis software with an integratedgraphical one-line interface.

• That interactive one-line diagram included drawingfunctions, editing capabilities and all relevant static anddynamic calculation features.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 8/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

I. Basic PowerFactory Concepts• DIgSILENT power system calculation package was

designed as an integrated engineering tool.

• It provides a complete 'walk-around' techniquethrough all available functions, rather than acollection of different software modules.

• PowerFactory Version 14, DIgSILENT represents afurther step towards seamless integration offunctionality and data management within amulti-user environment.

Page 5: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 9/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

I. Basic PowerFactory Concepts• There are three basic integration characteristics

that contribute to make PowerFactory a uniquepower system analysis tool:

a) Functional integration

c) Vertical integration

b) Database integration

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 10/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

I.A. Functional Integration• DIgSILENT PowerFactory software is implemented

as a single executable program, and is fullycompatible with Windows 95/98/NT/2000/XP/Vista.

Page 6: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 11/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

I. B. Vertical Integration• Vertically integrated power equipment model

concept allowing models to be shared by allanalysis functions

DATA

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 12/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

II.C. Database Integration• DIgSILENT PowerFactory provides optimal

organization of data and definitions required toperform any type of calculation, memorization ofsettings or software operation options.

Page 7: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 13/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

II.C. Database Integration• The PowerFactory database environment fully

integrates all data required for defining cases,operation scenarios, single-line graphics, outputs,run conditions, calculation options, graphics, user-defined models, etc.

Project ManagerVisioning andPublishing

Master and DeviceCompare and Merge

Single Database Concepts: all data for standard and advanced functions are organized in a single, integrated database. 

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 14/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

II.C. Database Integration• Project Management: All the data that defines a power

system model and allows its calculation is stored in socalled 'Project' folders within the database.

• Inside a 'Project', folders called 'Study Cases' are usedto define different studies of the system considering thecomplete network, only parts of it or variations on itscurrent state.

Page 8: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 15/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

II.C. Database Integration• This 'project and study case' approach to define and

manage power system studies is a unique application ofthe object-oriented software principle.

• Standard software packages often require the user tocreate a large number of similar saved cases, withmultiple nested directories for large complex networksand studies.

• This approach of the structure is both easy to use whileavoiding redundancy.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 16/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Overview of System Analysis Functions

This Section Presents a General Overview of the Supported PowerFactory Functions

Page 9: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 17/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

I. General Overview

OHL parameter calculation

Cable parameter calculation

Asynchronous Machine parameter estimation

Reliability analysis Optimal Power 

flow Economic Dispatch

Power Flow

AC/DCPowerflow

Balanced/un‐balanced

Active power and reactive power 

controls

Fault Analysis

IEC 60909IEC 61363ANSI C37.4

G74Complete methodGeneral 

faults/Multiple faults

State Estimation

Protection Functions Protection Simulation

Network reduction

Contingency Analysis

Voltage Stability Analysis

Power Flow Sensitivities

Distribution Network Analysis

Harmonic Analysis Ripple Control

Distribution Network Optimization

Flexible DSL – ModellingDIgSILENT Simulation Language

RMS Simulation with abc Phase Representation

Long‐Term Stability

Transient Motor Starting

Real‐Time Simulation

Electromagnetic transient (EMT)

System Parameter identification

Radial and Meshed 1‐4 Phase AC grids and DC Grids

Transmission and Distribution Industry Wind Power PV System Railway Smart Grid

App

licat

ions

Grid

Pow

er S

yste

m A

naly

sis

Fun

ctio

ns

Source: DigSILENT PowerFactory

http://www.digsilent.de/images/Software/DIgSILENT_PowerFactory/overview150.png

@fglongatt@fglongatt

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 18/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

• PowerFactory offers a wide variety of calculationcommands, of which the:– Load Flow Analysis– Short-Circuit Analysis– Harmonics Analysis– Stability and EMT Simulations– Modal Analysis / Eigenvalue Calculation– Model Parameter Identification– Contingency Analysis– Reliability Assessment– Optimal Power Flow– Optimization Tools for Distribution Networks– Protection– Network Reduction– State Estimation

Calculation Commands in PowerFactory

Page 10: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 19/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Different Types of Simulations• DigSILENT PowerFactory, NetomacTM and

SimpowTM, offer both dynamic and instantaneousvalue modes of simulation.

@fglongatt@fglongatt

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 20/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Dynamic Modelling with PowerFactory

Page 11: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 21/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Dynamic Modeling with PowerFactory• Stability analysis calculations are typically based on

predefined system models.

• When no IEEE models exist a powerful tools foruser defined modelling are required.

• For systems and configurations for which no IEEEmodels exist, Dynamic Simulation Language(DSL) could be used

• High specialised and exact models can be created inPowerFactory.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 22/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

DSL Models• The Dynamic Simulation Language (DSL) is a powerful

feature of DIgSILENT.

• DSL itself can be looked upon as an add-on to thetransient analysis functionality of PowerFactory.

• During the simulation, the model equations of the DSLmodels are combined with those describing thedynamic behaviour of the power systemcomponents.

• DSL and System equations are then evaluated together,leading to an integrated transient simulation of thecombination of the power system and its controllers.

Page 12: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 23/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

3. Types of Dyanmic Models• Two types of models in DIgSILENT are presented :

1. Built-in models, which are standard electrical componentmodels, already existing in the DIgSILENT library.

2. DSL models, which are created by the user in thedynamic simulation language DSL.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 24/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

DSL Introduction• The "DIgSILENT Simulation Language" is used to

define new dynamic controllers which receiveinput signals from the simulated power system andwhich react by changing some other signals.

Page 13: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 25/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

DSL Introduction• PowerFactory modelling philosophy is targeted

towards a strictly hierarchical system modellingapproach.

@fglongatt@fglongatt

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 26/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

DSL Introduction• This approach combines both graphical and script-

based modelling methods.

GraphicalBlock Diagrams

Script BasedProgramming

@fglongatt@fglongatt

Page 14: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 27/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Modelling Approach: DSL

@fglongatt@fglongatt

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 28/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Types of Wind Turbines Technologies

Page 15: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 29/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Types of Wind Power• Wind Generation Modeling Group (WGMG) of the

Western Electricity Coordinating Council (WECC)

• Working Group on Dynamic Performance of WindPower Generation of IEEE Power SystemDynamic Performance Committee

• They have developed and provided specification ofgeneric wind turbine generator (WTG) models.

• PowerFactory uses IEC 61400-27-1 and WECC

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 30/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

IEC 61400-27-1• This modular structure has many similarities with the

first generation of WECC generic WTG model, butalso some major differences:

– The IEC structure separates the wind turbinemodel from the wind plant model

– All the IEC models refer to a common modularstructure which applies for all wind turbine typemodels.

– The common structure explicitly separates theaerodynamic, mechanical, generator-system,electrical and control modules and adds a gridprotection module.

Page 16: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 31/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Generic Structure of Wind Turbine Models• The horizontal sequence of blocks in the middle

reflects the physical power flow, while protection andcontrol is shown above and below respectively.Depending on the type of wind turbine, some of themodules can be omitted.

@fglongatt@fglongatt

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 32/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Types of WTGs• Despite the seemingly large variety of utility-scale

WTGs in the market, each can be classified in oneof four basic types:

Type-1 – Fixed-speed, induction generator

Type-2 – Variable slip, induction generators with variable rotor resistance

Type-3 – Variable speed, doubly-fed asynchronous generators with rotor-side converter

Type-4 – Variable speed generators with full converter interface

Page 17: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 33/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Types of WTGsFour basic types, based on

the WTG technology:

Type 1 – Fixed-speed, conventional induction generators

Variable Slip WTGType 2 – Induction generators with

variable rotor resistance

Variable Speed WTGsType 3 – Doubly-fed asynchronous generators with rotor-side converterType 4 – Asynchronous generators

with full converter interface

mecP

genP

genP

gensP

gensP

mecPgenPmecP

genP

mecP

Type 1 Type 2

Type 3 Type 4

@fglongatt@fglongatt

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 34/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Types of WTGs in PowerFactory

IEC 61400-27-1 WECC generic WTG model

Page 18: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 35/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-1 – Fixed-Speed, Induction Generator • The oldest technologies used in wind turbine

generators.

mecP

genP

This type of turbine is very rugged and very simple in its construction. The induction generator used in most of the turbines is usually type A or type B, operating in a low slip range between 0 ‐ 1%.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 36/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-1 – Fixed-Speed, Induction Generator

Source: ABB, “Technical Application Papers No.13 Wind power plants”

Page 19: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 37/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-1 – Fixed-Speed, Induction Generator

genP

genQ

mecP

genP

Source: A. Ellis et al.“Description and TechnicalSpecifications for Generic WTGModels – A Status Report”2011 IEEE/PES PowerSystems Conference andExposition (PSCE).

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 38/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-2–V.S. IG With Variable Rotor Resistance • Wind turbine type 2 is a wound rotor induction

generator with adjustable external resistors.

‐The adjustable external resistor is implemented by a combination of external (three phase) resistors connected in parallel with power electronics circuit (diode‐bridge and DC chopper).

genP

mecP

Page 20: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 39/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-2–V.S. IG with Variable Rotor Resistance

genP

genQ

genP

mecP

Source: A. Ellis et al. “Descriptionand Technical Specifications forGeneric WTG Models – A StatusReport” 2011 IEEE/PES PowerSystems Conference andExposition (PSCE).

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 40/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-3 – VS, DFIG with Rotor-Side Converter • This is a variable speed wind turbine generator

employing a wound rotor induction generator.

Source: www.nordex-online.com

genP

gensP

gensP

mecP

It is usually design to operate at + 30%slip.A variable frequency power converter isconnected to the rotor winding.The power converter is ac‐dc‐ac system.The power converter is usually the current‐regulated pulse‐width modulation (CRPWM) type.

Page 21: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 41/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-3 – VS, DFIG with Rotor-Side Converter

Source: ABB, “Technical Application Papers No.13 Wind power plants”

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 42/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-3 – VS, DFIG with Rotor-Side Converter

genP

genQ

genP

gensP

gensP

mecP

Source: A. Ellis et al. “Description andTechnical Specifications for Generic WTGModels – A Status Report” 2011 IEEE/PESPower Systems Conference and Exposition(PSCE).

Page 22: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 43/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type- 4. –V.S. Gen with Full Converter Interface • Wind turbine type 4 is a variable speed wind

turbine generator.

• The output of the generator is passed through thepower converter to the grid.

Source: www.multibrid.de

genPmecP

Full ConverterInterface

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 44/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-4. – V.S. Gen With Full Converter Interface

Source: ABB, “Technical Application Papers No.13 Wind power plants”

Page 23: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 45/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-4. – V.S. Gen with Full Converter Interface

genP

genQ

genPmecP

Source: A. Ellis et al. “Description and Technical Specifications for Generic WTG Models – A Status Report” 2011 IEEE/PES Power Systems Conference and Exposition (PSCE).

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 46/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-4.a.–V.S. Gen with Full Converter Interface

genPmecP

On the market, this system have been used in Spanish manufacturer Made, GEmulti-megawatt series.The 2.5 MW Clipper Liberty turbine type, which features four 660 kW PMSGs, hasalso used this concept.

Zephyros (currently Harakosan) and Mitsubishi are using this concept in 2 MW wind turbines on the market

Page 24: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 47/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-4.b.–V.S. Gen With Full Converter Interface

genPmecP

Siemens is using this concept in the model of SWT-3.6-107on the market

Siemens WindTurbine SWT-3.6-107

Sou

rce:

ww

w.s

iem

ens.

com

/win

d

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 48/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Type-4.c. – V.S. Gen With Full Converter Interface

genPmecP

Direct-drive EESG typically has a large rotor diameter (nearly 12 m for the Enercon E-112 direct drive 4.5 MW turbine).

Enercon E-112, 4.5 NW

Source: http://www.enercon.de/de-de/

Page 25: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 49/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

WIND TURBINE GENERATOR (WTG)Models for Load Flow and Short Circuit Calculation

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 50/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Fixed Speed Induction GeneratorRepresentation in PowerFactory:• Asynchronous Machine (*.ElmAsm) and Step Up

Transformer

• Needs a Type (*.TypAsmo).

Page 26: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 51/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

IG + with Variable Rotor Resistance

genP

mecP

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 52/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

IG + with Variable Rotor ResistanceRepresentation in PowerFactory:

• Asynchronous Machine (*.ElmAsm).

• Needs a Type (*.TypAsmo)

Page 27: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 53/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Doubly-Fed Induction Generator I

genP

gensP

gensP

mecP

Converter is

Neglected

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 54/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Doubly-Fed Induction Generator I• Simple Representation in PowerFactory:

• Asynchronous Machine Configured as DFIG(*.ElmAsm).

• Needs a Type (*.TypAsmo).Converter

is Neglected

Page 28: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 55/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Doubly-Fed Induction Generator IIConverter is Included

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 56/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Doubly-Fed Induction Generator IIDetailed Representation in PowerFactory

• DFIG (*.ElmAsmsc).

• Needs a Type (*.TypAsmo).

Converter is Included

Page 29: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 57/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Doubly-Fed Induction Generator IIIConverter is Included

FULL Model

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 58/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Doubly-Fed Induction Generator III• Detailed Representation in PowerFactory:

• DFIG (*.ElmAsmsc).

• Needs a Type (*.TypAsmo).

Converter is Included

FULL Model

Page 30: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 59/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Generator with Fully Rated ConverterSe

min

ar: M

odel

ling

Ren

ewab

les

Res

ourc

es a

nd S

tora

ge in

Pow

erFa

ctor

yV1

5.2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 60/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Generator with Fully Rated ConverterRepresentation in PowerFactory:

• Static Generator (*.ElmGenstat).

• Needs no Type

Page 31: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 61/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Fully Rated Converter/Direct Drive

No Gearbox

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 62/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Fully Rated Converter/Direct DriveRepresentation in PowerFactory:

• Static Generator (*.ElmGenstat).

• Needs no Type

Page 32: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 63/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Generator with Fully Rated more detailed• Representation in PowerFactory:

Grid Side Converter

(PWM) + DC Circuit

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 64/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Global “Templates” library

Page 33: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 65/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

global “Templates” library• Version 14.1 made available a new global

“Templates” library (\Library\Templates\) that contains“ready for use” models.

• This global templates library contains the following“ready for use” models:– Double Fed Induction Wind Turbine Generator,

– Fully Rated Converter Wind Turbine Generator,

– Photovoltaic Systems and

– Battery Energy Storing System.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 66/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg WIND TURBINE GENERATOR

(WTG)Models for Dynamic Simulation

Page 34: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 67/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Dynamic Models• Dynamic of electrical components

• Control

• Protection

• Dynamic of mechanical parts

• Feedback (measurement)

All connected in a composite model:

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 68/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Dynamic of Electrical Components• Generator, Shunt, Transformer, Inverter..

• Defined with grid elements:

• And type data:

Page 35: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 69/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Dynamic of Electrical Components

Type Element

*.ElmAsm*.TypAsm

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 70/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Control / Protection / Mechanical Parts• Controllers, protections and mechanical dynamics

are defined in DSL.

• Graphic: Or code:

Page 36: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 71/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Control / Protection / Mechanical Parts• The entity of a DSL model is a common model:

• Parameters: Characteristic:

Parameters Characteristics

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 72/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Feedback (Measurement)Available measurement devices:

• Voltage (*.StaVmea)

• Current (*.StaImea)

• Power (*.StaPqmea)

• Phase (*.ElmPhi_pll)

Page 37: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 73/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Frame / Composite ModelFrame definition:

• WTG with fully rated converter: Frame

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 74/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Frame / Composite Model• Entity of a frame is a composite model:

Page 38: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 75/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Fully Rated WTG Template(FullyRatedConverterWTG_xMW)

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 76/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Introduction• The fully rated WTG model could be used for:

– Load Flow Studies

– Stability Studies (RMS)

– Transient Studies (EMT)

– Balanced and unbalanced simulations (however control isimplemented for the positive sequence only)

• For dynamic simulation is a variable step sizepossible.

• The minimum step size or the fix step size shouldbe lower than 5ms.

Page 39: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 77/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Introduction• The following fully rated WTG models are available

in the global template library:- FullyRatedConverterWTG_0.4kV_1.0MW

- FullyRatedConverterWTG_0.4kV_1.5MW

- FullyRatedConverterWTG_0.4kV_2.0MW

- FullyRatedConverterWTG_0.4kV_2.3MW

- FullyRatedConverterWTG_0.4kV_2.5MW

- FullyRatedConverterWTG_0.4kV_2.7MW

- FullyRatedConverterWTG_0.4kV_3.6MW

- FullyRatedConverterWTG_0.4kV_5.0MW

- FullyRatedConverterWTG_0.4kV_6.0MW

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 78/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Introduction• Each template contains also three transformer

types for 10, 20 and 30kV.

• The model from the template is at the beginningequipped with the 20kV transformer.

Page 40: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 79/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model Description• The fully rated WTG is in the single line diagram

represented by a static generator.

• The models of the controllers are collected in thecomposite model “FullyRatedConv Control”.

• This composite model could be found either throughthe link “Plant Model” on the Basic Data page of theWTG or with the Data Manager in the used grid.

Static Generator (ElmGenstat)

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 80/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model Description• The models of the controllers are collected in the

composite model “FullyRatedConv Control”.

• This composite model could be found either throughthe link “Plant Model” on the Basic Data page of theWTG or with the Data Manager in the used grid.

WTG FRC Frame incl Current Ctrl:

PLLElmPhi*

Fmeas

0

1

2

VacStaVmea*

0

1

2

PQStaPqmea*

0

1

PQ ControlElmDsl*

0

1

2

0

1

3

Slow PLLElmPhi*

Act

iveP

ower

Red

uctio

nE

lmD

sl

GeneratorElmGen*,ElmVsc*

0

1

IacStaImea*

0

1

Current ControllerElmDsl*

0

1

2

3

4

5

0

1

6

7

WTG FRC Frame incl Current Ctrl:

u

Qin

Pin

u1i_i..

Fmea

s

u1r_i..

sinref

iq_ref

pred

cosref

id_ref

ii

ir

DIg

SIL

EN

T

Page 41: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 81/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model Description• The composite model “FullyRatedConv Control” is

created from the frame definition “WTG FRC Frameincl Current Ctrl”

WTG FRC Frame incl Current Ctrl:

PLLElmPhi*

Fmeas

0

1

2

VacStaVmea*

0

1

2

PQStaPqmea*

0

1

PQ ControlElmDsl*

0

1

2

0

1

3

Slow PLLElmPhi*

Act

iveP

ower

Red

uctio

nE

lmD

sl

GeneratorElmGen*,ElmVsc*

0

1

IacStaImea*

0

1

Current ControllerElmDsl*

0

1

2

3

4

5

0

1

6

7

WTG FRC Frame incl Current Ctrl:

u

Qin

Pin

u1i_i..

Fmea

s

u1r_i..

sinref

iq_ref

pred

cosref

id_ref

ii

ir

DIg

SIL

EN

T

From Grid

ToGrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 82/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model Description• All measurement devices are connected either to

the terminal or to the cubicle, which connects thegenerator with the terminal.

• This approach ensures that all measurement devicesare correctly connected after entering the modelusing the template.

Page 42: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 83/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model Description

Slot Name Description Needed Type

ActivePowerReduction Reduces the power in case of electricalover frequency.

DSL-Model

Current Controller Calculates from current reference a voltage signal for the static generator.

DSL-Model

Generator Static Generator as grid element. *.ElmGenstat

Iac AC-Current measurement device *.StaImea

PLL Fast voltage angle measurementdevice

*.ElmPhi

PQ Active and reactive power measurement device

*.StaPqmea

PQ Control Controls active and reactive power through the rotor current.

DSL-Model

Slow FrequMeas Frequency measurement for over frequency power reduction.

*.ElmPhi

Vac AC-voltage measurement device *.StaVmea

Table 1: Frame Description.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 84/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model DescriptionFigure 1. Frame Definition “WTG FRC Frame incl Current Ctrl” (*.BlkDef)

WTG FRC Frame incl Current Ctrl:

PLLElmPhi*

Fmeas

0

1

2

VacStaVmea*

0

1

2

PQStaPqmea*

0

1

PQ ControlElmDsl*

0

1

2

0

1

3

Slow PLLElmPhi*

Act

iveP

ower

Red

uctio

nE

lmD

sl

GeneratorElmGen*,ElmVsc*

0

1

IacStaImea*

0

1

Current ControllerElmDsl*

0

1

2

3

4

5

0

1

6

7

WTG FRC Frame incl Current Ctrl:

u

Qin

Pin

u1i_i..

Fmea

s

u1r_i..

sinref

iq_ref

pred

cosref

id_ref

ii

ir

DIg

SIL

EN

T

Page 43: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 85/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Modelling of Photovoltaic System

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 86/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Photovoltaic System

Radiant Energy

Eletrical Energy DC

Electrical Energy 50-60Hz

Solar Cell

Inverter

Page 44: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 87/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Photovoltaic System• Characteristic Curves

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 88/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Photovoltaic SystemGrid side behaviour depends on:

• Control of the rectifier.

• Used step up transformer.

During fault:

• Low AC voltage on PCC no power feed inpossible.

• DC voltage is increased up to open-circuit DCvoltage.

• No special protection for solar cell needed.

Page 45: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 89/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Photovoltaic System: Model in PFLoad flow model in PowerFactory:

• The static generator is used for power flows for gridside studies.

Interest

It is simple!!!

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 90/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Photovoltaic SystemLoad flow model in PowerFactory:

• DC current source consodering PWM converter isused for detailed studies.

It is NOT simple!!!

Page 46: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 91/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Photovoltaic SystemDynamic model in PowerFactory:

• Static generator (for grid side studies)

• DC current source + PWM converter (for PV-parkstudies).

• DSL model for PV cell and rectifier controller.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 92/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Battery Energy Storing System Template (BESS)

Page 47: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 93/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Battery Energy Storing System• The template is a generic model for a battery energy

storing system (BESS).

• It represents the grid side converter and thebattery (modelled in DSL).

• The model represents one BESS with a ratedapparent power of 30 MVA it is connected on 10 kVvoltage level.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 94/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model Description• The BESS is in the single line diagram represented

by a static generator.

• The models of the controllers as well as the batteryare collected in the composite models.

Static Generator (ElmGenstat)

Page 48: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 95/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model Description• The controller is located in the composite model

“BESS-Control” and the battery model is located inthe composite model “Battery”.

• This composite model for the control could be foundeither through the link “Plant Model” on the BasicData page of the static generator or with the DataManger in the used grid.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 96/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model Description

Page 49: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 97/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model DescriptionSe

min

ar: M

odel

ling

Ren

ewab

les

Res

ourc

es a

nd S

tora

ge in

Pow

erFa

ctor

yV1

5.2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 98/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Model Description• The composite model “BESS-Control” is created

from the frame definition “Frame_BatteryCntrl”

Page 50: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 99/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Frame description for “Frame_BatterCntrl” (*BLkDef)Slot Name Description Needed Type

Converter Link to the static generator, representing the inverter. *.ElmGenstat

PQ-Control Control of the active and reactive power of theinverter.

DSL-Model

Frequency Control

Calculates a reference for the active power dependingon the frequency.

DSL-Model

PQ-Measurement

PQ-Measurement device (for feedback). *.StaPqmea

Frequency Measurement

Frequency measurement for frequency control. *.ElmPhi

AC-Voltage AC voltage measurement device for detecting faultsand for voltage support.

*.StaVmea

Charge Control

Calculates if the battery has to be charged or not. DSL-Model

Battery Model Link to the composite model “Battery” *.ElmComp

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 100/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Frame description for “Frame_BatterCntrl” (*BLkDef)

Slot Name DescriptionNeeded

Type

Battery_Model Model of the battery DSL-Model

DC Side Calculation

Model of the DC-side (the static generator has no DC side.

DSL-Model

PQ Measurement

(absolute values)

PQ Measurement device which measures the active power on the AC side in absolute values

*.StaPqmea

Page 51: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 101/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

The Book

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 102/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Experience and Wisdom• This book combines years of technical/practical

experience of more than 20 expertsusers/developers of DigSILENT PowerFactory (>20countries) and deep understanding of academic onpower system analysis.

Dr. Jose Luis RuedaEditor

Dr. F. Gonzalez-LongattEditor

Page 52: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 103/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Book Structure (1/2)

Quasi-Dynamic Simulation

Simulation Unsymmetrical Conditions and Contingency

Analysis

Chapter 1

Chapter 2

Chapter 3

Probabilistic load flow

Chapter 4

Unbalanced Power Flow

Chapter 5

Optimal Power Flow

Chapter 6

Assessing the Renewable Energy Sources

Integration

Modelling of AGC

Chapter 7

CCGTModelling

Chapter 8

DFIG Modelling

Chapter 9

Parameterized Modal Analysis

Chapter 10

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 104/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Book Structure (2/2)

Risk Assessment

Mean–Variance Mapping Optimization

Chapter 11

Chapter 12

Chapter 13

MATLAB/Simulink Interface

Chapter 14

Simulation Automation and Management

Chapter 15

Hardware‐in‐the‐Loop Applications

Chapter 16

Hardware in Hardware‐In‐Loop

P & Q in Wind Farm

Chapter 17

FACTS Modelling

Chapter 18

Multi‐terminalHVDC

Chapter 19

Cluster of Induction Generator

Chapter 20

Page 53: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 105/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Chapter 15Interfacing PowerFactory: Co-simulation,Real-Time Simulation and ControllerHardware-in-the-Loop ApplicationsMatthias Stifter, Filip Andrén, Roman Schwalbeand Werner Tremmel

M. Stifter, F. Andrén, R. Schwalbe and W. Tremmel.Energy Department, AIT Austrian Institute of Technology, Giefinggasse2, 1210 Vienna,Austriae-mail: [email protected]

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 106/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

PF with other models and simulators• MATLAB: PowerFactory build-in interface (DSL) for co-

simulation• DLL: Using external DLL in DSL components (e.g.:

TCP/IP sockets) and DPL scripts• OPC: Industrial standard interface—OPC client—in use

with multi-agent systems and controller hardware in theloop

• RCOM: Remote communication—remote procedure callinterface for using

• PowerFactory in engine mode (e.g. automatedsimulation)

• API: Direct control of PowerFactory internal data modeland advanced functionality (e.g. co-simulation)

• DGS: file format for exchanging data models andgeographical information

Page 54: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 107/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Overview of interfaces provided by PFSe

min

ar: M

odel

ling

Ren

ewab

les

Res

ourc

es a

nd S

tora

ge in

Pow

erFa

ctor

yV1

5.2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 108/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

MATLAB interface in PowerFactory

Page 55: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 109/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

DSL Functions Linked to External DLLsSe

min

ar: M

odel

ling

Ren

ewab

les

Res

ourc

es a

nd S

tora

ge in

Pow

erFa

ctor

yV1

5.2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 110/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

DPL Functions Linked to External DLLs• Similar to the external implemented DSL functions for

dynamic/transient analysis, the DPL interpreter canbe extended by user-defined functions to be used forsteady state analysis

Page 56: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 111/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

OPC—OLE for Process Communication• OPC server connects client processes which run

normally in real time such as automation and controlcomponents.

• External data link (ComLink) is a built-in OPC client.

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 112/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

RCOM—Remote Procedure Call• Until version 14.x, the so-called ENGINE folder was

part of the installation.

• RCOM is well suited for simulation automation sinceit is possible to change for instance DPL scriptparameters or other model attributes.

Java code snippet for connecting via RCOM

Page 57: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 113/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

API—Application Programming Interface• Basically, everything you can do in PowerFactory

can be done via the API!!!

• It exposes internal model and objects of the networkdata as well as analysis functions and results to bedynamically linked into any C++ applicationenvironment.

Use of the API in a stand‐alone C++ application

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 114/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

API Python• Since version 15.1, a Python wrapper for the API

has been provided.

• Since Python is an interpreter based programminglanguage no compiler is necessary to use the C++API.

• Python scripts can be directly used withinPowerFactory or used for running the application inengine mode and controlling it from an externalapplication

Python code for activating and accessing PowerFactory

Page 58: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 115/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Summary Interfaces for Co-simulationSe

min

ar: M

odel

ling

Ren

ewab

les

Res

ourc

es a

nd S

tora

ge in

Pow

erFa

ctor

yV1

5.2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 116/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Closure

Page 59: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 117/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 118/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Questions

fglongatt.org

@fglongatt@fglongatt

Questions and Answers

Copyright NoticeThe documents are created by Francisco M. Gonzalez-Longatt and contain copyrighted material, trademarks, and other proprietary information. All rights reserved. No part of the documents may be reproduced orcopied in any form or by any means - such as graphic, electronic, or mechanical, including photocopying, taping, or information storage and retrieval systems without the prior written permission of Francisco M.Gonzalez-Longatt . The use of these documents by you, or anyone else authorized by you, is prohibited unless specifically permitted by Francisco M. Gonzalez-Longatt. You may not alter or remove anytrademark, copyright or other notice from the documents. The documents are provided “as is” and Francisco M. Gonzalez-Longatt shall not have any responsibility or liability whatsoever for the results of use of thedocuments by you.

Page 60: Modelling Renewables Resources  and Storage in PowerFactory  V15.2, Universidad Carlos III Madrid

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in P

ower

Fact

ory

V15.

2

Prof Francisco M. Gonzalez-Longatt PhD | [email protected] | Copyright © 2015, Madrid, Spain, 8 June 2015 119/119

All r

ight

s re

serv

ed. N

o pa

rt of

this

pub

licat

ion

may

be

repr

oduc

ed o

r dis

tribu

ted

in a

ny fo

rm w

ithou

t per

mis

sion

of t

he a

utho

r. C

opyr

ight

© 2

015.

http

:ww

w.fg

long

att.o

rg

Visit:http://www.fglongatt.org

Any questions or suggestions are welcome

[email protected]

@fglongatt@fglongatt

Copyright NoticeThe documents are created by Francisco M. Gonzalez-Longatt and contain copyrighted material, trademarks, and other proprietary information. All rights reserved. No part of thedocuments may be reproduced or copied in any form or by any means - such as graphic, electronic, or mechanical, including photocopying, taping, or information storage andretrieval systems without the prior written permission of Francisco M. Gonzalez-Longatt . The use of these documents by you, or anyone else authorized by you, is prohibited unlessspecifically permitted by Francisco M. Gonzalez-Longatt. You may not alter or remove any trademark, copyright or other notice from the documents. The documents are provided “asis” and Francisco M. Gonzalez-Longatt shall not have any responsibility or liability whatsoever for the results of use of the documents by you.