tutorial: modelling and simulation - renewable resources and

119
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/120 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 @fglongatt

Upload: lamcong

Post on 05-Feb-2017

240 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

@fglongatt

Page 2: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

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.org

Page 3: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 4: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• This seminar is designed to present a general

overview of:

– Main features of Modelling and Simulation of

PowerFactory.

– Models included in PowerFactory for Renewables

and Storage.

– DigSILENT Simulation Language (DSL).

– Main features of the Book.

Page 5: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 6: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Basic PowerFactory Concepts

• Overview of System Analysis Functions

• Dynamic Modelling with PowerFactory

• Types of Wind Turbines Technologies

• WTG Models for Load Flow and Short Circuit

Calculation

• Global “Templates” library

• WTG Models for Dynamic Simulation

• Fully Rated WTG Template

• PV and Battery Energy Storing System (BESS)

• The Book…

Page 7: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 8: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The calculation program PowerFactory, as written byDIgSILENT.

• 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 9: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The name DIgSILENT stands for "DIgital SImuLationand 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.

Page 10: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• DIgSILENT power system calculation package was

designed as an integrated engineering tool.

• It provides a complete 'walk-around' technique

through all available functions, rather than a

collection of different software modules.

• PowerFactory Version 14, DIgSILENT represents a

further step towards seamless integration of

functionality and data management within a

multi-user environment.

Page 11: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• There are three basic integration characteristics

that contribute to make PowerFactory a unique

power system analysis tool:

a) Functional integration

c) Vertical integration

b) Database integration

Page 12: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• DIgSILENT PowerFactory software is implemented

as a single executable program, and is fully

compatible with Windows 95/98/NT/2000/XP/Vista.

Page 13: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Vertically integrated power equipment model

concept allowing models to be shared by all

analysis functions

DATA

Page 14: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• DIgSILENT PowerFactory provides optimal

organization of data and definitions required to

perform any type of calculation, memorization of

settings or software operation options.

Page 15: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• 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 Manager

Visioning andPublishing

Master and DeviceCompare and Merge

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

Page 16: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Project Management: All the data that defines a powersystem 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 17: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• This 'project and study case' approach to define and

manage power system studies is a unique application of

the object-oriented software principle.

• Standard software packages often require the user to

create a large number of similar saved cases, with

multiple nested directories for large complex networks

and studies.

• This approach of the structure is both easy to use while

avoiding redundancy.

Page 18: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

This Section Presents a General Overview of the

Supported PowerFactory Functions

Page 19: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

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 61363

ANSI C37.4G74

Complete 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

Applic

ations

Grid

Pow

er

Syste

m A

naly

sis

Functions

Source: DigSILENT PowerFactory

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

@fglongatt

Page 20: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• 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

Page 21: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• DigSILENT PowerFactory, NetomacTM and

SimpowTM, offer both dynamic and instantaneous

value modes of simulation.

@fglongatt

Page 22: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 23: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Stability analysis calculations are typically based on

predefined system models.

• When no IEEE models exist a powerful tools for

user defined modelling are required.

• For systems and configurations for which no IEEE

models exist, Dynamic Simulation Language

(DSL) could be used

• High specialised and exact models can be created in

PowerFactory.

Page 24: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The Dynamic Simulation Language (DSL) is a powerfulfeature 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 25: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Two types of models in DIgSILENT are presented :

1. Built-in models, which are standard electrical component

models, already existing in the DIgSILENT library.

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

dynamic simulation language DSL.

DSL Models Built-in Models

Page 26: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The "DIgSILENT Simulation Language" is used to

define new dynamic controllers which receive

input signals from the simulated power system and

which react by changing some other signals.

Approx. 3000

predefined signals

(voltages, currents,

impedances, parameters,

switches, log variables,…)

Interrupt handling

Numerical integration

Output processing

Automatic generation of

Jacobian elements and

system sub-matrices

DSL

Model 1

DSL

Model 2

DSL

