Modeling and Validation of a Variable Frequency Drive-Based … · [email protected]...

27
1 © 2015 The MathWorks, Inc. Modeling and Validation of a Variable Frequency Drive-Based HVAC System Dhirendra Singh R. Vijayalayan [email protected] [email protected] Delhi Bangalore Control Design Application Engineering MathWorks India April 23 Bangalore

Transcript of Modeling and Validation of a Variable Frequency Drive-Based … · [email protected]...

Page 1: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

1© 2015 The MathWorks, Inc.

Modeling and Validation of a Variable

Frequency Drive-Based HVAC System

Dhirendra Singh R. Vijayalayan

[email protected] [email protected]

Delhi Bangalore

Control Design Application Engineering

MathWorks India

April 23

Bangalore

Page 2: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

2

A Quick overview of the problem

Mechanical/Thermal

Engineer

Quickly develop the

complete HVAC System

Gain confidence that the

system works fine

Arrive at an optimal design

of system

Electrical/Controls

Engineer

Quickly develop suitable

electric drive for the HVAC

system

Study the behavior of the

system

Page 3: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

3

Challenges with Traditional Development Process

Code

Test

Hardware

Test

Complete

Integration

DeployConcept

System

Design

Component

Design

Require-

ments

Implementation

Cannot validate

design

against requirements

Cannot test or

optimize

fully integrated design

Can only find

problems

using hardware

prototypes

Control

Electrical, Hydraulic

Mechanical

Page 4: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

4

Code

Test

Hardware

Test

Complete

Integration

DeployConcept

System

Design

Component

Design

Require-

ments

Implementation

Cannot validate design

against requirements

Cannot test or optimize

fully integrated design

Can only find problems

using hardware

prototypes

Optimize design in a

single

simulation environment

Detect errors right away

with continuous

verification

Lower costs

using HIL tests

Control

Electrical, Hydraulic

Mechanical

Benefits of Model-Based Design Process

Page 5: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

5

What are we doing today?

Page 6: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

6

Key challenges in designing a multi-domain

system

Understanding the interaction of different systems

Having a single environment for modeling and

simulating a multi-domain system

Optimizing the system design

Reducing the time spent in system analysis and report

generation

Re-using the models for real-time testing

Page 7: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

7

Agenda

Introduction to Physical Modeling

Modeling Electrical Systems

Modeling Thermal Systems

Defining new physical domains and creating new components

Logging and exploring simulation data

Performing design studies and optimizations

Page 8: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

8

Agenda

Introduction to Physical Modeling

Modeling Electrical Systems

Modeling Thermal Systems

Defining new physical domains and creating new components

Logging and exploring simulation data

Performing design studies and optimizations

Page 9: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

9

Data-Driven ModelingFirst Principles Modeling

Neural Networks

Physical NetworksSystem

Identification

Parameter Tuning

Programming

Block Diagram

Modeling Language

Symbolic Methods

Modeling Approaches

Modeling Physical Systems

With MathWorks Products

Statistical Methods

(MATLAB, C)

(Simulink)

(Simscape language)

(Symbolic MathToolbox)

(Simscape and other

Physical Modeling

products)

(Neural NetworkToolbox)

(Model BasedCalibration Toolbox)

(Simulink Design Optimization)

(System Identification Toolbox)

Page 10: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

10

Introduction to Physical Modeling

DC MotorR

L

Kt,Ke

J,b

i

dt

diLRiKv m

windwindme

dt

dJDiKT

mt

θ

Page 11: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

11

Let’s build DC motor model from scratch using Simscape

Page 12: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

12

Introduction to Physical Modeling

DC Motor

Simscape model advantages

– Easier to read than equations

– Quicker to create

– More intuitive – easier to explain to other engineers

R

L

Kt,Ke

J,b

i

dt

diLRiKv m

windwindme

dt

dJDiKT

mt

θ

Page 13: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

13

Agenda

Introduction to Physical Modeling

Modeling Electrical Systems

Modeling Thermal Systems

Defining new physical domains and creating new components

Logging and exploring simulation data

Performing design studies and optimizations

Page 14: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

14

Modeling 3-Phase Electrical Systems

Problem: Build a modular,

intuitive model of a 3-phase electric

motor without deriving equations.

Solution: Use SimPowerSystems

to model the device.

Model:

a

b

c

Page 15: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

15

Model Electric Drives

Combine power electronics,

machine, and control algorithm

– GUI to assign key parameters

– Common strategies for

speed and torque control

– Adjustable level of fidelity

(detailed, averaged)

Common machine types can be

used as motors or generators:

– Permanent magnet

– Synchronous, asynchronous

– Induction

– Single phase or 3-phase

Page 16: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

16

Calculate Model Parameter Values

Asynchronous or PMSM Models

Calculates

parameters for

equivalent circuit

directly from

data sheet values

– Plot torque speed

relationship

– Automatically update

machine model

Data Values

Line to Line RMS Voltage 400 V

Nominal Frequency 50 Hz

Full Load Current 194 A

Full Load Torque 352 N.m

Synchronous Speed 2982 rpm

Compute Block Parameters Apply to Selected Block

Page 17: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

17

Completed Model of Variable Frequency Drive

Page 18: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

18

What’s Next?

Page 19: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

19

Agenda

Introduction to Physical Modeling

Modeling Electrical Systems

Modeling Thermal Systems

Defining new physical domains and creating new

components

Logging and exploring simulation data

Performing design studies and optimizations

Page 20: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

20

HVAC Component

Page 21: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

21

Creating HVAC Domain using Simscape Language

Page 22: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

22

Agenda

Introduction to Physical Modeling

Modeling Electrical Systems

Modeling Thermal Systems

Defining new physical domains and creating new components

Logging and exploring simulation data

Performing design studies and optimizations

Page 23: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

23

Logging and Exploring Simulation Data

Page 24: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

24

Agenda

Introduction to Physical Modeling

Modeling Electrical Systems

Modeling Thermal Systems

Defining new physical domains and creating new components

Logging and exploring simulation data

Performing design studies and optimizations

Page 25: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

25

Performing design studies and optimizations

Speed

100

Problem: Design and tune the

Reference speed in this system to

meet condenser pressure requirements

Solution: Use Simulink Design

Optimization to design, tune,

and test the system

Speed

602

Speed

2514

Speed

3555

Page 26: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

26

Key challenges in designing a multi-domain

system

Understanding the interaction of

different systems

Having a single environment for

modeling and simulating a multi-

domain system

Optimizing the system design

Reducing the time spent in system

analysis and report generation

Re-using the models for real-time

testing

Page 27: Modeling and Validation of a Variable Frequency Drive-Based … · dhirendra.singh@mathworks.in vijayalayan.r@mathworks.in Delhi Bangalore Control Design Application Engineering MathWorks

27

Thank You