Modeling and Simulation of Intelligent Electrical Power Grids. Peter Palensky TU Delft

Similar documents
Simulation of Vehicle Drivetrain with Modelica

Electromagnetics and Electric Machines Stefan Holst, CD-adapco

Physical Modelling with Simscape Rick Hyde

Developing software that drives machines. Klaas Gadeyne

Coupling Physics. Tomasz Stelmach Senior Application Engineer

Towards a formal description of models and workflows

Integrated Electricity Demand and Price Forecasting

Test Case: Power System Voltage Stability

Mathematical Modelling Using SimScape (Electrical Systems)

Appendix A Prototypes Models

ET3-7: Modelling I(V) Introduction and Objectives. Electrical, Mechanical and Thermal Systems

Smart Grid State Estimation by Weighted Least Square Estimation

SIMATIC Ident Industrial Identification Systems

Efficient Simulation of Hybrid Systems: A Hybrid Bond Graph Approach

Modelica Driven Power System Modeling, Simulation and Validation

Open spatial data infrastructure

Parameter Prediction and Modelling Methods for Traction Motor of Hybrid Electric Vehicle

Verification of model connection by FMI using acausal modeling tools ~ JSAE WG Activities ~

MODELING IN XCOS USING MODELICA

An Automotive Case Study ERTSS 2016

Engineering of Automated Systems with Mechatronic Objects

Control of an Induction Motor Drive

86 Part 4 SUMMARY INTRODUCTION

MASSPA-Modeller: A Spatial Stochastic Process Algebra modelling tool

Edinburgh Research Explorer

Distributed demand side management via smart appliances contributing to frequency control

OBEUS. (Object-Based Environment for Urban Simulation) Shareware Version. Itzhak Benenson 1,2, Slava Birfur 1, Vlad Kharbash 1

ECE 422/522 Power System Operations & Planning/ Power Systems Analysis II 3 Load Modeling

Predici 11 Quick Overview

Role of Synchronized Measurements In Operation of Smart Grids

GeoWorlds: Integrated Digital Libraries and Geographic Information Systems

Improving the Ability to Simulate Noise from Brake Squeal

Reactor Design within Excel Enabled by Rigorous Physical Properties and an Advanced Numerical Computation Package

Use of graphene by an energy utility

SHORT TERM LOAD FORECASTING

Design of the Forced Water Cooling System for a Claw Pole Transverse Flux Permanent Magnet Synchronous Motor

Transient Analysis of Separately Excited DC Motor and Braking of DC Motor Using Numerical Technique

7-9 October 2009, Leuven, Belgium Electro-Thermal Simulation of Multi-channel Power Devices on PCB with SPICE

ET3-7: Modelling II(V) Electrical, Mechanical and Thermal Systems

Using the Principles of Synchronous Languages in Discrete-event and Continuous-time Models

Engineered System Design and Integration A semantic domain for modeling cyber-physical systems

Session-Based Queueing Systems

Modelling wind power in unit commitment models

Locating Distributed Generation. Units in Radial Systems

Performance of Flocking-Based Control Schemes in Smart Grid Applications

How to Get the Most from Your Low Current Measurement Instruments

2007 IEEE. Personal use of this material is permitted. However, permission to reprint/republish this material for advertising or promotional purposes

Analysis and Control of Multi-Robot Systems. Elements of Port-Hamiltonian Modeling

SDS developer guide. Develop distributed and parallel applications in Java. Nathanaël Cottin. version

Modelica An Object-Oriented Language for Physical System Modeling

A Learning Agent for Heat-Pump Thermostat Control

Modeling and simulation aspects of AC machines

ENGI9496 Modeling and Simulation of Dynamic Systems Bond Graphs

ECE 422/522 Power System Operations & Planning/Power Systems Analysis II : 7 - Transient Stability

Formal Methods in Software Engineering

MULTI PURPOSE MISSION ANALYSIS DEVELOPMENT FRAMEWORK MUPUMA

Mathematical modelling of devices and flows in energy systems

BRINGING MARINE DATA ASSETS TO THE FUTURE INTERNET

Data-Driven Optimization under Distributional Uncertainty

New Facilities for Multiphysics Modelling in Opera-3d version 16 By Chris Riley

POG Modeling of Automotive Systems

Design and implementation of a new meteorology geographic information system

Advantages of Variable Frequency Drive Technology for Face Conveyor and Plow Systems in Longwall Mining

Power System Stability and Control. Dr. B. Kalyan Kumar, Department of Electrical Engineering, Indian Institute of Technology Madras, Chennai, India

Optimal Demand Response

Modeling Basics: 4. Numerical ODE Solving In Excel 5. Solving ODEs in Mathematica

Optimization of a car seat under impact load

