Sie sind auf Seite 1von 43

Modeling Feedback Control of

Thermal Systems in COMSOL

Lexi Carver

Jon Ebert, PhD

Technical Marketing
Engineer
COMSOL

Director
SC SOLUTIONS

Copyright 2015 COMSOL. COMSOL, COMSOL Multiphysics, Capture the Concept, COMSOL
Desktop, COMSOL Server, and LiveLink are either registered trademarks or trademarks of
COMSOL AB. All other trademarks are the property of their respective owners, and COMSOL AB
and its subsidiaries and products are not affiliated with, endorsed by, sponsored by, or supported
by those trademark owners. For a list of such trademark owners, see
www.comsol.com/trademarks

Agenda
Introduction to COMSOL
Multiphysics software
Simulating Feedback Control
of Thermal Systems
Demo: Rapid Thermal
Processing (RTP) System
Q&A
How To
Try COMSOL Multiphysics
Contact Us

Prestressed plated metal


Prestressed
platedofmetal
layers in a model
a
layers
in
a
model of a
micromirror
micromirror

Why Simulate?
Conception and understanding
Enables innovation

Design and optimization


Achieve the highest possible
performance

Testing and verification


Virtual testing is much faster
than testing physical prototypes

Displacement induced by thermal strains


Displacement
induced in
byathermal
strains
and applied pressure
model of
a
andcapacitive
applied pressure
in
a
model
pressure sensor of a
capacitive pressure sensor

Simulating with COMSOL


Multiphysics
Electrical, mechanical,
fluid, and chemical
simulations
Multiphysics include and
couple all relevant
physical effects
Single physics in one
integrated environment
Cross-disciplinary product
development

ACOMSOL
Complete Simulation Environment
Desktop
Straightforward
to use, the
Desktop gives
insight and full
control over the
modeling
process
Model Builder
Provides instant
access to any of
the model
settings
CAD/Geometry
Materials
Physics
Mesh
Solvers
Results

Graphics Window
Ultrafast graphic presentation,
stunning visualization

Product Suite COMSOL 5.1

Application Design Tools


Application
Builder
Provides all the
tools needed to
build and run
simulation apps
Form Editor
Method Editor

Simulation Application
Any COMSOL model can be turned
into an app with its own interface
using the tools provided in the
Application Builder

Run Applications
COMSOL Server
Its the engine for
running COMSOL
apps and the hub
for controlling
their deployment,
distribution, and
use

Simulation Apps
They can be run in a COMSOL
Client for Windows and major
web browsers
Microsoft and Windows are either registered trademarks
or trademarks of Microsoft Corporation in the United
States and/or other countries.

Feedback Control of Thermal


Systems
in COMSOL
Jon Ebert
SC Solutions, Inc.
Email: jle@scsolutions.com

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

Overview
Feedback control of temperature is important
in many manufacturing processes.
At SC we have developed methods for the
model-based control of systems where we
use physics-based models to develop highperformance temperature control.
This presentation will give an example of one
method for designing a simple PID feedback
controller (Q-Design).
We will present a simple example of feedback
control within a COMSOL model.
A demo with 5-zone temperature control of a
Rapid Thermal Processing (RTP) system will
August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

10

The Closed-Loop System


C

For a scalar system

Closed-Loop Response:

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

Closed-Loop
Transfer
Function

11

Proportional + Integral + Derivative


Control (PID)

This is the most common type of feedback


controller
The gains, Kp, Ki, and Kd (and d) must be
selected by the engineer To limit high-frequency
There are systematic

noise amplification, we
methods
usually low-pass filter the
error driving the derivative
control:

Here well outline Q-design


August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

12

Model-Based Control (Q-Design)


Incorporate a mathematical model of the
system directly into the controller.
Often referred to as Q-parameterization or
Youla parameterization.
For stable P, ALL
stable controllers
can be expressed
in this form!

ences for Q-parameterization Control Design

Control design
becomes choice
of transfer
function Q
August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

13

A Model-Based Design (Q-Design)


Closed-Loop Response:

If we select T and we know P, we can calculate C

For scalar (single input, single output)

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

14

Selecting T (Closed-Loop Transfer


Function)

Or, in time domain

Or, in time domain

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

15

Solving for Model-Based Controller


Gains
Assume the system (P) is a second
order system
wher
and select
e

Resulting
controller:
Our PID
form:

It turns out that if you


pick T as we have done
for the second order P,
the controller is in the
form of a PID controller.

Tuning PID

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