Model n

DSL

Model n

DSL

Model n

Interrupt signals;

FAULT (expression, command)

Program internal signals and parameters

Output signals

Interrupt signals

Output signals

Interrupt signals

Interrupt signals;

FAULT (expression, command)

Variable addresses

element: variable

Domain

Domain

Page 27: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• PowerFactory modelling philosophy is targeted

towards a strictly hierarchical system modelling

approach.

Hierarchical

system

modelling

Block

Block Frame

Model

Model Frame

User

@fglongatt

Block

Block Frame

Model

Model Frame

Page 28: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• This approach combines both graphical and script-

based modelling methods.

Hierarchical

system

modelling

Graphical

Script based

Graphical

Block Diagrams

Script Based

Programming

@fglongatt

Page 29: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Composite model 1

Composite model 2

Model Definition

Common model 1dsl

Common model 2dsl

Composite Frame

+ Library

Slot A

Slot B

B

A

B

A

Network Element 1

Network Element 2

+ Library+Network Data

@fglongatt

Page 30: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 31: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Wind Generation Modeling Group (WGMG) of the

Western Electricity Coordinating Council (WECC)

• Working Group on Dynamic Performance of Wind

Power Generation of IEEE Power System

Dynamic Performance Committee

• They have developed and provided specification of

generic wind turbine generator (WTG) models.

• PowerFactory uses IEC 61400-27-1 and WECC

http://ewh.ieee.org/soc/pes/psdpc/documents/IEEE_PES_WG_DPWG_072412_Meeting_and_Panel.pdf

Page 32: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• This modular structure has many similarities with the

first generation of WECC generic WTG model, but

also some major differences:

– The IEC structure separates the wind turbine

model from the wind plant model

– All the IEC models refer to a common modular

structure which applies for all wind turbine type

models.

– The common structure explicitly separates the

aerodynamic, mechanical, generator-system,

electrical and control modules and adds a grid

protection module.

Page 33: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The horizontal sequence of blocks in the middle

reflects the physical power flow, while protection and

control is shown above and below respectively.

Depending on the type of wind turbine, some of the

modules can be omitted.

@fglongatt

Page 34: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Despite the seemingly large variety of utility-scale

WTGs in the market, each can be classified in one

of 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 35: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Four basic types, based on

the WTG technology:

Type 1 – Fixed-speed, conventional

induction generators

Variable Slip WTG

Type 2 – Induction generators with

variable rotor resistance

Variable Speed WTGs

Type 3 – Doubly-fed asynchronous

generators with rotor-side converter

Type 4 – Asynchronous generators

with full converter interface

Var

Compensation

Single

cage

induction

generator

Gearbox

mecP

genP

Grid

IsUs

Double-fed

induction

generator

Gearbox

ac/dc dc/acDC

link

Ir

Ur

genP

Filter

gensP

Grid

gensP

mecP

Is

Us

Synchronous or

Asynchronous

Generator

Optional

Gearboxac/dc dc/acDC

link

genP

Grid

mecP

Filter

IsUs

Wound Rotor

induction

generator

Gearbox

ac/dc

Ur

genP

mecP

Var

Compensation

Grid

Type 1 Type 2

Type 3 Type 4

@fglongatt

Page 36: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

IEC 61400-27-1 WECC generic WTG

model

Page 37: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The oldest technologies used in wind turbine

generators.

Var

Compensation

Single

cage

induction

generator

Gearbox

mecP

genP

Grid

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%.

Page 38: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Wind

Turbine

Model

Generator

Model

Pseudo

Governor

Model

Shaft Speed

Real Power

Terminal voltage

genP

genQ

Var

Compensation

Single

cage

induction

generator

Gearbox

mecP

genP

Grid

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).

Page 39: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• 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).

IsUs

Wound Rotor

induction

generator

Gearbox

ac/dc

Ur

genP

mecP

Var

Compensation

Grid

Page 40: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Wind

Turbine

Model

