Skip to text

3 Numerical examples and discussion

3.1 Viscous Burgers’ equation

This section reports on the example of the viscous Burgers’ equation

(11.22)∂∂tv(x,t)−ν∂2∂x2v(x,t)+v(x,t)∂∂xv(x,t)=0,

describing the velocity v(x,t) of a fluid in one spatial coordinate. The viscosity parameter was set to ν=0.02. By following [6], the PDE was semi-discretized in space through a finite difference scheme with 200 points. The resulting nonlinear dynamical system describing the temporal evolution was formulated as a quadratic-bilinear system of size q=200.

A data-driven bilinear model with degree M=2 could be constructed by sampling the first- and second-degree transfer functions H1(s1) and H2(s1,s2). In particular, H1(s1) was sampled on the imaginary axis at K1=200 points, log-spaced and corresponding to the frequency band [10−5,800]Hz. The function H2(s1,s2) was sampled at K2=4964 points, with both s1 and s2 purely imaginary and in the frequency interval [10−5,400]Hz. Running the proposed algorithm with ν=8 poles, 40 iterations, and M=2 to approximate H1 and H2 leads to a fitted bilinear model with overall order 13. Frequency-domain accuracy is reported in Figure 11.1, where the left panel shows the relative error with respect to both s1 and s2, and the right panel directly compares the responses.

Figure 11.1 Error analysis for the example in Section 3.1. Left panel: Relative error on H2 for both s1 and s2 on the imaginary axis. Right panel: Model-data comparison for H2(j2πf1,j2πf2) with respect to f2 and for several fixed values of f1.

In the time domain, the responses of the full-order model are compared with the fitted one in Figure 11.2 (left panel). In this experiment, t∈[0,10]s and the input is an amplitude-modulated chirp u(t)=0.1cos[2πf0(t)t][1−1/2cos(2π2t)], with f0(t) sweeping from 1mHz to 10Hz, in order to test accuracy over a broad frequency range. In the right panel of Figure 11.2, we also show that the system nonlinearity is being modeled correctly because adding the degree-2 subsystem leads to a substantial error reduction compared to a simple degree-1 approximation (where only H1 is fitted).

Figure 11.2 Time-domain solution of the example in Section 3.1. The left panel compares the full-order model response with that of the fitted model (of degree 2). The right panel reports the instantaneous error for two models with M=1,2, showing that the nonlinear ( M=2) model is more accurate than the linear approximation (M=1).

3.2 Nonlinear RC ladder

This example is an electrical network with nonlinear elements, originally introduced in [9]. In particular, it is an RC ladder circuit with diodes in parallel to resistors (see Figure 11.3). The input u(t) is a current source, while the output y(t) is the voltage at the first node.

Figure 11.3 Nonlinear electrical network of the example in Section 3.2, picture adapted from [22].

Diodes have an exponential characteristic so that the original state equation contains nonpolynomial nonlinearities. Therefore, starting from a model with q=50 states, Carleman bilinearization was used to obtain a lifted bilinear model with qbil=502+50. The resulting system is considered the starting point for applying the proposed data-driven modeling scheme.

We sampled H1(s1) at K1=101 points on the imaginary axis s1=j2πf1, with f1∈[10−1,102] in addition to s1(1)=0. Regarding higher-order transfer functions, we randomly selected K2=343 and K3=101 points to sample H2(s1,s2) and H3(s1,s2,s3).

Using the proposed algorithm with ν=6 poles and 20 iterations leads to the accurate fitting of the first M=3 frequency responses, as shown in Figure 11.4 for m=2. In time-domain, the model was tested in a 2-s long simulation with amplitude-modulated chirp input u(t)=2·sin[2πf0(t)t+π/2][1−12cos(2πt)], with f0(t) varying linearly from 0.5Hz to 50Hz.

Figure 11.4 Error analysis for the example in Section 3.2. Left panel: Model-data comparison for the degree-1 transfer function. Right panel: Degree-2 transfer function with respect to f2 for several fixed values of f1.

Figure 11.5 compares the original and reduced model responses, showing that adding higher-order transfer functions decreases the error and that the degree-3 model is sufficient to produce a response that is indistinguishable from the full-order model for this case. Note that the error curves depicted in Figure 11.5 are related to the time-domain simulation used for testing that involves an oscillatory signal. The input has here been chosen to push the system into a regime of nonlinear operation where the contribution from the higher-order transfer functions can be appreciated and, in particular, models with M=1,2 are insufficient, as shown in Figure 11.6.

Figure 11.5 Time-domain solution for the example in Section 3.2. Left panel: Comparison of full-order and fitted model of degree M=3. Right panel: Evolution of instantaneous error with respect to model degree.

Figure 11.6 Left panel: Time-domain response of example in Section 3.2, highlighting the qualitative difference between models with M=2 and M=3. Right panel: Error in the time-domain solution of Figure 11.5, measured as root mean square (RMS) and peak error (max. in t∈[0,2]).