2 D Model
2 D Model
2 D Model
net/publication/322499834
CITATIONS READS
22 992
7 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Tilman Barz on 15 January 2018.
Stefan Körkel
OTH Ostbayerische Technische Hochschule Regensburg, Faculty of Computer Science and
Mathematics, Postfach 120327, 93025 Regensburg, Germany
Abstract
A nonlinear state observer is designed for a thermal energy storage with
solid/liquid phase change material (PCM). Using a physical 2D dynamic model,
the observer reconstructs transient spatial temperature fields inside the storage
and estimates the stored energy and the state of charge. The observer has been
successfully tested with a lab-scale latent heat storage with a single pass tube
bundle and the phase change material located in a shell around each tube. It
turns out that the observer robustly tracks the real process data with as few as
four internal PCM temperature sensors.
Keywords: latent heat thermal energy storage (LHTES), state of charge
(SOC), reduced model, Orthogonal Collocation, heat conduction in cylindrical
shell, nonlinear state observer, Kalman filter
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
1. Introduction
Control of thermal systems with storages: Because systems that use energy stor-
ages and the storage itself are inherently transient, effective operating strategies
for dynamic heat integration are needed, such as optimal thermal regulation
functions under transient operating conditions [9, 10]. Model based techniques
and advanced control (such as model predictive control) of TES can significantly
improve the management of dynamic power demands and intensify intermittent
energy services, e.g. in solar thermal systems, district energy systems and build-
ing applications [9, 11]. There is also a growing interest in using TES systems
for demand-side management in the building sector [3]. The idea is to couple
TES with electrically driven heating and cooling systems and to optimally man-
age electrical loads by means of control, adaptation and/or enhancement of the
comparatively large heating, cooling and hot water demands [3].
2
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
Limitations of current models: Dynamical models of TES and related equip-
ment that can be packaged into commercial or open source software, as well
as accurate models for model-based observers and control can be considered
a key technology for plant and network design, demand side management and
advanced system control [9]. During the last decade, much effort was made
to integrate PCM models into commercial software packages for domestic and
building applications [12]. It seems that corresponding LHTES models are de-
veloped mainly in view of an optimal storage design and integration. They are
frequently based on elaborate computational fluid dynamics and multi-physics
tools, which leads to extremely time-consuming simulations [12]. Still, develop-
ments for model-based observers and controllers seem rather scarce.
3
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
water or ice storage in a cooling system and use this quantity in supervisory
model predictive control for optimal storage charging and discharging.
State observer applied to thermal storages: Up to the best of the authors knowl-
edge, state and/or parameter observers have not been applied to LHTES until
now. This is possibly due to the complexity of corresponding LHTES models,
being distributed parameter models with (storage-internal) temperature and
phase fractions fields. Kreuzinger et al. [25] present the design of two differ-
ent state observers for a (sensible) stratified water tank for domestic hot water
storage. The observer is used for reconstruction of storage internal time-varying
vertical temperature profiles from a few measurements. The tank is described
by an energy balance equation model which consists of a 1D quasi-linear partial
differential equation (PDE). Kreuzinger et al. [25] adopt a so called late lump-
ing and an early lumping observer design approach. In the former a spatially
weighted correction function is injected in the energy balance equation and the
correction gain is designed based on a physical interpretation. The corrected
model is then numerically solved. In the latter the energy balance equation is
first transformed into an ordinary differential equation (ODE) system by spatial
discretization and an Unscented Kalman filter is used as observer. It is found
that both observer give comparable results in terms of convergence and accuracy.
Considering an optimal placement of storage internal temperature sensors, it is
found that at least three temperature sensors are necessary to attain satisfying
estimation results during all operational modes.
4
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
This contribution: This paper proposes a definition of the SOC of LHTES with
solid/liquid PCM. A reduced model and a state observer are developed for the
dynamic reconstruction of 2D temperature fields and estimation of SOC of a
lab-scale S&T LHTES. Theoretical and experimental results from testing the
observer are presented.
The paper is organized as follows: Section 2 briefly presents the storage
container design and instrumentation. The energy balance equations for mod-
eling the LHTES are formulated according to previous works. This mathe-
matical model consists of three coupled PDEs and is referred to as detailed
model (dMod). dMod serves in this work as a reference and is used for in
silico studies. In addition, a (physical) simplification of dMod is presented,
which yields a reduced model (rMod) consisting of 12 state variables originat-
ing from the discretization of two coupled PDEs. It is developed with the aim
to design a nonlinear state observer, following the early lumping approach as
described by Kreuzinger et al. [25]. In addition, the definition for the SOC of
LHTES with solid/liquid PCM is given and and its computation is discussed.
Section 3 discusses transformation of rMod into a low order nonlinear ODE
by efficient (coarse) spatial discretization. A collocation scheme is derived for
the 2D heat conduction problem in the PCM cylindrical shell which provides
convenient quadrature formulas to derive the integral storage property SOC.
Section 4 gives details on the numerical implementation. In section 5, predic-
tions from simulations with rMod and dMod are compared to investigate the
influence of the model reduction on the accuracy of predictions. In section 6,
the design and implementation of a continuous-discrete extended Kalman filter
(EKF) is presented and notes on the observability of rMod are given. Accu-
racy and convergence of the EKF are studied using data from simulations with
rMod and experimental data. In section 7, in silico studies are performed to
compare the accuracy of SOC estimates from 1D temperature measurements
only and from 2D temperature information generated by the EKF. Moreover,
experimental results for SOC estimates using the EKF are discussed. Section 8
gives conclusions and directions for future work.
5
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
the heat transfer surface using PCM capsules (normally for low temperature
materials such as paraffins), using PCM embedded porous matrices (metallic
matrix or a matrix made of a naturally porous material such as graphite), dis-
persion of highly conductive particles within the PCM, employing multiple PCM
or using fins [8, 6], employing intermediate heat transfer media or heat pipes
[22].
In this contribution, a lab-scale S&T heat storage with a (latent) storage
capacity of about 10 - 15 kWh is considered. This storage has been described
previously in Zauner et al. [28], Barz et al. [17]. The storage uses a high density
polyethylene (Rigidex HD6070EA) as PCM with phase change temperatures
between 120 and 135 ◦ C. It is a rectangular container with 72 finned tubes
arranged in parallel as a tube bundle. Each tube has 2.7 m length and an
inner and outer diameter of 13.5 and 16.5 mm, respectively. The mean distance
between tubes is 42.8 mm (center to center). The HTF flows through the tubes
and the PCM is located in a shell around the tubes, see figure 1. The container
is equipped with four internal PCM temperature sensors (one-dimensionally
arranged in axial direction), two external HTF temperature sensors, and a HTF
mass flow sensor.
Figure 1: Shell and tube storage design with the HTF flowing through the tubes and the
PCM at the shell side, for detailed information see Zauner et al. [28], Barz et al. [17]. The
figure shows a section of the tube bundle in the rectangular container. ‘PCM 1’ to ‘PCM 4’
indicate positions of four internal PCM temperature sensors. These four sensors are arranged
in one line in axial direction exactly in the middle between neighboring tubes and fins, at 0.1,
0.87, 1.64, 2.4 m. ‘HTF in’ and ‘HTF out’ indicate the position of external HTF temperature
sensors. ‘HTF flow’ is the total HTF mass flow through all tubes.
2.2. Energy balances for the detailed single tube model (dMod)
The following equations are referred to as the detailed model (dMod), serving
as a reference in this work. It is used for in silico studies (when measurements
are not available) representing the real system. In addition, physical simplifica-
tions of dMod yield the model equations of a reduced model (rMod). rMod is
developed with the aim to design a nonlinear state observer.
The tube bundle consists of 72 tubes. For each tube the same inflow and out-
flow conditions are assumed. In addition, it is assumed that all tubes are equal
6
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
and no heat is exchanged between adjacent tubes. This common assumption
is justified in the present setting due to the (outer) thermal insulation and the
relative abundance of 72 tubes. Based on these assumptions, only one tube with
a surrounding PCM shell needs to be considered for the modeling (single tube
model). To this end, an average fluid flow and effective boundary conditions
are used. The hexagonal shape of the PCM shell is approximated by a cylinder
(from rout to rend ), see figure 2. Finally, a zero heat flux over the outer PCM
shell radius (r = rend ) is enforced. Note that rend marks the radial position of
the installed storage internal PCM temperature sensors (PCM 1-4).
As proposed in previous works [29], energy balances are formulated for three
domains: the HTF, the tube wall, and the PCM (figure 3). The monitoring
of temperature gradients in S&T and pipe TES indicate an essentially two-
dimensional heat transfer in both systems [27]. As largest temperature gradients
are to be expected in the PCM, this domain is modelled in 2D axial and radial
directions. The tube wall is modeled in 1D axial direction with isothermal
conditions in radial direction, axial heat conduction and heat transfer to and
from the PCM and HTF domain. The HTF is modeled in 1D axial direction
with a forced convective flow neglecting heat conduction in axial and radial
direction. It is assumed that the HTF is uniformly distributed to the tube.
The outer storage wall is endowed with a thermal insulation; heat losses to the
surroundings are neglected.
cut A-A
A PCM 1 to PCM 1 to PCM 4
PCM 4
A
L
d
en
t
r
rou
HTF rin
tube
PCM
Figure 2: Shell and tube storage design with the HTF flowing through the tubes and the
PCM at the shell side. Top: Section of the tube bundle and position of the four internal PCM
temperature sensors (‘PCM 1’, to ‘PCM 4’). These four sensors are arranged in one line in
axial direction exactly in the middle between neighboring the tubes. Bottom: Single tube and
modeling domains.
7
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
PCM
Tube
HTF
Figure 3: Axial and radial modeling domains and differential volume elements of the single
tube model. See table 2 for a list of all variables and their notations.
∂TH ∂TH 2
ρH cp,H = −vH ρH cp,H − q̇H on 0 ≤ x ≤ L (1a)
∂t ∂x rin
0 in
TH (t, x) t=0 = TH (x), TH (t, x) x=0 = TH (t) (1b)
8
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
Balance equation for tube wall (subscript W)
∂TW ∂ ∂TW 2(rin q̇H − rout q̇P )
ρW cp,W = λW + 2 − r2 on 0 ≤ x ≤ L (2a)
∂t ∂x ∂x rout in
2.3. Energy balances for the reduced single tube model (rMod)
rMod is a (physical) simplification of dMod. It contains equations for the
HTF, eq. (1), and the PCM, eq. (3). The balance equation for the tube wall
(eq. (2)) is neglected. Instead, a direct heat exchange between HTF and PCM
0
(q̇H ) is assumed
0
q̇H (t, x) = α(t, x) TH (t, x) − TP (t, r, x)|r=rout (5)
0
This means that q̇H (t, x) in eq. (1a) is replaced by q̇H (t, x). In addition, the
second Dirichlet boundary condition in eq. (3b) is replaced by an alternative
0
condition derived from q̇H (t, x) = q̇P (t, x):
9
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
2.4. Heat capacity and state of charge
A generic two phase model for the apparent specific heat capacity c̃P of the
PCM is given by a linear superposition of terms for liquid (clp,P ) and solid (csp,P )
heat capacity as well as the latent heat (∆H f ) released or absorbed in the phase
transition region [35]:
∂ξ
c̃P := ξclp,P + (1 − ξ)csp,P + ∆H f (7)
| {z } |∂TP{z }
sensible heat
latent heat
where µ, γ, a are location and shape parameters. Details on the choice of the
probability density function representing the phase transition and determining
appropriate parameter estimates from calorimetric measurement data are given
in Barz et al. [17].
Definition (State of charge of a latent thermal storage with solid/liquid PCM).
The term state of charge (SOC) and the symbol Ξ are used to indicate the extent
to which a LHTES is charged relative to storable latent heat. The SOC Ξ is
calculated as the geometric mean of local phase fraction fields ξ(r, x), where r, x
represent spatial coordinates of the distributed parameter system.
With ξ being a function of TP , see eq. (8), local ξ(r, x) are then functions of
local TP (r, x) and are obtained by integration.
Z TP (r,x)
∂ξ(T )
ξ(r, x) = dT (9)
−∞ ∂Tp
For the Weibull density function in eq. (8) a closed form of the cumulative
density function in eq. (9) exists and this integral can be evaluated analytically
[37]. Figure 4 illustrates this relation for the Weibull density. The state of
charge Ξ is calculated as geometric mean (for the cylinder shell geometry) as:
R L R rend
0 rout
ξ(r, x)r dr dx
Ξ= R L R rend (10)
0 rout
r dr dx
10
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
The integration of eq. (10) needs to be carried out numerically, see below.
0.15
d9(T )=dTP
Weibull
0.10
0.05
0.00
1.00
0.75
9(T )
0.50
0.25
0.00
100 110 120 130 140 150
T [/ C]
Figure 4: Top: probability density function taken from Barz et al. [17].
Bottom: corresponding cumulative density function describing the phase fraction ξ.
Heat transfer in the balance equation of the PCM, eq. (3), is purely con-
ductive. Collocation techniques have proven to be well suited for the numerical
solution of problems of this type [38, 39]. In contrast, axial heat transfer in
the HTF, eq. (1), is purely convective. Thus, discretization by an upwind finite
differences scheme is proposed which is a well established technique in model-
ing fluid flows [40]. In the following, the application of the collocation method
[41] to the balance equations of the PCM (axial and radial direction), eq. (3),
is discussed. For the treatment of the HTF equations the reader is referred to
Quoilin et al. [40], especially for details on the consideration of flow reversal and
two phase flows.
Collocation is a method of weighted residuals (MWR). For conduction or dif-
fusion dominated problems, collocation gives more accurate results and requires
less computation time compared to finite differences computations [41]. For a
discussion of the accuracy of computed radial temperature profiles in the PCM
shell see Appendix A. In the collocation method, the solution is not derived in
terms of the coefficients in the trial function but in terms of the value of the solu-
tion at the collocation points. The independent spatial variables are discretized
and the approximations for the spatial derivatives are defined based on state
values at discretization points. In doing so, differential equations are reduced
to a set of matrix equations. Compared to other MWR, e.g. Galerkin Finite
Element method, the collocation method can be directly applied to nonlinear
equations as no values of integrals need to be evaluated numerically.
In the orthogonal collocation (OC) method the collocation points are taken
as the roots of orthogonal polynomials (for certain weighting functions) [41,
page 97]. In contrast to OC on finite element methods (OCFE), OC uses single
high-order polynomials covering the full domain rout ≤ r ≤ rend , 0 ≤ x ≤ L.
11
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
In high order approximations, the choice of collocation points is not crucial,
however, using appropriate weighting functions calculations can be made both
convenient and accurate. Moreover, the polynomials can also be generalized
to planar, cylindrical, or spherical geometries as well as to satisfy boundary
conditions. Furthermore, accurate quadrature formulas exist that allow the
exact calculation of integral properties with only a low number of terms. Details
are given in section 4.3 and the quadrature formulae are derived in Appendix
D similarly as in Finlayson [41]. This is important for the presented case study,
as the primary information desired from the solution is an integrated property,
that is the SOC Ξ.
Figure 5: Original and normalized axial and radial coordinates for the PCM shell domain.
12
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
dependency of λP = λP (TP (r, x)) from the inner differential by applying the
chain and product rule. For the PCM in eq. (3a) this reads:
2
1 ∂ ∂TP dλP ∂TP 1 ∂ ∂TP
r λP = + λP r (12)
r ∂r ∂r dTP ∂r r ∂r ∂r
| {z } | {z }
=:Φ(r,x) =:Ψ(r,x)
2
∂ ∂TP dλP ∂TP ∂ 2 TP
λP = + λP
∂x ∂x dTP ∂x ∂x2
| {z }
=:Ω(r,x)
TP (R ) =2
di R 2i−2
; 2
TP (X ) = d¯k X 2k−2 (13)
i=1 k=1
Figure 6: Discretization scheme for PCM and HTF applied to rMod. Pairs of collocation
points (R1 , X1 ), (R1 , X2 ), (R1 , X3 ), (R1 , X4 ) match the positions of the installed storage-
internal PCM temperature sensors. Balance equations are solved and state variables are
computed at collocation points marked by a cross. Elements of the upwind finite differences
scheme for the HTF have been placed such that HTF state variables are computed at the
same axial positions X1 , X2 , X3 , X4 .
13
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
In the PCM shell, one interior point in R (0 < R2 < 1) and four interior
points in X (0 < X1 < X2 < X3 < X4 < 1) are chosen. Orthogonal collocation
in radial direction leads to R2 ≈ 0.57735 for the interior collocation point (root
of the third Legendre polynomial, weight function w(R) = 1 − R2 for cylindrical
geometry). Note that in Finlayson [41] the weighting function W = 1 − R2 is
proposed for low order approximations which then determines the exact location
of the interior collocation point R2 = 0.57735 from the orthogonality condition
of the trial function TP (R2 ). An additional collocation point is introduced
at R1 = 0. Non-orthogonal collocation is used in axial direction with four
interior points chosen as the (transformed) position of the sensors, such that the
points (R1 , X1 ), (R1 , X2 ), (R1 , X3 ), (R1 , X4 ) exactly match the position of the
four installed storage-internal PCM temperature sensors. Thus, corresponding
computed state variables can be directly compared to measurements, e.g. for
model validation.
This is crucial because the polynomials in eq. (13) deliver a good approxi-
mation of the solution of the energy balance equations only at the collocation
points. For details see Appendix A. Using only one interior collocation point in
radial direction (quadratic polynomial approximation of the radial temperature
profile), an extrapolation to R = 0 (where temperature sensors are installed)
gives poor results. In contrast, if an additional collocation point is placed ex-
actly at R = 0 (quartic polynomial approximation), the polynomial is forced
to fulfill both, the zero flux (Neumann) boundary condition in eq. (3b) and
the energy balance equation in eq. (3a). This additional point/equation then
greatly improves the prediction of the temperature profile. This issue has also
been discussed in Segall et al. [42].
∂TH 1 ∂TH 2 0
ρH cp,H = −vH ρH cp,H − q̇ on 0 ≤ X ≤ 1 (14a)
∂t L ∂X rin H
0 in
TH (t, X) t=0 = TH (X) , TH (t, X) X=0 = TH (t) (14b)
14
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
For the PCM in eq. (3) one gets (see Appendix B), using transformation in
eq. (12) and δ = rend − rout ,
" 2 #
∂TP 1 dλP ∂TP
ρP c̃P = 2 (15a)
∂t δ dTP ∂R
| {z }
=:Φ(R,X)
λP 1 ∂ ∂TP (rout + δ) 1 ∂TP
+ 2 R −
δ R ∂R ∂R (rout + δ(1 − R)) R ∂R
| {z }
=:Ψ(R,X)
" 2 #
1 dλP ∂TP λP ∂ 2 TP 0≤R≤1
+ 2 + 2 on
L dTP ∂X L ∂X 2 0 ≤ X≤ 1
| {z }
=:Ω(R,X)
TP (t, R, X) t=0
= TP0 (R, X) (15b)
∂TP (t, R, X) ∂TP (t, R, X) ∂TP (t, R, X)
= 0, = 0, =0
∂R R=0 ∂X X=0 ∂X X=1
0
and for the heat flux, q̇H in eq. (5), one gets
0
q̇H (t, X) = α(t, X) TH (t, X) − TP (t, R, X)|R=1 (16)
The normalization of the integral term in the numerator in eq. (10) gives,
R1
L 0 Γ(X) dX
Ξ= 2 2 )/2 (18a)
L(rend − rout
Z Z
2
1 2
1
Γ(X) = δ + δrout ξ(R, X) dR − δ ξ(R, X)R dR (18b)
0 0
Z TP (R,X)
ξ(T )
ξ(R, X) = dT (18c)
−∞ dT
∂TP
ρP c̃P = Φ(Rj , Xl ) + Ψ(Rj , Xl ) + Ω(Rj , Xl ) (19)
∂t Rj ,Xl
j = 1, NR + 1 ; l = 1, · · · , NX
15
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
Note that subscripts j and l are used to denote individual collocation points in
R and X, respectively. At these points the spatial derivatives in Φ(Rj , Xl ) and
Ψ(Rj , Xl ) in eq. (19) (see eq. (15a) for their definition) can be replaced by the
collocation derivative formulas:
!2 NX
!2
R +2
∂TP (2)
= Aji TP (Ri , Xl ) (20a)
∂R Rj ,Xl i=1
NXR +2
1 ∂ ∂TP (2)
R = Bji TP (Ri , Xl ) (20b)
R ∂R ∂R Rj ,Xl i=1
NX
R +2
1 ∂TP (2)
= Ãji TP (Ri , Xl ) (20c)
R ∂R Rj ,Xl i=1
The coefficient matrices A(2) , B(2) ∈ R(NR +2)×(NR +2) are given for cylindrical
geometry and are derived from the collocation points Rj with j = 1, · · · , NR + 2
as defined in Finlayson [38]. The calculation of the coefficients of the adapted
matrix Ã(1) is given in Appendix C. The term (rout + δ)/(rout + δ(1 − R)) in
Ψ(Rj , Xl ) in eq. (15a) is evaluated for Rj .
In the same way, the partial derivatives in Ω(Rj , Xl ) in eq. (19) can be
replaced by
!2 NX
!2
X +1
∂TP (1)
= Alk TP (Rj , Xk ) (21a)
∂X Rj ,Xl
k=1
NX
X +1
∂ 2 TP (1)
= Blk TP (Rj , Xk ) (21b)
∂X 2 Rj ,Xl k=1
The coefficient matrices A(1) , B(1) ∈ R(NX +1)×(NX +1) are given for planar geom-
etry and are derived from the collocation points Xl with l = 1, · · · , NX + 1 as
defined in Finlayson [38].
The following boundary conditions are considered in the discrete form of
the model equations for PCM. The zero flux (Neumann) boundary condition
∂TP (t, R, X)/∂X|X=1 = 0 in eq. (15b) is incorporated using the collocation
formula [42]:
PNX (1)
A TP (Rj , Xk )
TP (Rj , Xm ) = − k=1 mk(1) ; m = NX + 1 (22)
Amm
Equation (22) is an explicit expression which is used to eliminate temperatures
TP (Rj , Xk ) with j = 1, 2 and k = NX + 1 = 5 from eq. (21).
The normalized boundary condition for rMod in eq. (17) is discretized re-
placing the spatial derivative with:
NX
R +1
∂TP (2) (2)
= A(NR +2)i TP (Ri , Xl ) + A(NR +2)(NR +2) TP (RNR +2 , Xl )
∂R RNR +2 ,Xl i=1
(23)
16
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
Using eq. (23) and with NR + 2 = 3, an explicit expression can be derived which
is used to eliminate temperatures TP (R3 , Xl ) with l = 1, · · · , 4 from eq. (20):
λP (R3 ,Xl ) P2 (2)
α(Xl )TH (Xl ) + rend −rout · i=1 A3,i TP (Ri , Xl )
TP (R3 , Xl ) = (2)
(24)
α(Xl ) − λrend
P (R3 ,Xl )
−rout A3,3
where the vector w(2) and the adapted vector w̃(2) are given for cylindrical
geometry, see Appendix D. Finally, the integral over X in eq. (18a) is evaluated
using the vector w(1) for planar geometries.
17
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
Table 1: List of variables used in model based and experimental analysis. Normalized positions
as used in figure 6 and eq. (27): X = [0.04, 0.34, 0.66, 0.96], R = [0.00, 0.58])
For convenience, we omit the explicit notation of the time argument t in the
following. In eq. (26), x ∈ R12 are the states, u ∈ R2 are the inputs, y ∈ R5
are the measurements of the system taken at tk and h simply assigns a subsets
of states to y. Using the notation for discrete states as introduced in section 4,
the vector elements of these variables read:
In eq. (27), the first 4 elements in x represent the HTF temperatures at different
axial coordinates, and the remaining eight states describe the PCM tempera-
tures at different axial and radial coordinates, see figure 6. The input variable
u consists of the temperature at the HTF storage inlet (HTF in) and the HTF
2
total mass flow (HTF flow), which is calculated as ṁH,total = nT vH π (rin ) ρH ,
with nT being the number of tubes. These input variables (denoted as ‘input’ in
the rest of the paper) are considered as time dependent parameters in the model.
The elements in the measurement vector y are used to compare model predic-
tions to real measurement data. Five corresponding temperature measurements
(denoted as ‘meas’ in the rest of the paper) are available: four storage-internal
PCM temperatures (PCM 1-4) and the HTF temperature at the storage outlet
(HTF out), see figure 1 for the position of sensors and figure 6 for the location
of corresponding discrete states. An overview is given in table 1.
18
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
In the following a comparison of predictions generated by simulations with
rMod and dMod is given. Figure 7 shows results for the HTF temperature at
the storage outlet y5 (HTF out, first subfigure), and results for four different
storage-internal PCM temperatures y1 , · · · , y4 (PCM 1-4, second subfigure).
The dynamic experiment design (input) is defined by variations in u1 , this is
the HTF storage inlet temperature (HTF in, first subfigure), and in u2 , this is
the HTF total mass flow (HTF flow, third subfigure).
140
HTF in
HTF out
120
140
2
_ [kg/sec]
0
0 61.7 100 150 200 236.8 300
time [min]
Figure 7: Predictions from simulations with the detailed model (dMod, see Barz et al. [17])
and the reduced model (rMod) for a dynamic experiment design (input) defined by variations
in the HTF storage inlet temperature and HTF total mass flow show only minor differences.
It can be seen in figure 7 that the predicted HTF out (dMod) and HTF out
(rMod) (first subfigure), as well as the predicted PCM 1-4 (dMod) and PCM
1-4 (rMod) (second subfigure) agree well. The largest deviations can be found
for fast changes in HTF out (around t = 236.8 min) with a maximal absolute
difference of 3.1 K and an average absolute difference of 0.6 K. For the predicted
PCM 1-4 temperatures the absolute differences have a maximal value of 4.2 K
and an average value of 0.4 K.
Predicted temperature fields in the PCM shell are depicted in figure 8 for
two selected time points (snapshots). Temperature values at collocation points
at r = rend correspond to temperatures PCM 1-4 in figure 7 (the four points
where the storage-internal temperature sensors are installed). Note that the
balance equations eq. (3) are fulfilled only at the collocation points.
19
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
160 145
155
T [/ C]
T [/ C]
150 140
(a) (b)
Figure 8: Predictions from simulations with the reduced model (rMod) for the dynamic ex-
periment design in figure 7. The figure shows temperature fields in the PCM shell at time
61.7 min (a) and time 236.8 min (b).
Temperature values at collocation points (indicated in figure 6) are marked by a star. Con-
tinuous lines in axial and radial direction are obtained from inter-/extrapolation using the
trial functions in eq. (13). Radial temperature differences are relatively small here due to the
operating conditions.
20
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
increases the number of states. It has been found that the resulting system is
then no longer observable, the EKF diverges. The same applies if less sensor
points are considered, i.e. when the number of temperature sensors is reduced.
Validation of the observer can only be performed with measurement data
that has not been fed into the observer. Unfortunately, the lab-scale LHTES
has only been endowed with a minimal number of temperature sensors. As con-
sequence, a validation for xi ∈
/ y, with i = 1, · · · , 12, cannot be done. However,
the accuracy of such estimations is assessed by in silico studies using experi-
mental data generated by simulations with dMod, see Appendix E.
21
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
(figure 9(a), top), whereas the EKF-rMod observer rapidly converges to the
actual state (figure 9(b), top). The PCM measurements (figure 9(a) and fig-
ure 9(b), bottom) show similar behaviour.
The same can be observed in figure 10(a). Note that here the simulation
and the observer are both correctly initialized during steady operation (0 to 15
min) with temperature values equal 85 ◦ C. However, figure 10(a) also deserves
special analysis, as after 50 min the HTF flow is stopped. The measured external
temperatures HTF in and HTF out show a decrease (from 50 to 100 min). This
can be explained by heat losses to the surroundings, that have been neglected in
the modeling, especially at the container inlet and outlet tubes and baffles. It
can also be seen, that the measured PCM temperature PCM 1 follows HTF in.
Note that, the sensor position of PCM 1 is close to the container inlet with x=0.1
m, see also figure 1. Interestingly enough, the situation changes after 100 min
and the decrease in measured HTF and PCM temperatures now continues on a
slower pace. This can be explained by the fact, that PCM temperatures have
reached the melting temperature range, (see temperatures and corresponding
phase fractions in figure 4), where the latent heat is released.
It is important to note that heat losses are not considered in rMod. Ac-
cordingly, in figure 10(a), after 50 min, the predictions (rMod) for internal and
external temperatures are far off the actual values. Matters are quite different
for state estimations (EKF-rMod), see figures 9(b), 10(b). These state estima-
tions converge much faster (figure 9(b)) and generally agree very well, even if
the HTF flow is stopped (figure 10(b) after 50 min). It can be concluded that
the state observer is able to robustly track real process data even for complex
operating scenarios and conditions neglected in the model.
Note that differences between measurements (meas) and predictions (rMod),
and, measurements (meas) and state estimations (EKF-rMod) are not quanti-
tatively compared, as the tuning parameters of the EKF-rMod observer may be
chosen to either put more (or less) emphasis on actual measurements.
22
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
160 HTF in (input)
init HTF out (meas)
140
T [/ C]
120
PCM 1,2,3,4
100
reinit
80
0 50 100 150 200 250 300
time [min]
(a)
120
PCM 1,2,3,4
100
reinit
80
0 50 100 150 200 250 300
time [min]
(b)
Figure 9: (a) Predictions generated by simulations (rMod), (b) state estimations gener-
ated by the observer (EKF-rMod), and corresponding experimental data (meas) for dy-
namic experiment design (input) of HTF inlet temperature and a constant total mass flow of
ṁH,total = 1.09 kg/sec.
23
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
HTF in (input)
160 HTF out (meas)
HTF out (rMod)
140
T [/ C]
120 HTF out
HTF in
100
80
160
140
T [/ C]
120
PCM 1,2,3,4 PCM 1-4 (meas)
100
PCM 1-4 (rMod)
80
_ [kg/sec]
1
HTF flow (input)
0.5
m
0
0 20 40 60 80 100 120 140 160
time [min]
(a)
HTF in (input)
160 HTF out (meas)
HTF out (EKF-rMod)
140
T [/ C]
120
PCM 1,2,3,4 PCM 1-4 (meas)
100
PCM 1-4 (EKF-rMod)
80
_ [kg/sec]
1
HTF flow (input)
0.5
m
0
0 20 40 60 80 100 120 140 160
time [min]
(b)
Figure 10: (a) Predictions generated by simulations (rMod), (b) state estimations gener-
ated by the observer (EKF-rMod), and corresponding experimental data (meas) for dynamic
experiment design (input) of HTF inlet temperature and total mass flow. Measurement arte-
facts/noise around time t = 70 and t = 100 min do not interfere with the EKF-rMod observer.
24
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
7. Prediction of the state of charge (SOC)
The SOC Ξ of the storage is calculated as the geometric mean of the phase
fraction field ξ(r, x) in the cylindrical PCM shell, see eq. (10). Figure 11 shows
an example of a temperature field TP (r, x) and corresponding local phase frac-
tion field ξ(r, x) calculated by eq. (9).
150
1
140
T [/ C]
9 [-]
0.5
130
120 0
0 rout =0.008 0 rout =0.008
0.5 0.5
1 0.014 1 0.014
1.5 1.5
2 2
x [m] 2.5 rend =0.021 x [m] 2.5 rend =0.021
r [m] r [m]
(a) (b)
Figure 11: Example of a local temperature field TP (r, x) in the PCM shell (a) and correspond-
ing local phase fraction field ξ(r, x) (b). Temperature TP and phase fraction ξ at collocation
points (indicated in figure 6) are marked by a star. TP and ξ fields are given for the trial
functions. Note that the values of TP and ξ fulfill the energy balances at the collocation points
only.
25
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
100
75
SOC [%]
50
25
1 # PCM shell thickness
0
100
75
SOC [%]
50
25
2 # PCM shell thickness
0
100
dMod
75 dirMap
SOC [%]
EKF-rMod
50
25
3 # PCM shell thickness
0
0 50 100 150 200 250 300
time [min]
(a)
TP (rout )!
TP (r) at
135 A
t =177 min
TP (rend )
130
2# PCM shell thickness
140 dMod
T [/ C]
rMod
135
A
130 meas *
3# PCM shell thickness
140
T [/ C]
135
130
150 177 200 rout rend 2rend 3rend
time [min] r [m]
(b)
Figure 12: In silico studies for three storage designs with increased PCM shell thickness
and for the dynamic experiment design shown in figure 7. The real process is represented by
simulations with dMod. (a) shows results for SOC, (b, left) shows different PCM temperatures
from dMod, between 150 and 200 min, at the axial position of the second installed temperature
sensor PCM 2; (b, right) shows corresponding snapshot radial temperature profiles at 177 min.
The outer edge of the PCM shell is defined by rend , 2rend , 3rend , respectively.
SOC is calculated from available local PCM temperature information: (dMod) uses PCM
temperature fields from the detailed model dMod; (dirMap) uses measurements from simulated
four PCM temperature sensors; (EKF-rMod) uses estimated PCM temperature fields from the
observer.
Figure 12 shows the results for three storage designs with increased PCM
shell thickness. Calculations relying only on measurement data (dirMap) lead
to poor results, see figure 12a. It can be seen that the error increases with
26
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
increasing shell thickness. For the storage design used in this work (1× PCM
shell thickness) a time delay between calculations from ‘dMod’ and ‘dirMap’
of about 4-5 min is observed. This time delay reaches 15-20 min for 3× PCM
shell thickness. This dramatic increase is to be expected, as the volume of the
PCM increases quadratically with increasing shell thickness due to the cylindri-
cal shell geometry. Accordingly, temperature measurements from the installed
four internal temperature sensors at the outer edge of the PCM shell do not
represent the radial temperature fields and thus the dynamic response times
to temperature changes at the PCM inner shell increase significantly, see also
figure 12b. As a result, absolute SOC values are not reflected correctly and
changes in the SOC are recorded with a relatively large time delay.
In contrast, the observer-based estimation of the SOC Ξ gives correct results
(compare results for ‘EKF-rMod’ and ‘dMod’).
27
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
100 dirMap
EKF-rMod
75
SOC [%]
50
25
0
0 50 100 150 200 250 300
time [min]
100
75
SOC [%]
50 dirMap
HTF flow is stopped EKF-rMod
25
0
0 20 40 60 80 100 120 140 160
time [min]
Figure 13: Computation of SOC of the storage for the dynamic experiment designs shown in
figure 9 (here at top) and in figure 10 (here at bottom).
The SOC is calculated from available local PCM temperature information: (dirMap) uses
measurements from installed four PCM temperature sensors; (EKF-rMod) uses estimated
PCM temperature fields from the observer.
In dynamic charging and discharging (top, cf. figure 9), both the EKF-rMod observer and
the direct mapping approach deliver comparable results. For the load/stop scenario (bottom,
cf. figure 10), the EKF-rMOD observer delivers more convincing results.
8. Conclusions
28
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
and cylindrical shells with zero flux and/or symmetry boundary condition at the
outer shell diameter. The applied collocation method yields excellent predictions
already for low order polynomial approximations (in this case study quartic
polynomials are used) of the states and derivatives at collocation points as well
as of integral properties of state profiles (using quadrature formulas). It is shown
how these integral properties can be used to compute geometric mean values,
i.e. mean phase fractions and the SOC of the LHTES.
In this contribution, the discretization grid (collocation points and finite
element boundaries) has been chosen such that corresponding discrete state vari-
ables match the position of installed storage-internal PCM temperature sensors.
Installation of these sensors gives valuable insights and is practiced at least in
lab-scale storages, see e.g. [46]. The optimal number and location of temperature
sensors and the optimal discretization scheme for alternative storage geometries
may be interesting research topics as well as improving the observability by sub-
stituting the EKF by a moving horizon estimator (MHE) that uses more than
only the most recent measurement (see, e.g., the real-time MHE for simultane-
ous estimation of states and parameters in Kühl et al. [47]). Moreover, in silico
studies have been performed to validate observer estimations for non-measured
states (temperatures inside the PCM shell). Thus, further completion could be
an experimental validation by use of additional sensors.
In this contribution, the SOC of an LHTES is defined as the mean of local
phase fraction fields in the solid/liquid PCM in the storage. A simple algebraic
phase transition model is used which is an unambiguous assignment/mapping
of the phase fraction to the PCM temperature. This model can be derived
from PCM thermo-physical material data. However, more complex modeling
is conceivable, e.g. an ambiguous assignment/mapping which could result, e.g.,
from the consideration of subcooling or kinetics in the phase transition. Both
phenomena are of practical relevance, though most often unwanted [7, 6, 46, 48].
Acknowledgements
This work was partly funded by the Austrian Research Funding Association
(FFG) within the programme Bridge in the project ‘modELTES’ (project No.
851262). Support within the Advanced Investigator Grant MOBOCON (grant
agreement No. 291458) of the European Research Council is gratefully acknowl-
edged. The authors want to thank an anonymous reviewer for his thoughtful
and constructive comments on an earlier version of this manuscript.
29
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
Acronyms and Notation
30
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
Appendix A. Discretization error
Figure A.1 shows the discretization error for OC schemes differing in the
number and location of collocation points for the one-dimensional nonlinear
dynamic heat transfer problem in radial direction in the PCM cylinder shell.
Numeric results are compared to the benchmark solution computed by a finite
differences scheme with 50 elements, see Barz et al. [17] for details. In fig-
ure A.1(a) results obtained by using a single interior collocation point (which
corresponds to one equation to be solved) are shown. The solutions computed at
the interior collocation point show relatively high errors. Moreover, the extra-
polation to the outer edge of the cylinder shell at rend , where the temperature
sensors are installed, yields poor results. In contrast, figure A.1(b) shows that
the results are much better when using an additional collocation point placed at
rend . The same holds true for the geometric mean temperatures, Tmean , shown
on the right of figure A.1. Their values are obtained from the evaluation of the
integral term in eq. (18b) using the quadrature formulas in eq. (25).
The absolute errors listed in table A.1 confirm the above findings. It can
therefore be concluded that the value of the integral property SOC Ξ can
also be approximated with reasonable accuracy using the OC scheme in fig-
ure A.1 (b). Moreover, the OC scheme generally outperforms the FD scheme in
terms of the accuracy of predictions (compare results with the same number of
points/equations to be solved in table A.1).
Table A.1: Absolute errors in the geometric mean Tmean in K for different discretization
schemes: Orthogonal Collocation (OC) and Finite Differences (FD). Computed errors refer
to deviations from geometric mean values of FD benchmark trajectory (FD with 50 elements,
shown in figure A.1). The total number of interior (int.) and boundary (bound.) points
indicate the number of equations to be solved.
31
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
140 T as f (r) Tmean 140 T as f (r) Tmean
t3
t3
130 130
t2
T [/ C]
T [/ C]
t2
120 120
t1
t1
rout = 0.00825 0.013813 rend = 0.021412 rout = 0.00825 0.013813 rend = 0.021412
r [m] r [m]
(a) (b)
130 130
T [/ C]
T [/ C]
t2 t2
120 t1 120 t1
rout = 0.00825 0.013813 rend = 0.021412 rout = 0.00825 0.013813 rend = 0.021412
r [m] r [m]
(c) (d)
Figure A.1: Temperature profiles for a step change in boundary value T (rout ) from 120 to
140 ◦ C generated by solving the one-dimensional nonlinear dynamic heat transfer problem in
radial direction of the PCM shell with orthogonal collocation (OC, solid line) or finite differ-
ences (FD, dashed line) discretizations.
In (a), with a single interior collocation point, the OC approximation is far off the FD bench-
mark trajectory even at the collocation point. By placing an additional collocation point at
rend , OC and FD approximations agree fairly well, and also the (geometric) mean tempera-
ture Tmean of the OC solution asymptotically converges to the FD benchmark.
Note that, for OC, the temperatures only at the collocation points fulfill the energy balance
equations, and continuous lines are obtained from inter-/extrapolating the trial functions in
eq. (13).
Figures (c) and (d) show the temperature profiles computed by OC with three and four col-
location points, respectively. Also see the error analysis in table A.1.
32
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
Appendix B. Transformation of differential term into standard form
Normalization of Ψ(r, x) in eq. (12) using eq. (11) and δ = rend − rout yields:
λP 1 ∂ ∂TP
Ψ(R, X) = 2 rout +δ(1−R)
δ rout +δ(1−R) ∂R ∂R
λP 1 ∂ 2 TP ∂ ∂TP
= 2 (rout +δ) −δ R
δ rout +δ(1−R) ∂R2 ∂R ∂R
λP 1 (rout +δ) ∂ ∂TP (rout +δ) ∂TP R ∂ ∂TP
= R − −δ R
(∗) δ 2 rout +δ(1−R) R ∂R ∂R R ∂R R ∂R ∂R
λP 1 1 ∂ ∂TP (rout +δ) ∂TP
= 2 (rout +δ−δR) R −
δ rout +δ(1−R) R ∂R ∂R R ∂R
" #
λP 1 ∂ ∂TP (rout +δ) 1 ∂TP
= 2 R −
δ R ∂R ∂R rout +δ(1−R) R ∂R
using the notation y := (y1 , ..., yN +2 )T , d := (d1 , ..., dN +2 )T , and Q = (qji )ji with
qji := x2i−2
j .
For the first derivatives one obtains:
N
X +2 N
X +2
d d 2i−2
y(xj ) = xj di = (2i − 2) x2i−3
j di (C.3)
dx i=1
dx i=1
33
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
which can be written in matrix notation as
with z = (z1 , ..., zN +2 )T and using d = Q−1 y from eq. (C.2). Then, the matrix
Ã(2) := CQ−1 is the adapted coefficient matrix used in eq. (20c).
(2) (2)
To determine wi and w̃i , evaluate eq. (D.1) for f (x) = x2i−2 using a = 2
and a = 1, respectively:
Z 1 N
X +2
1
x2i−2 xa−1 dx = wj x2i−2
j = =: fi , (D.2)
0 j=1
2i − 2 + a
wQ = f , w = fQ−1
using the notation f := (f1 , ..., fN +2 )T , w := (w1 , ..., wN +2 ), and Q = (qji )ji
with qji = x2i−2
j .
34
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
differences between PCM temperature states obtained from dMod and rMod
(figure E.2(a)) and dMod and EKF-rMod (figure E.2(b)).
While the simulations by the reduced model rMod show large deviations to
the measurements (figure E.2(a)), the EKF-rMod observer gives good estimates
for measurable and non-measurable states (figure E.2(b)). Analysis of all PCM
temperature states (PCM 1-8) reveals that the largest deviations always exist for
PCM 5 and PCM 1. For dMod and rMod in figure E.2(a) the maximal absolute
differences are 23.3 K and 17.3 K, respectively. Corresponding average absolute
errors are 0.03 K and 0.02 K. For dMod and EKF-rMod in figure E.2(b) the
maximal absolute differences are 5.1 K and 2.5 K, respectively. Corresponding
average absolute errors are 0.003 K and 0.007 K. For the studied scenario and
the assumed modeling errors it can be concluded that the observer produces
convincing results.
35
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
160
PCM # (dMod)
140 PCM 5 PCM # (rMod)
T [/ C]
120
100 PCM 1
80
160
PCM # (dMod)
140 PCM 6
PCM # (rMod)
T [/ C]
120
100 PCM 2
80
20
" PCM 1
10 " PCM 5
"T [K]
0
-10 " PCM 2
-20 " PCM 6
(a)
160
PCM # (dMod)
140 PCM 5 PCM # (EKF-rMod)
T [/ C]
120
100 PCM 1
80
160
PCM # (dMod)
140 PCM 6
PCM # (EKF-rMod)
T [/ C]
120
100 PCM 2
80
20 " PCM 1
" PCM 5
10
"T [K]
0
-10 " PCM 2
" PCM 6
-20
0 50 100 150 200 250 300
time [min]
(b)
Figure E.2: (a) Predictions generated by simulations (dMod), (b) state estimations gen-
erated by the observer (EKF-rMod), and corresponding measurements (meas) for dynamic
experiment design (input) of HTF inlet temperature and a constant total mass flow of
ṁH,total = 1.09 kg/sec (same as in figure 9).
Measurements have been generated by simulations with dMod.
36
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
Bibliography
[1] A. d. Gracia and L. F. Cabeza. Phase change materials and thermal energy
storage for buildings. Energy and Buildings, 103:414–419, 2015.
[2] T. Nomura, N. Okinaka, and T. Akiyama. Technology of latent heat storage
for high temperature application: A review. ISIJ International, 50(9):1229–
1239, 2010. ISSN 0915-1559.
[3] A. Arteconi, N. J. Hewitt, and F. Polonara. State of the art of thermal
storage for demand-side management. Applied Energy, 93:371–389, 2012.
[4] M. A. Sharif, A. A. Al-Abidi, S. Mat, K. Sopian, M. H. Ruslan, M. Y.
Sulaiman, and M. A. M. Rosli. Review of the application of phase change
material for heating and domestic hot water systems. Renewable and Sus-
tainable Energy Reviews, 42:557–568, 2015.
[5] M. Mastani Joybari, F. Haghighat, J. Moffat, and P. Sra. Heat and cold
storage using phase change materials in domestic refrigeration systems:
The state-of-the-art review. Energy and Buildings, 106:111–124, 2015.
[6] B. Cárdenas and N. León. High temperature latent heat thermal energy
storage: Phase change materials, design considerations and performance
enhancement techniques. Renewable and Sustainable Energy Reviews, 27:
724–737, 2013. ISSN 13640321.
[7] Z. Youssef, A. Delahaye, L. Huang, F. Trinquet, L. Fournaison, C. Poller-
berg, and C. Doetsch. State of the art on phase change material slurries.
Energy Conversion and Management, 65:120–132, 2013.
[8] M. Liu, W. Saman, and F. Bruno. Review on storage materials and thermal
performance enhancement techniques for high temperature phase change
thermal storage systems. Renewable and Sustainable Energy Reviews, 16
(4):2118–2132, 2012.
[9] W. J. Cole, K. M. Powell, and T. F. Edgar. Optimization and control of
thermal energy storage systems. Reviews in Chemical Engineering, 28(2-3):
81–99, 2012.
[10] K. M. Powell, W. J. Cole, U. F. Ekarika, and T. F. Edgar. Optimal chiller
loading in a district cooling system with thermal energy storage. Energy,
50:445–453, 2013.
[11] T. F. Edgar and K. M. Powell. Energy intensification using thermal storage.
Current Opinion in Chemical Engineering, 9:83–88, 2015.
[12] A. Castell and C. Solé. Design of latent heat storage systems using phase
change materials (PCMs). In L. F. Cabeza, editor, Advances in thermal en-
ergy storage systems: methods and applications, pages 307–324. Woodhead
Publishing, 2014.
37
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
[13] E. Oró, A. d. Gracia, A. Castell, M. M. Farid, and L. F. Cabeza. Re-
view on phase change materials (PCMs) for cold thermal energy storage
applications. Applied Energy, 99:513–533, 2012.
[14] S. Tiari, S. Qiu, and M. Mahdavi. Discharging process of a finned heat
pipe–assisted thermal energy storage system with high temperature phase
change material. Energy Conversion and Management, 118:426–437, 2016.
[15] H. J. Strumpf, V. Avanessian, and R. Ghafourian. Design analysis and
containment canister life prediction for a brayton engine solar receiver for
space station. Journal of Solar Energy Engineering, 116(3):142–147, 1994.
[16] F. Hengstberger, C. Zauner, K. Resch, S. Holper, and M. Grobbauer. High
temperature phase change materials for the overheating protection of facade
integrated solar thermal collectors. Energy and Buildings, 124:1–6, 2016.
[17] T. Barz, C. Zauner, D. Lager, D. C. López C., F. Hengstberger, M. N.
Cruz Bournazou, and K. Marx. Experimental analysis and numerical mod-
eling of a shell and tube heat storage unit with phase change materials.
Industrial & Engineering Chemistry Research, 55(29):8154–8164, 2016.
[18] S. D. Vaca Jiménez. Model to determine the state of charge of water as
a phase change material integrated in a household refrigerator. Master’s
thesis, Loughborough University, under the supervision of P. Eames and
W. S. Ranshuysen, Leicestershire, United Kingdom, 02.12.2013.
[19] A. Cuneo, M. L. Ferrari, M. Pascenti, and A. Traverso. State of charge
estimation of thermal storages for distributed generation systems. Energy
Procedia, 61:254–257, 2014.
[20] C. Hall, E. Glakpe, J. Cannon, and T. Kerslake. Thermal state-of-charge
in solar heat receivers. In 36th Aerospace Sciences Meeting & Exhibit, 1998.
doi: 10.2514/6.1998-1017.
[21] G. P. Henze, D. E. Kalz, S. Liu, and C. Felsmann. Experimental analysis
of model-based predictive optimal control for active and passive building
thermal storage inventory. HVAC&R Research, 11(2):189–213, 2005.
[22] M. S. Naghavi, K. S. Ong, M. Mehrali, I. A. Badruddin, and H. S. C.
Metselaar. A state-of-the-art review on hybrid heat pipe latent heat storage
systems. Energy Conversion and Management, 105:1178–1204, 2015.
[23] G. Steinmaurer, M. Krupa, and P. Kefer. Development of sensors for mea-
suring the enthalpy of PCM storage systems. Energy Procedia, 48:440–446,
2014.
[24] T. Bauer, D. Laing, and W.-D. Steinmann. Feasibility of the new PCM
measurement system based on the ’electric resistance approach’ in lab scale
demonstrated. Deliverable report 15.4 - Solar Facilities for the European
Research Area (SFERA) Project, German Aerospace Center (DLR), Ger-
many, 2012.
38
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
[25] T. Kreuzinger, M. Bitzer, and W. Marquardt. State estimation of a strat-
ified storage tank. Control Engineering Practice, 16(3):308–320, 2008.
[26] Q. Mao. Recent developments in geometrical configurations of thermal en-
ergy storage for concentrating solar power plant. Renewable and Sustainable
Energy Reviews, 59:320–327, 2016.
[27] F. Agyenim, N. Hewitt, P. Eames, and M. Smyth. A review of materials,
heat transfer and phase change problem formulation for latent heat ther-
mal energy storage systems (LHTESS). Renewable and Sustainable Energy
Reviews, 14(2):615–628, 2010.
[28] C. Zauner, F. Hengstberger, M. Etzel, D. Lange, R. Hofmann, and H. Wal-
ter. Experimental characterization and simulation of a fin-tube latent heat
storage using high density polyethylene as PCM. Applied Energy, 179:
237–246, 2016.
[29] A. Trp. An experimental and numerical investigation of heat transfer during
technical grade paraffin melting and solidification in a shell-and-tube latent
thermal energy storage unit. Solar Energy, 79(6):648–660, 2005.
[30] V. R. Voller, C. R. Swaminathan, and B. G. Thomas. Fixed grid techniques
for phase change problems: a review. International Journal for Numerical
Methods in Engineering, 30(4):875–898, 1990.
[31] H. Hu and S. A. Argyropoulos. Mathematical modelling of solidification
and melting: a review. Modelling and Simulation in Materials Science and
Engineering, 4(4):371–396, 1996.
[32] M. Muhieddine, E. Canot, and R. March. Various approaches for solving
problems in heat conduction with phase change. International Journal on
Finite Volumes, 6(1):1–20, 2009.
[33] G. Ziskind. Modelling of heat transfer in phase change materials (PCMs)
for thermal energy storage systems. In L. F. Cabeza, editor, Advances in
thermal energy storage systems: methods and applications, pages 307–324.
Woodhead Publishing, 2014.
[34] A. Samarskii, P. N. Vabishchevich, O. P. Iliev, and A. G. Churbanov. Nu-
merical simulation of convection/diffusion phase change problems - a re-
view. International Journal of Heat and Mass Transfer, 36(17):4095–4106,
1993.
[35] U. Gaur and B. Wunderlich. Heat capacity and other thermodynamic
properties of linear macromolecules. ii. polyethylene. Journal of Physical
and Chemical Reference Data, 10(1):119, 1981.
[36] A. Y. Uzan, Y. Kozak, Y. Korin, I. Harary, H. Mehling, and G. Ziskind. A
novel multi-dimensional model for solidification process with supercooling.
International Journal of Heat and Mass Transfer, 106:91–102, 2017.
39
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.
[37] NIST/SEMATECH. e-handbook of statistical methods, 1 2015. URL http:
//www.itl.nist.gov/div898/handbook/.
[38] B. A. Finlayson. Nonlinear Analysis in Chemical Engineering. McGraw-
Hill, New York, 1980.
[39] R. G. Rice and D. D. Do. Applied mathematics and modeling for chemical
engineers. John Wiley & Sons, 2012. ISBN 1118343026.
[40] S. Quoilin, A. Desideri, J. Wronski, I. Bell, and V. Lemort. Thermocycle:
A modelica library for the simulation of thermodynamic systems. In The
10th International Modelica Conference, March 10-12, 2014, Lund, Sweden,
Linköping Electronic Conference Proceedings, pages 683–692. Linköping
University Electronic Press, 2014.
[41] B. A. Finlayson. The method of weighted residuals and variational princi-
ples. ACADEMIC PRESS, INC., New York, 1972. ISBN 1611973236.
[42] N. L. Segall, J. F. MacGregor, and J. D. Wright. Collocation methods for
solving packed bed reactor models with radial gradients. The Canadian
Journal of Chemical Engineering, 62(6):808–817, 1984.
[43] J. B. Rawlings and B. R. Bakshi. Particle filtering and moving horizon es-
timation. Computers & Chemical Engineering, 30(10-12):1529–1541, 2006.
[44] A. Gelb. Applied Optimal Estimation. MIT Press, Cambridge, MA, 1974.
[45] R. Schneider and C. Georgakis. How to NOT make the extended Kalman
filter fail. Industrial & Engineering Chemistry Research, 52(9):3354–3362,
2013.
[46] R. E. Murray and D. Groulx. Experimental study of the phase change
and energy characteristics inside a cylindrical latent heat energy storage
system: Part 1 consecutive charging and discharging. Renewable Energy,
62:571–581, 2014.
[47] P. Kühl, M. Diehl, T. Kraus, J. P. Schlöder, and H. G. Bock. A real-time
algorithm for moving horizon state and parameter estimation. Computers
& Chemical Engineering, 35(1):71 – 83, 2011. ISSN 0098-1354.
[48] M. Dannemand, J. M. Schultz, J. B. Johansen, and S. Furbo. Long term
thermal energy storage with stable supercooled sodium acetate trihydrate.
Applied Thermal Engineering, 91:671–678, 2015.
40
Post-print version of the article: Barz, T., Seliger, D., Marx, K., Sommer, A., Walter, S. F., Bock, H. G., & Körkel, S. (2018). State and
state of charge estimation for a latent heat storage. Control Engineering Practice, 72, 151-166. doi: 10.1016/j.conengprac.2017.11.006.
The content is identical to the published paper but without the final typesetting by the publisher.