Generator

Model

Pseudo

Governor

Model

Shaft Speed Real

Power

Terminal voltage

genP

genQRotor Resistance

Real Power

Rotor

Resistance

Control

Model

“Aero” Torque

IsUs

Wound Rotor

induction

generator

Gearbox

ac/dc

Ur

genP

mecP

Var

Compensation

Grid

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).

Page 41: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• This is a variable speed wind turbine generator

employing a wound rotor induction generator.

Source: www.nordex-online.com

IsUs

Double-fed

induction

generator

Gearbox

ac/dc dc/acDC

link

Ir

Ur

genP

Filter

gensP

Grid

gensP

mecP

It is usually design to operate at + 30%

slip.

A variable frequency power converter is

connected 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 42: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Wind

Turbine

Model

Generator/

Converter

Model

Pitch Control

Model

Shaft Speed Real

Power

Terminal voltage

genP

genQCommand Ip

Converter

Control

Model

Blade Picth

Power

order

Regulated Bus

Voltage

Speed

Orde

Command Eq

Real & Reactive

Power

IsUs

Double-fed

induction

generator

Gearbox

ac/dc dc/acDC

link

Ir

Ur

genP

Filter

gensP

Grid

gensP

mecP

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).

Page 43: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Wind turbine type 4 is a variable‐speed wind

turbine generator.

• The output of the generator is passed through the

power converter to the grid.

Source: www.multibrid.de

Is

Us

Synchronous or

Asynchronous

Generator

Optional

Gearboxac/dc dc/acDC

link

genP

Grid

mecP

Filter

Full

Converter

Interface

Page 44: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Wind

Turbine

Model

Generator/

Converter

Model

Real

Power

Terminal voltage

genP

genQCommand Ip

Converter

Control

Model

Power order

Regulated Bus

Voltage

Command Eq

Real & Reactive

Power

Is

Us

Synchronous or

Asynchronous

Generator

Optional

Gearboxac/dc dc/acDC

link

genP

Grid

mecP

Filter

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).

Page 45: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Permanent Magnet Synchronous Generator

Is

Us

Permanent

Magnet

Synchronous

Generator

Gearbox ac/dc dc/acDC

link

genP

Grid

mecP

PMSGCH

GSCRSC

On the market, this system have been used in Spanish manufacturer Made, GE

multi-megawatt series.

The 2.5 MW Clipper Liberty turbine type, which features four 660 kW PMSGs, has

also used this concept.

Zephyros (currently Harakosan) and

Mitsubishi are using this concept in 2 MW

wind turbines on the market

Page 46: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Is

Us

Induction

Machine

Gearbox ac/dc dc/acDC

link

genP

Grid

mecP

IMCH

GSCMSC

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

Siemens Wind

Turbine SWT-3.6-107

Sourc

e: w

ww

.sie

men

s.co

m/w

ind

Page 47: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Is

Us

Synchronous

Generator

dc/dc dc/acDC

link

genPGrid

mecP

CH

GSCMSC

ac/dc

Step up

SG

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 48: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 49: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Representation in PowerFactory:

• Asynchronous Machine (*.ElmAsm) and Step UpTransformer

• Needs a Type (*.TypAsmo).

Page 50: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

IsUs

Wound Rotor

induction

generator

Gearbox

ac/dc

Ur

genP

mecP

Var

Compensation

Grid

Page 51: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Representation in PowerFactory:

• Asynchronous Machine (*.ElmAsm).

• Needs a Type (*.TypAsmo)

Page 52: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

IsUs

Double-fed

induction

generator

Gearbox

ac/dc dc/acDC

link

Ir

Ur

genP

Filter

gensP

Grid

gensP

mecP

Converter

is

Neglected

Page 53: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Simple Representation in PowerFactory:

• Asynchronous Machine Configured as DFIG

(*.ElmAsm).

• Needs a Type (*.TypAsmo).Converter

is

Neglected

Page 54: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Gear box