16

PID Example (=1, =1)

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

17

PID Example (=2, =1)

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

18

Implementing PID in COMSOL (An


Example)
One dimensional heat transfer in a plate

Measure y on this
surface

Governing Equations:
Heat surface at x=0
and measure
temperature at
surface x=L (y=T2)

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

19

Build the Model in COMSOL

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

20

Model Parameters

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

21

Apply Boundary Conditions

Control input

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

22

Create Mesh and Run the Simulation


This is not a second order system, but a
much higher order PDE.
When we discretize the PDE using finite
elements, we create a system of ODEs.
For the mesh used here, there are 101
differential equations, or degrees of
freedom (DOF).
Still, we will look for a PID controller
based on a second order system.

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

23

Open-Loop Response

We step the input flux from 0 to qmax*uctrl

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

24

Measure Model Response Properties


from OL Step

Time where
y crosses
63% of final
value

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

25

Finding Approximate Time Constants

Measure the rate of change in y.


Maximum is approximately 18[K/s]

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

26

Approximate 2nd Order Model


Parameters

Approximate 2nd order model parameters for plate model:

We can use these to compute controller


parameters.
We also need to pick the closed-loop
speed, , and damping, .

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

27

Implementing PID in COMSOL


Proportional control:

Integral control:

Derivative control:

We solve these differential equations in COMSOL.

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

28

Implementing PID in COMSOL


Add Global ODEs and DAEs to Model

Enter the Equations

State variable
August 2015

Equation

Copyright 2015, SC Solutions, Inc. All Rights Reserved

29

Implementing PID in COMSOL


Define T2 as the plate temperature at x=L

Define control variables

The control:
limit to 0<= uctrl
<=1
August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

30

Define the Reference


Define the
reference using
an interpolation
table.

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

31

Controller Parameters
Tuning PID

August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

32

Closed-Loop Response
Actuator face

Works pretty well.


ref
Sensor

August 2015

The open-loop response took


almost 100s to reach the
setpoint, the closed loop gets
there in 12s.

Copyright 2015, SC Solutions, Inc. All Rights Reserved

33

More Advanced Model-based Control


C

(MIMO) Multi-input (u)/Multi-output (y) require


more complicated methods.
Each operation is a matrix operation

The design principle is the same, but the difficulty


of control design is balancing the tradeoffs
between bandwidth, noise, and actuator saturation.
August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

34

Summary
A methodology for tuning a PID controller
has been presented.
A model for the system is built and an
approximate second order model is assumed
for choosing the PID parameters.
A desired closed-loop transfer function (T) is
selected. Here we selected it so the resulting
controller has the same form as the PID.
The PID gains were derived that give the
desired closed-loop response.
An example of implementing PID in COMSOL
was presented.
August 2015

Copyright 2015, SC Solutions, Inc. All Rights Reserved

35

Poll Question
How do you model your feedback
control law in your application?
In the same software that I use for studying
thermal systems.
In a different software that I interface.
In COMSOL using the Global ODEs and DAEs
interface.
In COMSOL with LiveLink for MATLAB.
I haven't done it yet and want to learn how.

Demo
Closed-Loop Temperature Control of a Rapid
Thermal Processing (RTP) System
Rapid Thermal Processor (RTP)

1000C

Lamps (5)

600C

Temperat
ure
reference

Feedback
Controlle
r

Lamp
power
comman
ds

Wafer (200mm dia.)

Cold walls

Wafer
temperatu
re sensors

Conclusion
A model-based method of tuning a PID
controller has been presented (Q-Design).
For many thermal systems an open-loop step
response can be used to characterize
parameters (time-constants and gain) needed
to tune the PID controller.
COMSOL provides a simple ODE interface that
allows quick implementation of PID control.

Q&A Session

Product Suite COMSOL 5.1

Try COMSOL Multiphysics


North America

Europe

Mansfield, MA

Stuttgart, Germany

San Antonio, TX

Edinburgh, United Kingdom

Carlsbad, CA

Zoetermeer, Netherlands

Pittsburgh, PA

Zrich, Switzerland

Boulder, CO

Helsinki, Finland

Danbury, CT
Beaverton, OR
Tampa, FL
Miami, FL

Free hands-on workshops


REGISTER TODAY

www.comsol.com/events

Contact Us
Questions?
www.comsol.com/conta
ct

www.comsol.com

User Stories
Videos
Application Gallery
Discussion Forum
Blog
Product News

Das könnte Ihnen auch gefallen