NOAA Surface Weather Program

A Demand Response Calculus with Perfect Batteries

SE-5101: Foundations of Physical Systems Modeling

Physics Energy On This World and Elsewhere - Fall 2013 Problem Set #2 with solutions

Telecommunication Services Engineering (TSE) Lab. Chapter IX Presence Applications and Services.

TRAM LINE SWITCH POINT HEATING

Noise and Vibration of Electrical Machines

Analysis of Coupling Dynamics for Power Systems with Iterative Discrete Decision Making Architectures

Using the Principles of Synchronous Languages in Discrete-event and Continuous-time Models

1 Introduction. Station Type No. Synoptic/GTS 17 Principal 172 Ordinary 546 Precipitation

Mathematical MATLAB Model and Performance Analysis of Asynchronous Machine

Multidomain Design and Optimization based on Comsol Multiphysics: Applications for Mechatronic Devices

University of Bristol - Explore Bristol Research. Publisher's PDF, also known as Version of record

Converter System Modeling via MATLAB/Simulink

Time. Today. l Physical clocks l Logical clocks

Dr. Andrea Bocci. Using GPUs to Accelerate Online Event Reconstruction. at the Large Hadron Collider. Applied Physicist

A Reconfigurable Quantum Computer

Modeling and Experimentation: Compound Pendulum

Multiphysics Modeling

ELECTRICAL ENGINEERING

Motor-CAD combined electromagnetic and thermal model (January 2015)

Stochastic Unit Commitment with Topology Control Recourse for Renewables Integration

#SEU16. FEA in Solid Edge and FEMAP Mark Sherman

HPC and High-end Data Science

ECEN 667 Power System Stability Lecture 20: Oscillations, Small Signal Stability Analysis

Solving Bateman Equation for Xenon Transient Analysis Using Numerical Methods

SmartDairy Catalog HerdMetrix Herd Management Software

THE 3D SIMULATION INFORMATION SYSTEM FOR ASSESSING THE FLOODING LOST IN KEELUNG RIVER BASIN

ELF products in the ArcGIS platform

Pascal ET is an handheld multifunction calibrator for the measurement and simulation of the following parameters: - pressure

TRAITS to put you on the map

Modeling a powertrain in Simscape in a modular vehicle component model library. Stuttgart, , MBtech, Jörn Bader

US National Spatial Data Infrastructure A Spatial Framework for Governance and Policy Development to Enable a Location-Based Digital Ecosystem

Transcription:

Modeling and Simulation of Intelligent Electrical Power Grids Peter Palensky TU Delft 1

1754967286 6236885712 379329542 (~1.75*10^28) 2

Kinetic equations Temperature Co T = k/n * Σ mi*v 2 i s n o i llis? k = some constant n = number of molecules m = mass of molecule v = velocity of molecule T = absolute temperature 3

Pressure Temperature P T = P*V / N*R P = pressure V = volume N = amount of substance (in moles) R = ideal gas constant T = absolute temperature 4

Electrical Power Grids? g n i h c t i Sw Topology All elements, parameters Matrices I=Y V V = Voltages I = Currents Y = nodal admittance matrix 5

Electrical Power Grids Complex already! Weasle around problems Conservative rules Over-engineer Damping, inertia, etc. Image: NREL 6

Intelligent Electrical Power Grids A System of Systems 7

Paradigm shift needed P? 8

One of the new (?) things: Data 1) Metering 2) More metering (PMUs, etc.) 3) Unstructured data 4) Asking controllers/ DERs/IoT PMU: Phasor Measurement Unit IoT: Internet of Things DER: Distributed Energy Resources 9

First attempts: 2004 Early, experimental platform App(lication) as the goal! Communicating box Multi-agent system Intelligent Loads Scalability? 10

Even more challenges for Grid as Platform Scalability? Interoperability, Interfaces? Data/function/infrastructure ownership? Security, Resilience? Physics vs. Data vs. Economics? Upgrades/Updates? Basic rules/standards or anarchy? Governance, fairness? 11

Grid connects worlds... physical world roles/behavior continuous models game theory models energy generation, transport, distribution, consumption, etc. agents acting on behalf of a customer, market players, etc. information technology cyberphysical energy system aggregate/stochastic discrete models statistical models controllers, communication infrastructure, software, etc. weather, macro-view of many individual elements, etc. 12

Heterogeneity within worlds Power System Physics: electricity, mechanics, hydraulics,... Within electricity grid: multi-view, different models Electromagnetic Transients (EMT) µs: switching, lighting, harmonics Phasor Domain / Transient Stability (TS) ms: machines, controls 13