DFIG Grid

~~

Frequency

ConverterConverter

is Included

Page 55: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Detailed Representation in PowerFactory

• DFIG (*.ElmAsmsc).

• Needs a Type (*.TypAsmo).

Converter

is Included

Page 56: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Gear box

DFIG Grid

~~

Frequency

ConverterConverter

is Included

FULL

Model

Page 57: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Detailed Representation in PowerFactory:

• DFIG (*.ElmAsmsc).

• Needs a Type (*.TypAsmo).

Converter

is Included

FULL

Model

Page 58: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

SG/IG Grid~~

Frequency

ConverterGear box

Page 59: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Representation in PowerFactory:

• Static Generator (*.ElmGenstat).

• Needs no Type

Page 60: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

SG/IG Grid~~

Frequency

Converter

No Gearbox

Page 61: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Representation in PowerFactory:

• Static Generator (*.ElmGenstat).

• Needs no Type

Page 62: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Representation in PowerFactory:

Grid Side

Converter

(PWM) + DC

Circuit

Page 63: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 64: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• 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.

Page 65: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 66: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Dynamic of electrical components

• Control

• Protection

• Dynamic of mechanical parts

• Feedback (measurement)

All connected in a composite model:

Page 67: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Generator, Shunt, Transformer, Inverter..

• Defined with grid elements:

• And type data:

Page 68: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

*.ElmAsm*.TypAsm

Page 69: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Controllers, protections and mechanical dynamics

are defined in DSL.

Page 70: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The entity of a DSL model is a common model:

• Parameters: Characteristic:

Page 71: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Available measurement devices:

• Voltage (*.StaVmea)

• Current (*.StaImea)

• Power (*.StaPqmea)

• Phase (*.ElmPhi_pll)

Page 72: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Frame definition:

• WTG with fully rated converter:

Page 73: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Entity of a frame is a composite model:

Page 74: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 75: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The fully rated WTG model could be used for:

– Load Flow Studies

– Stability Studies (RMS)

– Transient Studies (EMT)

– Balanced and unbalanced simulations (however control is

implemented for the positive sequence only)

• For dynamic simulation is a variable step size

possible.

• The minimum step size or the fix step size should

be lower than 5ms.

Page 76: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• 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

Page 77: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Each template contains also three transformer

types for 10, 20 and 30kV.

• The model from the template is at the beginning

equipped with the 20kV transformer.

Page 78: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The fully rated WTG is in the single line diagram

represented by a static generator.

• The models of the controllers are collected in the

composite model “FullyRatedConv Control”.

• This composite model could be found either through

the link “Plant Model” on the Basic Data page of the

WTG or with the Data Manager in the used grid.

Static Generator (ElmGenstat)

Page 79: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The models of the controllers are collected in the

composite model “FullyRatedConv Control”.

• This composite model could be found either through

the link “Plant Model” on the Basic Data page of the

WTG 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*

Active

Po

werR

ed

uct

ion

Elm

Dsl

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 80: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The composite model “FullyRatedConv Control” is

created from the frame definition “WTG FRC Frame

incl 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*

Active

Po

werR

ed

uct

ion

Elm

Dsl

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 81: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• All measurement devices are connected either to

the terminal or to the cubicle, which connects the

generator with the terminal.

• This approach ensures that all measurement devices

are correctly connected after entering the model

using the template.

Page 82: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Slot Name Description Needed Type

ActivePowerReduction Reduces the power in case of electrical

over 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 measurement

device*.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.

Page 83: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Figure 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*

Active

Po

werR

ed

uct

ion

Elm

Dsl

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 84: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 85: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Radiant

Energy

Electrical Energy

DC

Electrical Energy

50-60Hz

Solar Cell

Inverter

Page 86: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Characteristic Curves PV Cell

Page 87: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Grid side behaviour depends on:

• Control of the rectifier.

• Used step up transformer.

During fault:

• Low AC voltage on PCC no power feed in

