The present invention relates to the determination of state of charge of batteries. The invention more particularly relates to a method, device and computer program product for determining the state of charge of at least one battery as well as to a power compensator for an electric power transmission line including such a device.
Batteries are used in many applications. One such application is related to power compensation of power lines.
From U.S. Pat. No. 6,747,370 (Abe) a power compensation system using a high temperature secondary battery is previously known. The objective of the compensation system is to provide an economical, high-temperature secondary battery based energy storage, which has a peak shaving function, a load levelling function and a quality stabilizing function. The known system comprises an electric power supply system, an electric load and an electric energy storage system including a high temperature secondary battery and a power conversion system. The battery is a sodium sulphur battery.
The system is arranged at an end of an electric power line. The load is a factory which under normal operating condition is provided with electric power supply from the power line. In case of power supply failure a high speed switch disconnects the power line and electric power is instead provided from the secondary battery. At the same time a back up generator is started. The known system having a sodium sulphur battery indicates that the power compensating system provides low power during a long time.
In one mode of operation the battery is providing extra energy to the factory during day time while being recharged during night. In order to supply a factory with uninterruptible power there are arranged ten parallel connected battery units of 1280 V, each having a converter of 500 kW. In a further embodiment ten battery units are parallel connected in series with a 5 MW converter. In this embodiment a group of spare batteries is arranged for use with the high temperature battery circuit. In the event of a battery unit having a failure the failed unit is disconnected and the spare group is connected in parallel with the circuit.
From U.S. Pat. No. 6,924,623 (Nakamura) a method and device for judging the condition of a secondary battery is previously known. The objective of the device and method is to provide the judgment more quickly and in more detail as compared with conventional methods and devices. The known method includes the steps of varying the charging current and calculating the quantity of electricity. The disclosed method is preferably directed to finding out the grade of degradation.
In these types of systems it is important to know the state of charge (SOC) of a battery in order to be able to better decide when and how the battery is to be connected to such a power system.
This state of charge is not so easy to determine because the various conditions of the battery that are decisive for the state of charge are internal and cannot readily be measured.
U.S. Pat. No. 6,534,954 describes the use of a Kalman filter or an extended Kalman filter that is used for determining the state of charge of a battery. Using a Kalman filter is a good way to determine the state of charge. The state of charge is according to U.S. Pat. No. 6,534,954 one of the internal states of the filter.
There is room for improvement in the determination of the state of charge of a battery using Kalman filters.
The present invention is directed towards providing an improved determination of the state of charge of a battery using a Kalman filter.
One objective of the present invention is to provide a method for determining the state of charge of at least one battery that gives better state of charge estimates.
This objective is according to a first aspect of the present invention achieved through a method for determining the state of charge of at least one battery comprising the steps of:
making an internal states prediction of said battery based on a model for the battery, where each internal state is related to the charge distribution in the battery, adjusting said internal states prediction with measured properties of the battery, applying said adjusted internal states prediction in the making of at least one following internal state prediction, and
providing the estimated state of charge as a function of the predicted internal states.
Another objective of the present invention is to provide a device for determining the state of charge of at least one battery that provides better state of charge estimates.
This objective is according to a second aspect of the present invention achieved through a device for determining the state of charge of at least one battery comprising,
an internal states prediction unit arranged to
a state of charge determining unit arranged to provide the estimated state of charge as a function of the predicted internal states.
Another objective of the present invention is to provide a power compensator, which includes a charge determination device that provides better state of charge estimates for at least one battery.
This objective is according to a third aspect of the present invention achieved through a power compensator for an electric power transmission line comprising:
Another objective of the present invention is to provide a computer program product for determining the state of charge of at least one battery that enables the provision of better state of charge estimates.
This objective is according to a fourth aspect of the present invention achieved through a computer program product for determining the state of charge of at least one battery,
comprising computer program code to make a device for determining the state of charge of the battery perform when said code is loaded into said device:
make an internal states prediction of said battery based on a model for the battery,
where each internal state is related to the charge distribution in the battery,
adjust said internal states prediction with measured properties of the battery,
apply said adjusted internal states prediction in the making of at least one following internal state prediction, and
provide the estimated state of charge as a function of the predicted internal states.
The present invention has the advantage of providing an improved determination of the state of charge of a battery, since more than one state is considered. This means that a more reliable decision can be taken on how to use the battery than what has been possible previously.
It should be emphasized that the term “comprises/comprising” when used in this specification is taken to specify the presence of stated features, integers, steps or components, but does not preclude the presence or addition of one or more other features, integers, steps, components or groups thereof.
The present invention will now be described in more detail in relation to the enclosed drawings, in which:
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular architectures, interfaces, techniques, etc. in order to provide a thorough understanding of the present invention. However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well known devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The energy storage device may include a plurality of series connected batteries 20A, 20B, 20C and 20D. It may also include a number of strings of such series connected batteries, where these strings are connected in parallel with each other. In the embodiment shown in
The energy storage device 20 may comprise high energy, high temperature batteries containing sodium/metal chloride battery cells having an operating temperature in the range of 270-340° C. A sodium/metal chloride battery cell comprises an electrolyte contained in a thin barrier of a ceramic material. A cross-section through a model of such a cylindrically shaped battery 20A is shown in
This battery 20A has originally been fully charged and has at some point in time been discharged up to the position of the first charge front x1. The battery 20A has also been previously charged after this discharging. However, the charging was in this exemplifying case not complete but only made up to the position x2 of the second charge front. In the example of FIG. 3, the battery is in the process of being discharged. Thus here the third charge front associated with the fourth area is moving radially inwards (as is indicated by arrows), and the third charge front is at a certain instant in time located at the position x3. If this discharging were to end and be replaced by a charging, a new wave front would be created at the outer cell boundary OCB that would then move inwards as long as charging took place. In this way there may be provided several areas of charged and uncharged electrolyte. This means that whenever a change is made between charging and discharging a new charge front is created. The present invention uses this model of the battery 20A to determine the state of charge (SOC). In this way the model therefore considers the charging history.
Some more details of the power compensator are shown in
The state estimating unit 42 provides a Kalman filter. According to the invention a number of estimated internal states of a battery model are used in this Kalman filter, where each state corresponds to a charge front as depicted in
The model of the battery shown in
and output equations
u(t)=h(x(t),i(t))
SOC=g(x(t),i(t))
Here a certain state xi (t) is the radial position of a charge front in dependence of time t, i(t) the current input to or output from the battery in dependence of time t, u(t) the voltage of the battery in dependence of time t, x1 is the position of the innermost charge front, while ƒ, h and g are functions, where the function ƒ is a function that determines the derivate of the state xn based on the state x and current i, h is a function that determines the voltage u based on internal state x and current i and g is a function that determines state of charge SOC based on internal state x and current i. There are thus here n states. As can be seen the state of charge is thus a function that depends on the various states x as is the voltage u.
The functions ƒ, h and g are assumed to be nonlinear but differentiable It should here also be realised that the model described is simplified and that a more complex model can readily be made, for instance one which considers also temperature as well where more charge fronts than the highest-order front have a non-zero derivative.
Discretizing the model leads to a discrete-time model.
where xi (k) is again a state, while k is an instant in time.
Taylor series expansion of the last state equation about an operating point x*(k), i*(k) and u*(k), leads to
Δxn(k+1)=a1Δx1(k)+a2Δx2(k)+ . . . +anΔxn(k)+bΔi(k)
Δu(k)=c1Δx1(k)+ . . . +cnΔxn(k)+dΔi(k)
where,
Δxi(k)=xi(k)−xi*(k),Δi(k)=i(k)−i*(k) and Δu(k)=u(k)−u*(k)
Introducing the state vector
gives the following linearised discrete-time model”
Process and measurement noise is then introduced through
u(k)=h(x(k),i(k))+v(k)
where v(k) is Gaussian white noise with covariance R, i.e.
R=Ev
2(k)
Under the assumption that there is only process noise (or modelling error) added to the highest-order state equation,
x
n(k+1)=ƒd(x(k),i(k))+w(k)
where again the noise w(k) is white and Gaussian with covariance q. Hence the covariance matrix representing all noise contributions to x(k+1) is given by
Since the model is non-linear a so-called extended Kalman filter (EKF) should be invoked.
The EKF equations are here:
{circumflex over (x)}(k+1|k)=fd({circumflex over (x)}(k|k),i(k))
Σ(k+1|k)=AΣ(k|k)AT+Q
{circumflex over (x)}(k|k)={circumflex over (x)}(k|k−1)+K(k)(u(k)−h({circumflex over (x)}(k|k−1),i(k)))
Σ(k|k)=(I−K(k)C)Σ(k|k−1)(I−K(k)C)T+K(k)RKT(k)
where {circumflex over (x)}(k+1|k) is the predicted estimate of x(k+1) (using data only until time k) and
Σ(k+1|k) is the covariance matrix of {circumflex over (x)}(k+1|k)
{circumflex over (x)}(k|k) is the filtered estimate of x(k) (after measurement update) and
Σ(k|k), the covariance matrix of {circumflex over (x)}(k|k)
Here the Kalman gain is given by
The filter is always initialised when the battery is fully charged and a discharge is started. There is therefore only one state which is known to be exactly at the outer radius of the battery r, i.e.,
{circumflex over (x)}(0|0)=r
Since it is assumed that r is known without error, the initial covariance is zero, i.e.
Σ(0|0)=0
The applying of this type of filtering will now be described with reference being made to
Thus what has been described so far is normal Kalman filtering. However, according to the present invention a number of internal states are determined and corrected based on measured properties. According to the present invention, there are thus several internal states that are together used for estimating the state of charge.
According to the present invention the number of states may furthermore vary. This means that the model is time-varying, not in the numerical values of parameters but in the size of the matrices. The internal states prediction unit 42, receives current values of the battery when performing predictions. If the current is positive a charging is made, while if the current is negative a discharging is made. As mentioned above a change of current direction gives rise to a new charge front at the battery outer cell boundary BOC. Therefore if a change in the current direction is detected, step 54, a new charge front, i.e. a new state is created, step 56. This state is thus the highest order state, which then changes based on time and corresponds to an inward movement towards the core of the battery. The formerly highest order state will therefore now be a state the derivate of which is zero, while the new highest order state caused by the change of direction will be estimated starting from its original position at the outer radius of the battery. This also means that the above mentioned vectors and matrices will get larger in order to reflect this change. If however no change of direction is detected, step 54, the movement of the outermost front or state is compared with the neighbouring front of the neighbouring lower order state and if these become equal both these states are removed from the state determination, step 58. They thus cancel out each other. If the battery of
In the Kalman filter these two events should be treated as
However, since when dealing with sampled data there is an uncertainty as to when exactly the current changed its sign, it may make sense not to initialize the extra elements to zero. At least the n:th diagonal element should probably be given an uncertainty that corresponds to a fraction of the other diagonal elements of Σ(k|k).Furthermore, one may want to low-pass filter i(k) or introduce some hysteresis in the logic for the sign shift in order not to open up too many new states if the current signal is noisy.
In this way an improved determination of the state of charge is obtained, since more than one state is considered. The determination furthermore considers the charging history, since it considers the amount of charging and discharging that has been made. This means that a more reliable decision can be taken on how to use the battery than was possible previously. This may be vital in deciding if to use battery power in power line applications.
The charge control device according to the present invention may be implemented through one or more processors together with computer program code for performing its functions. The program code mentioned above may also be provided as a computer program product, for instance in the form of one or more data carriers carrying computer program code for performing the functionality of the present invention when being loaded into the translating device. One such carrier 60, in the form of a CD ROM disc is generally outlined in
While the invention has been described in connection with what is presently considered to be most practical and preferred embodiments, it is to be understood that the invention is not to be limited to the disclosed embodiments, but on the contrary, is intended to cover various modifications and equivalent arrangements. It is for instance possible to leave out noise and covariance from the determinations in the state determination unit. The internal states used do not have to be limited to the position of a charge front, they can for instance as an alternative be related to the extension of the same amount of charge in a battery. They can in fact be any internal state of a battery that is related to the charge distribution. It is of course also possible to have temperature as a variable to consider in the model. There may also be more than one set of charge fronts; one per chemical component. It is thus possible to replace the above described charge fronts with a set of charge fronts, where each such set is associated with a different chemical component of the battery. Here the cancellation of charge fronts is done per chemical component. This means that the number of states per chemical component or set may vary in the battery. This allows an even more reliable state of charge to be determined for the battery. The states of one set may furthermore interact with states of another set. This also means that in such a case, also inner states may have positions that vary with time and not only the outer states of the different sets closest to the outer cell boundary that was described above. The invention is furthermore not limited to supply of power to a power line, but can be used in any application where the state of charge is of interest. Therefore the present invention is only to be limited by the following claims.
The present application is a continuation of pending International patent application PCT/EP2007/005834 filed on Jul. 2, 2007 which designates the United States, the content of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/EP2007/005834 | Jul 2007 | US |
Child | 12650744 | US |