How to solve? Research on cyber(multi)physical ecosystems Understand, validate, optimize Traditional (analytical) methods limited New Methods Flexible, Modular Scalable Allow scenario handling How to find? Go through typical examples 14

Case 1: Thermal System with Market Consumption Thermal Flow SUM Information Thermal domain H1 [house] Discrete controller H2 [house] Agents/Market Stochastic events Market Price Hn [house] Environment Price Agent On/Off Describe via bond graph Analyze interplay of continuous domain and asynchronous events Scalability of methods Tset Heater Controller Thermal Mass Tin P E Energy Counter Switch Vent Schedule Out0 conduct1 Q_dot_amb Out1 conduct2 15

Case 2: UC1 + el. power station Plus: Electrical domain Ideal grid Non-ideal power station Plus: Mechanical domain Tightly coupled elements! Further use cases 3: 4: 5: 6: 7: Thermal grid Non-trivial market Communication network non-ideal grid EV-charging EV: electric vehicle 16

Options for modeling a hybrid system (0) Squeeze submodels into one tool Language, solver, method n-1 submodels in wrong language Tedious Error prone Brutal simplifications (1) Universal tool Universal language, solver, etc. (2) Co-simulation Combine specialized languages, solvers, etc. 17

(0) Use tool of subdomain Example: Omnet++ discrete event scheduler For communication networks Parameters in config file Topology in *.ned files Agent behavior in C++ code class Sensor : public csimplemodule { protected: virtual void initialize(); virtual void handlemessage(cmessage *msg); }; Define_Module(Node); void Node::initialize() { if (blabla) { cmessage *msg = new cmessage(something); send(msg, "value"); } } void Sensor::handleMessage(cMessage *msg) { do_something; } [General] network = Testnetwork1 Testnetwork1.Controller5.KP = truncnormal(3,1) simple Sensor { parameters: int datarate; gates: output value; } network Testnetwork1 { types: channel C extends ned.dataratechannel { datarate = 100Mbps; ber = 2e-10; delay = 75us; } submodules: Sensor47: Sensor; Controller5: Controller;... connections: Sensor47.value <--> C <--> Controller5.port++; Controller5.ctrlval <--> C <--> Valve12.setpoint;... } 18

