Other notes in this series from Kevin Kircher’s Distributed Energy Resources class are here.
Summary
A lot of derivations for one lecture. Especially given how comparatively light on content the first two lectures were.
See derivations for solutions to general first-order linear scalar ordinary differential equations (ODEs). I have not missed and mostly wrote this out to keep me honest in working through the derivations. Probably not a great use of time.
- General first order linear scalar ODE
- If is a constant, then:
- If is constant and , then:
Then we derived a simple model of stored chemical energy in a battery:
-
Introduced the concept of (h), the self-dissipation time constant - characterises the rate at which a battery loses its stored energy due to internal chemical reactions, even when it’s not connected to an external load. This phenomenon is commonly known as self-discharge. It is the time it takes for the battery’s charge (or voltage, or capacity) to drop to approximately of its initial value due to self-discharge alone.
-
Introduced the concept of (kW), the chemical charging power (or discharging if ), the rate at which electrical energy is converted into chemical potential energy within the battery during the charging process. It’s the portion of the input electrical power that is successfully converted and stored as chemical energy within the battery.
-
If we assume and are constant, then we get
-
General first order vector scalar ODE
- where and the variable is
- has no analytical solution for general time-varying
- But for constant A, the IVP has a solution
-
If is invertible and is constant, then**
-
If and are constant, then
Notes
Homework
Exercise #1
- Consider the IVP (initial value problem)
- write down and
- find
- From :
- find
- write down the solution
Exercise #2
Prove the linear vector ODE IVP solution:
- where
- multiplying by any positive
- recall that for and ,
- Guess
- So taking
- A quick refresh on vectors and matrices.
- A chance to practice some .
- An nth-order ODE is linear if it can be written as for some functions
- So
- is first-order linear, but would be non-linear if it was . The thing that matters for linearity is whether there are non-linear functions of
- is second-order non-linear because the RHS is not a linear function of
- is third-order linear
- ==Derive the general solution to the general first-order linear scalar ODE:==
- Let denote an antiderivative of
- Guess ⇒ this satisfies as always positive since
- But does it work?
- with
- General first order linear scalar ODE
- If is a constant, then:
- If is constant and , then:
- Simple model of a battery is where:
- (kWh) is the stored chemical energy
- (h) is the self-dissipation time constant - characterises the rate at which a battery loses its stored energy due to internal chemical reactions, even when it’s not connected to an external load. This phenomenon is commonly known as self-discharge. We will see shortly that this is the time it takes for the battery’s charge (or voltage, or capacity) to drop to approximately of its initial value due to self-discharge alone.
- (kW) is the chemical charging power (or discharging if )
- This is a first order linear ODE with
- (constant, so we can use one of the simplified solutions.
- If is constant, we get
- As approaches a steady final state
- Can also think of the state of a battery at any time as a mixture of initial and final states:
- any mixture of quantities and can be written as where
- since is positive, for all
- so with constant the battery IVP solution is
- This is a mixture of and weighted by e^{-(t-t^{init})/\tau}$
- Define the normalised gap between and apparently this simplifies to so after time constants (), % remaining
- Linear vector ODEs
A first-order linear vector ODE has the form where and the variable is
So very like a first-order linear scalar ODE, but replacing with a square matrix of functions, and with a column vectors of functions. It’s a generalisation of the scalar case.
Writing it out
Consider the nth-order linear scalar ODE with time arguments suppressed and notation
define a new variable by
then the first derivative of is
This is a first-order linear vector ODE of the form
The first-order linear vector ODE IVP has no analytical solution for general time-varying
But for constant A, the IVP has a solution where is the matrix exponential of
- etc
why define a matrix exponential? Because for any ie:
(where and are )
is always invertible and :
if is invertible, then
If is invertible and is constant, then
If and are constant, then