possible.

• DC voltage is increased up to open-circuit DC

voltage.

• No special protection for solar cell needed.

Page 88: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Load flow model in PowerFactory:

• The static generator is used for power flows for grid

side studies.

Interest

It is simple!!!

Page 89: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Load flow model in PowerFactory:

• DC current source consodering PWM converter is

used for detailed studies.

It is NOT simple!!!

Page 90: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Dynamic model in PowerFactory:

• Static generator (for grid side studies)

• DC current source + PWM converter (for PV-park

studies).

• DSL model for PV cell and rectifier controller.

Page 91: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 92: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 93: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The template is a generic model for a battery

energy storing system (BESS).

• It represents the grid side converter and the

battery (modelled in DSL).

• The model represents one BESS with a rated

apparent power of 30 MVA it is connected on 10 kV

voltage level.

Page 94: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The BESS is in the single line diagram represented

by a static generator.

• The models of the controllers as well as the battery

are collected in the composite models.

Static Generator (ElmGenstat)

Page 95: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The controller is located in the composite model

“BESS-Control” and the battery model is located in

the composite model “Battery”.

• This composite model for the control could be found

either through the link “Plant Model” on the Basic

Data page of the static generator or with the Data

Manger in the used grid.

Page 96: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 97: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 98: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• The composite model “BESS-Control” is created

from the frame definition “Frame_BatteryCntrl”

Page 99: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

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 the

inverter.

DSL-Model

Frequency

Control

Calculates a reference for the active power depending

on 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 faults

and 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

Page 100: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

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 101: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 102: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• This book combines years of technical/practical

experience of more than 20 experts

users/developers of DigSILENT PowerFactory (>20

countries) and deep understanding of academic on

power system analysis.

Dr. Jose Luis Rueda

EditorDr. F. Gonzalez-Longatt

Editor

Page 103: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

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

Page 104: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

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 105: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

M. Stifter, F. Andrén, R. Schwalbe and W. Tremmel.

Energy Department, AIT Austrian Institute of Technology, Giefinggasse2, 1210 Vienna,

Austria

e-mail: [email protected]

Page 106: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• 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 usewith 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 107: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 108: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 109: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 110: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Similar to the external implemented DSL functions for

dynamic/transient analysis, the DPL interpreter can

be extended by user-defined functions to be used for

steady state analysis

Page 111: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• OPC server connects client processes which run

normally in real time such as automation and control

components.

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

Page 112: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Until version 14.x, the so-called ENGINE folder was

part of the installation.

• RCOM is well suited for simulation automation since

it is possible to change for instance DPL script

parameters or other model attributes.

Java code snippet for connecting via RCOM

Page 113: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Basically, everything you can do in PowerFactory

can be done via the API!!!

• It exposes internal model and objects of the network

data as well as analysis functions and results to be

dynamically linked into any C++ application

environment.

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

Page 114: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

• Since version 15.1, a Python wrapper for the API

has been provided.

• Since Python is an interpreter based programming

language no compiler is necessary to use the C++

API.

• Python scripts can be directly used within

PowerFactory or used for running the application in

engine mode and controlling it from an external

application

Python code for activating and accessing PowerFactory

Page 115: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 116: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 117: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Page 118: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

fglongatt.org

@fglongatt

Questions and Answers

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.

Page 119: Tutorial: Modelling and Simulation - Renewable Resources and

Sem

inar

: Mod

ellin

g R

enew

able

s R

esou

rces

and

Sto

rage

in

Pow

erF

acto

ryV

15.2

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

All

right

s re

serv

ed. N

o pa

rt o

f thi

s pu

blic

atio

n m

ay b

e re

prod

uced

or

dist

ribut

ed in

any

form

with

out p

erm

issi

on o

f the

aut

hor.

Cop

yrig

ht ©

201

5. h

ttp:w

ww

.fglo

ngat

t.org

Any questions or suggestions are welcome

[email protected]

@fglongatt

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.