Discrete Simulation Platform Power system simulation Matlab prototypes Translate to OMNeT++ Discrete event simulator open source, cross-platform Models of Telecommunications Generators, loads, grid,... Infoserver server Info Required behavior Communication Communication channel channel (Distributed) (Distributed) Algorithm Algorithm Environment Environment climate,human human ( (climate, behaviour etc.) ) behaviour etc. EnergyResource Resource Energy (load,generator, generator,etc.) etc.) (load, Powergrid grid Power Achieved behavior Testing Algorithms Communication 19

Extremely simplified models First tries: continuous model, 28 state discrete, etc. etc. etc. Simplified Markov Model with two states Computationally inexpensive T=0 FLUSH pflush(t) FLUSH pflush(t) Full / DRAIN Not full T T Not empty Empty / STORE 20

Linear, analytic solutions useless ΔT NORMAL OPERATION ΔT ΔThigh ΔThigh ΔTlow Power ΔTlow ton ΔT toff DRAIN Power ton toff time STORE ΔT ΔThigh ΔThigh ΔTlow Power ΔTlow Power ton toff time time FLUSH ton toff time 21

How to represent physical models Analytic Causal No solver No interaction Unidirectional flow of information Transfer functions, blocks Simulink, Ptolemy Good for controls Acausal Bidirectional flow of information Equation-based model Modelica, Simscape Good for (multi)physics 22

(1) Universal tool approach (a) Agent-oriented / modular (b) Monolithic Autonomous objects GridLAB-D, Omnet++ Equation-based model Modelica, Simscape Both Use object oriented languages Are compiled into executable 23

(1a) Agent-oriented models Model split into (large) number of autonomous objects Communicate variables with each other Determine synchronization points Discrete event scheduler coordinates V O2 O1 O3 On Sync Scheduler Good scalability 24

(1a) Time synchronization Objects update their states Objects predict personal sync time time Object 1 Object 2 Object 3 order of execution Object 4 25

(1a) Time synchronization Objects update their states Objects predict personal sync time time Object 1 Object 2 Object 3 order of execution Object 4 26

(1a) Time synchronization Objects update their states Objects predict personal sync time time Object 1 Object 2 Object 3 order of execution Object 4 27

(1a) Results agent oriented minimum step size is lower bound Good performance Perfect event handling Module, extensible Hierarchies possible BUT ~n ~n^2 Physics? (no integrators) 28

(1b) Monolithic models Simscape, Modelica Equations compiled into executable Numerical solver finds zero crossings Convenient, multi-domain physics Strong syntax, good docu Model Executable flattening Flat Model ODE sorting Sorted Equations Index reduction Index Reduced Equations 29

(1b) Connectors link physical properties Flow: Ia+Ib+Ic=0 Potential: Va+Vb+Vc Flow Variables A I V I V B I V C Potential Variables 30

(1b) Potential & flow variables: Energy conservation Domain Potential Variables Variables Position Force Angle Torque Magnetic Magnetic potential Magnetic Flux Flow, Hydraulic Pressure Volume Flow Rate (Bio)Chemical Concentration Reaction Rate Electrical Voltage Current Thermodynamics Temperature Heat Flow Rate Mechanics Flow 31

(1b) Modelica code example package Energy package Interfaces partial connector HeatPort Thermal port for 1-dim. Heat transfer Types.Temperature T; flow Types.HeatFlowRate Q_flow; end HeatPort;... end Interfaces; package Components model House4 "House and Temperature lumped thermal element storing heat" Types.Temperature T(start=20 + 273.15, displayunit="degc") "Temperature of element"; parameter Energy.Types.ThermalCapacity Cth = 430.578 "Heat capacity of element ; parameter Types.Density ro = 1.2041; parameter Types.Volume volume = 200; Interfaces.HeatPort_a port_a; equation T = port_a.t; ro*volume*cth*der(t) = port_a.q_flow; end House4; model Heater... end Heater;... end Components;... end Energy; 32

Use Case 1 SimScape results 33

(1) One Tool bottom line... Both options not ideal... 108 Missed events? 107 Physics in agents? 105 Performance? Parallel computing? M DASSL Simulation time in seconds M LSODAR 106 A dynamic 1 day M RungeKutta 10 4 A fixed M Euler 10 3 102 Number of Houses 101 101 102 103 104 105 106 3 days model time M xxx: Monolithic, A xxx: Agent based 34

(2) Co-Simulation normal simulation Model ODEs/DAEs One modeling tool, one solver (e.g. Euler, RK45, DASSL, ODE15s, etc.) # solvers Co-Simulation Multiple solvers/tools Pick the best! Coupled models >1 >1 Parallel Simulation CoSimulation 1 Simulation Hybrid Simulation 1 >1 ODE: ordinary differential equation DAE: differential-algebraic equation # models 35

Coupling of Models r coupled systems of DAEs m external steps during simulation time u1 u2 Model 1 Model 2 y1 y2 1-n internal steps during one external step 36

Coupling principles Explicit coupling exchanges data at every external step once One or more (internal) steps external step (synchronization point) Implicit coupling iterates each external step until the system converges # steps determines error 37

Numerical Co-Simulation Combine models Solve collaboratively Multidisciplinary problems possible Simulated system Energy Market Simulator Car Usage Simulator Distribution Grid Simulator Communication Network Simulator Battery Simulator Power Electronics/ Controls Simulator Difficult... Real system 38

EMT-TS Grid Co-Simulation Fast parts in EMT Details, switching, power electronics Big system in TS Simulated in EMT Simulated in TS Simulated in TS 39

Challenges in Co(upled) Simulation Optimizer Scenario Multiple simulators Multiple models How to couple? Scenario Handling? Interface? create Initial states Parameters u time series Strategy Utility function Scripting Engine init result Co-Simulation Solver FMU Model y y u u y Solver FMU Model u y y u u u Solver FMU Model y 40

Case 7 dynamic demand-response household load profiles taken from measurement campaign small scale distribution grid realistic battery model medium/low voltage network with consumers stochastic driving patterns derived from real-world car sharing data charging control algorithm distributed charging power regulation 41

Case 7 implementation (commercial) PowerFactory Power system Loads, generation Dymola/Modelica Batteries GridLAB-D Charging controls Charging agents Vehicle driving 42

Case 7 implementation (FOSS) PSAT/Octave Open Modelica Batteries GridLAB-D Power System Vehicles, charging 4DIAC Grid controls FOSS: Free and/or Open Source Software 43

Agent/discrete Part Done in GridLAB-D Sequence of car activities Configured via carsharing monitoring data Stochastic model Input to discrete numerical model 44

Results: details, details, details Detailed models Unbalanced grid Chemical battery Emulated controls Real-time simulation Multi-focus Battery aging Grid limits Agent convergence Economic optimum 45

Results: dynamic step size control 46

Results: ICT & Physics Impact of communication latency, packet loss, etc. Various communication channels (power line, etc.) 47

Smart Grids Modeling Bottom Line Hybrid systems Cyber-physical (-socio -economic -environmental -etc.) Multi-disciplinary problem Tools, modeling principles, teams Language (natural, formal) Co-simulation can help Harmonization of analytic and numeric methods 48

Peter Palensky palensky@ieee.org 49