3.1. Spectral Analysis Versus Impedance Spectroscopy
The widely used impedance spectroscopy of DSSCs requires a separate measurement for each discrete frequency. A sine-wave voltage input is applied on top of the selected steady-state voltage to the cell and after the transient effects are faded, the amplitude and phase of the same frequency component of the established current through the DSSC is observed. In this way, the linearized complex dynamic impedance of the DSSC for the single angular frequency
may be determined. Through repeating this procedure with different frequencies, the shape of the TF
can be obtained. Commercially available equipment uses an automated method for the determination of the real and imaginary part of the single points of the TF while using the correlation analysis [
1]. The action-diagram of such a system is shown in
Figure 1.
In
Figure 1, a signal generator outputs two signals, which are of the same, selectable frequency, and of identical amplitude but with a phase difference of
π/2. The process output
is distorted by the measurement noise
; thus the measured output
is also distorted. By choosing the measurement duration
the integration yields following signals:
In case when the disturbance is independent on the excitation, the integrals remain limited, whereas the other terms are directly dependent on . That means, for large , the influence of the disturbance is minimized. The real and imaginary parts of the transfer function are directly obtained for the angular frequency . Knowing the real and imaginary part of the TF its amplitude and phase can be also calculated. Performing further measurements with different angular frequencies, the nonparametric transfer function of the linearized system can be reconstructed.
The obvious drawback of the impedance spectroscopy is that, for obtaining the TF of a single DSSC, hundreds of measurements are necessary. Even when these measurements are performed automatically, the complete sequence takes long time and requires expensive equipment. Spectroscopy was applied in field of electrical and mechanical engineering for long time [
1], however due to available and inexpensive CPU-resources nowadays, mainly the spectral analysis is used instead.
The standard spectral analysis uses the Fourier-transformation of the input and the output signal of a stable process while using a single measurement. In the case of DSSC, this means applying of AC voltage of continuously changing frequency to the DSSC additionally to the steady-state DC-voltage and the measurement of the AC-component of the established current trough the cell. Knowing the applied AC components of a DSSC cell voltage
and the measured current
, the frequency-dependent dynamic cell impedance may be calculated, as follows:
However, this method returns correct results only in case when the disturbances (e.g., measurement noise) is negligibly related to the system output. If the measurement noise is considerable, the direct use of the Fourier-transformation yields erroneous results as shown in Equation (4).
Furthermore, the leaking-effect causes a “blurred” spectrum, which further deteriorates the result. In order to determine the frequency-dependent impedance with satisfying accuracy by the direct use of the Fourier-transformation, high-end equipment, and long measurements are necessary.
3.2. Spectral Analysis Using the Correlation Functions
The calculation of the nonparametric frequency-response using common measurement equipment and shorter measurement periods is still possible if the periodogram-method, according to Welch [
7], is applied. Using the theorem of Wiener-Khintchine [
8], the non-parametric estimation of the DSSC impedance in form of a TF
may be obtained using the auto-correlation of the AC current component
which is here formally the input signal and the cross-correlation of the AC voltage component (which here plays formally the role of the system output) with the AC current component
.
On the one hand, the Fourier transformation of the correlation function yields the spectral power density (SPD). On the other hand, the SPD can be represented as a product of the individual signals represented in the frequency domain, see Equation (5). Thus, the non-parametric estimation of the impedance can be calculated through division of the SPD of the auto-correlation function with the SPD of the cross-correlation function.
The impact of the measurement noise to the calculated non-parametric impedance estimation is now significantly reduced if the measured signal is not correlated with the measurement noise. To reduce the variance of the spectral analysis, the periodogram method may be further applied [
9] with an appropriate windowing of the individual periodogram data in the time domain. The information about the quality of the estimation over the used frequency range is given by the coherence-function:
By coherence-function values near to one, the linear dependence between the input and output is dominant, thus the non-parametric estimation is good. If the coherence-function tends to zero, there is no linear dependence between the input and output and the non-parametric estimation is poor. As one may notice, this is useful information for the parameter estimation procedure.
The result of the non-parametric spectral estimation is the frequency transfer function, which is defined with complex values related to discrete frequencies. Using these values graphical representation using Nyquist or Bode diagrams can be plotted. Based on the diagrams and their characteristic elements, the appropriate TF form and finally the elements of the equivalent electrical circuits of a DSSC may be chosen.
3.3. Parameter Identification Procedure
The non-parametric frequency transfer-function is the basis for the estimation of the parametric TF . During this process, we suppose the parametric TF structure and have to solve a quadratic optimization problem with some imposed restrictions.
The choice of the TF structure is from crucial importance, because it determines whether the optimization task succeeds or fails. The number of parameter is here also important because in case too many parameters are supposed, the system is overdetermined, and the optimization may fail because of numeric issues. In case of a too small parameter number, the parametric TF cannot describe the system behavior and the optimization task fails as well.
In case when resonance peaks are observed in the Bode-diagram, a general -th order TF should be supposed depending on the number of the resonant peaks. For example, in case of one resonant peak, a second order transfer-function may be eligible as shown in Equation (7). Thus, n resonant peaks would require a 2nth order TF, which can be decomposed into a product (or alternatively through partial fraction decomposition into a sum) of second-order TFs.
Due to physical circumstances, only positive values should be allowed for the static gain during the optimization process and furthermore only such TF parameters should be allowed which results in a stable plant. Such a second-order transfer function matches an equivalent electrical circuit consisting of RLC-elements.
If no resonant peaks are observed in the Bode-diagram, a TF consisting of simple real-valued pole-zero elements can be supposed. The number of zeros and poles may be supposed according to the number of observed “half-circles” observed in the Nyquist plot. For example, in the case when two half-circles are observed, a second-order TF with parameters having the static gain in Equation (8) can be supposed. The stability condition and the positivity of were here also enforced from the optimization algorithm.
Both in the case of form Equations (7) and (8) it is obvious, that the parameter R represents the linearized thermal resistance of the DSSC in the steady-state working-point, whereas in Equation (8), the relative values of the poles and zeros determine the capacitive or inductive nature of the impedance for the given angular frequency . When vertical lines are observed in the Nyquist-diagram, they indicate the sum of static gain and pole or zero element. They can be substituted in the equivalent circuit with a series connection of R and L/C-element.
Finally, the possibility to fit the results to a specific equivalent circuit known from the literature should be checked. In cases where this was not possible, a hint for a possible equivalent circuit may be given, which fits the more general transfer function form.
The estimation of the parameter of the supposed TF-structure is performed by a quadratic optimization algorithm. One possibility is to compare the real- and imaginary-part of the non-parametric and the parametric TF for each discrete angular frequency
and minimize the calculated quadratic error sum. The alternative way is to compare the phase and the gain differences for the building of the quadratic error sum [
10]. This second option in our study showed significantly better results. The likelihood of the optimization can be improved by the multiplication of the individual error squares for discrete angular frequencies
with the matching value of the coherence-function obtained for the same angular frequency
in Equation (9) [
10].
In Equation (9), is a positive constant (weighting of the phase estimation), which gives a further possibility to improve the convergence of the optimization. The optimization goal is to find such parameter of the supposed TF, which results in a minimal value of the error-sum .
3.4. Parameter Identification Example with Glass-Based DSSC
The proposed identification method was tested while using a standard DSSC with glass electrodes prepared as described in [
11]. The sine-sweep signal with range of (1 Hz–50,000 Hz) was added to the constant steady-state voltage. The lower frequency boundary was set to cover all the dynamic properties of the cell, whereas the higher boundary was imposed through the used CPU-based hardware platform. From the bode-diagram of the identified non-parametric TF, it was obvious that there are no resonant peaks. The Nyquist-diagram displayed two half-circles with negative imaginary part. As this is an obvious characteristic of second-order-systems with two time constants e.g., real poles and zeros, as first the parametric identification was performed while using a second-order zero-pole element. From the Nyquist plot of the non-parametric estimation, it is furthermore obvious that it agrees with two parallel RC circuits in series with a resistor [
12], which is a published equivalent circuit for standard DSSC [
2]. In the following step, the structure of the supposed TF for the glass based DSSC was calculated and displayed in Equation (10) while using the equivalent circuit from
Figure 2 in accordance to Thévenin’s theorem. The Bode and Nyquist diagrams of the non-parametric and parametric estimations are shown in
Figure 3 and
Figure 4, together with the estimated parameter.
Generally, a very good agreement between the non-parametric and parametric estimations can be noticed. This indicates the validity of the proposed method for spectral analysis and parameter estimation. Indeed, as the resistors and are connected in series only its sum appears in the parametric TF (but not the individual ones). For this reason, it is not possible to distinguish between them during the parametric identification: only their sum can be determined.
3.5. Parameter Identification Examples with Half-Textile DSSC
In the next step, the proposed spectral analysis with black-box parameter identification procedure was applied to half-textile DSSCs with nanofiber-mat based counter electrodes. The working electrodes of the DSSCs were prepared on TiO
2-coated FTO (fluorine-doped thin oxide) glass plates (purchased from Man Solar) that were dyed with anthocyanins extracted from forest fruit tea (MAYFAIR). The counter electrodes were built on electrospun PAN nanofiber mat (prepared using the electrospinning machine “Nanospider Lab” (Elmarco, Czech Republic)) coated by one to five layers of PEDOT: PSS (CLEVIOS™ S V 4). As catalyst, a graphite layer performed by spraying was used (Graphit 33 by Kontakt Chemie). The both electrodes were put together and fixed by an adhesive tape, and the cells were filled with an iodine/triiodide based electrolyte (type 016 purchased from Man Solar). The detailed description of the cell preparation is given in [
11].
The measurements were taken three days after cell preparation. In this section only few representative examples will be shown and discussed. In the case of the half-textile DSSC with one layer of PEDOT: PSS a qualitative difference in the Nyquist plot related to the standard glass based DSSC is noticeable. The Nyquist plot consists of a half-circle with negative imaginary part which can be described with a parallel RC circuit [
12] and a half-circle with a positive imaginary part which can be described with a parallel RL circuit [
12]. Here, instead of the pure capacitive nature of the impedance known from the standard DSSC, an inductive part is also observable; this becomes dominant in high-frequency area. As there were still no significant resonance peeks in the Bode plot noticeable, for the parametric identification the pole-zero form from Equation (8) was chosen. The comparison of the Nyquist plots of the non-parametric and parametric pole-zero estimation in the frequency range from 1 Hz to 50 kHz is shown in
Figure 5. The estimated parameters are displayed in the
Figure 5. The agreement between the non-parametric and the pole-zero estimation is excellent.
The effect of having inductive impedance at higher frequencies was observable by all the investigated half-textile DSSC. However, no significant resonance peaks were detected in the Bode-diagrams. Furthermore, the presence of only one R/C element was observed in all measurements for the utilized frequency range between 1 Hz and 50 kHz, e.g., only one half-circle under the ordinate in the Nyquist-plot was observable. A half-circle with positive imaginary part, which stays for inductive impedance, was always detectable. For this reason, according to the black-box method, a modified equivalent-model is supposed consisting of one parallel R/C and one parallel R/L element connected in series with the resistances, as shown in
Figure 6. The equivalent impedance of the circuit is given in Equation (11).
As it can be noticed from
Figure 5, the parametric estimation of the proposed equivalent circuit elements shows a slight difference that is related to the parametric estimation while using zero-pole elements. Although this difference indicates that there are still secondary effects that are not modelled with the proposed equivalent circuit, the main properties of the textile-based DSSC, especially the inductivity are described with the proposed equivalent model.
Similar results are obtained for the textile DSSC with three PEDOT: PSS layers, where the differences between the non-parametric and parametric estimations are also small, despite of the obviously high measurement noise. The Nyquist-diagram of the identified impedance with the obtained parameter for this case is shown in
Figure 7.