Lecture 2 Flashcards
model vs simulation
model: simplified representation of a physical system
simulation: repeated solving (computation) of a model (equations) in order to reproduce the behaviour of the modeled system
goals of simulation
- identify and compare system designs and their performance
- obtain insight into the behaviour of a system or certain aspects of it
- simulator development
- understand how a system will behave in different situations and why
- control development - determine what inputs are needed to yield a desired behaviour
- optimization - predict the system’s behaviour for each possible variation of design choices
control development
determine what inputs are needed to yield a desired behaviour
gain tuning: most widely used controllers are linear (otherwise they’re expensive)
preliminary testing
model-based control
optimization
predict the system’s behaviour for each possible variation of design choices
determine trade-off winners
simulation verification techniques
- model-in-the-loop (MIL) (most abstract)
- simulation-in-the-loop (SIL)
- processor-in-the-loop (PIL)
- hardware-in-the-loop (HIP)
- physical system tests (most physical)
model-in-the-loop (MIL)
does the controller logic work?
testing on simulated system model, recording and saving the IO-behaviour of the model response
simulation-in-the-loop (SIL)
generating code only from the controller model and replacing the controller block with this code
gives an idea whether the control logic (the controller model) can be converted to code and if its hardware implementable
processor-in-the-loop (PIL)
put controller code on embedded processor and run closed-loop simulation again on simulation plant
determine if the processor is able to run the developed controller logic
hardware-in-the-loop
for testing of behaviour which cannot be captured in simulation
run simulation model on real-time system with real physical connections to embedded processor
do problems arise due to communication and IO interfaces
physical system test
test controller directly on the system
logic controller
industrial computer that has been ruggedized (adapted to harsh environmental conditions) and adapted for the control of manufacturing processes, such as assembly lines, machines, robotic devices, or any activity that requires high reliability, ease of programming, and process fault diagnosis
algebraic system vs dynamic system
algebraic system: current output depends on current input only
dynamic system: current output depends on current and previous input values
Laplace transformation
tool for analysing linear dynamic system
tells which frequencies and exponentials are present in a function
can simplify ODEs into algebraic equations
transfer function
ratio of Laplace transform of output and Laplace transform of input, when initial conditions are assumed to be zero
relates input and output with an algebraic expression
limitations: only linear time-invariant systems and only single-input single-output (SISO) systems
elements of transfer function
poles: values of s for which G(s) goes to infinity
zaros: values of s for which G(s) goes to zero
gain: steady-state value of G(s)