Lecture 2 Flashcards

1
Q

model vs simulation

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

goals of simulation

A
  1. identify and compare system designs and their performance
  2. obtain insight into the behaviour of a system or certain aspects of it
  3. simulator development
  4. understand how a system will behave in different situations and why
  5. control development - determine what inputs are needed to yield a desired behaviour
  6. optimization - predict the system’s behaviour for each possible variation of design choices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

control development

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

optimization

A

predict the system’s behaviour for each possible variation of design choices

determine trade-off winners

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

simulation verification techniques

A
  1. model-in-the-loop (MIL) (most abstract)
  2. simulation-in-the-loop (SIL)
  3. processor-in-the-loop (PIL)
  4. hardware-in-the-loop (HIP)
  5. physical system tests (most physical)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

model-in-the-loop (MIL)

A

does the controller logic work?

testing on simulated system model, recording and saving the IO-behaviour of the model response

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

simulation-in-the-loop (SIL)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

processor-in-the-loop (PIL)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

hardware-in-the-loop

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

physical system test

A

test controller directly on the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

logic controller

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

algebraic system vs dynamic system

A

algebraic system: current output depends on current input only

dynamic system: current output depends on current and previous input values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Laplace transformation

A

tool for analysing linear dynamic system

tells which frequencies and exponentials are present in a function

can simplify ODEs into algebraic equations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

transfer function

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

elements of transfer function

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

stable system

A

all poles of the transfer function are in the left half-plane

17
Q

state-space model

A

representation of the dynamics of an n-th order system as a set of first-order differential state equations (and algebraic output equations)

describes temporal change (first-order time derivative) of the state variable as a function of current state variables and current inputs

x - state vector
u - input vector
y - output vector

18
Q

equations of motion (EOM)

A

x’(t) = f(x,u)

states x: position, attitude, linear velocities, angular velocities

inputs u

19
Q

LTI system

A

both linear (homogenity and superposition holds) and time-invariant system

has A, B, C, D matrices

20
Q

linearisation

A

usign e.g. Taylor series

allows us to obtain linear approximations of nonlinear models around specific conditions

21
Q

eigenvalues and eigenvectors

A

eigenvalues show how the system responds to a disturbance over time

eigenvectors show to what extent is each state involved in each mode

22
Q

stability assessment of LTI

A

stable if real part of eigenvalue is below zero

unstable if real part of eigenvalue is over zero

undefined if real part of eigenvalue is zero

23
Q

static stability

A

initial tendency of a body to return to its original position when disturbed

a statically stable system can be dynamically unstable

a statically unstable system cannot be dynamically stable

24
Q

dynamic stability

A

response of a body to a disturbance over time (frequency, damping, etc.)

a statically stable system can be dynamically unstable

a statically unstable system cannot be dynamically stable

25
Q

global vs linear model

A

global: model that is valid across a whole envelope (all operating conditions)

linear: captures only the behaviour of a nonlinear system in a specific operating condition

26
Q

discretisation

A

contuniuous -> discrete

27
Q

analog-to-digital converters (ADC)

A

system that converts an analog signal, such as a sound picked up by a microphone or light entering a digital camera, into a digital signal

28
Q

bandwidth

A

difference between highest and lowest frequencies

29
Q

Nyquist theorem

A

to reproduce a signal without any distortion or loss of data, the sampling frequency must be greater than twice the maximum signal frequency or twice the bandwidth

30
Q

finite-difference (FD) methods

A
  1. forward Euler: linear combination of values f after the considered point
  2. central scheme: linear combination of values f before and after the considered point
  3. backward Euler: linear combination of values f before the considered point
31
Q

numerical methods for solving linear ODEs

A
  1. single step method
  2. multi step method
  3. forward / explicit Euler
  4. backward / implicit Euler
  5. 2nd-order Runge-Kutta
  6. 4th-order Runge-Kutta
32
Q

properties of numerical methods

A
  1. consistency error of single step approaches
  2. convergence
  3. numerical stability
33
Q

stiffness

A

ODE is stiff if two or more significantly different time scales occur in the system

differential equation for which certain numerical methods for solving the equation are numerically unstable, unless the step size is taken to be extremely small

it has proven difficult to formulate a precise definition of stiffness, but the main idea is that the equation includes some terms that can lead to rapid variation in the solution

34
Q

well-posed numerical problem

A
  1. solution u exists
  2. solution u is unique
  3. solution u is stable
35
Q

step size

A

smaller step size: more accurate, slower

bigger step size: faster, less accurate, if too big then solution might become unstable

36
Q

computational step solvers

A

variable step solvers: can modify step size during simulation depending on the integration error

fixed step solvers: maintain the same step size throughout simulation

37
Q

simulation solvers

A

Simulink, Gazebo, Ansys, Microsoft Flight Simulator