
Cultural landscape is a concept that characterizes the diversity of forms, urban structure, historical value and symbolic function, reflecting the fact that a cultural landscape is a materialized system that carries a variety of verbal, visual and physical aspects of human existence. This scientific paper is based on a definition of cultural landscape that consists of cultural layers which are often associated with the memory of place, and our research is based on Taylor's definition and exploration of cultural landscapes. In terms of the linear dimension of human history, cultures interact, sometimes destroy and forget, but at the same time, the cultural layers are stacked, layered and acquired in various forms and features. The methodology is based on a qualitative case study with focus on challenges connected with transformation and recovery of area that carries traumatic legacy of the past. In the conclusion, the state of historical revitalization is presented.
Citation: Jana Pecnikova. Speaking territories in the cultural landscape: Challenges of transformation in the Central Europe[J]. Urban Resilience and Sustainability, 2023, 1(4): 251-259. doi: 10.3934/urs.2023016
[1] | Sani Aji, Poom Kumam, Aliyu Muhammed Awwal, Mahmoud Muhammad Yahaya, Kanokwan Sitthithakerngkiet . An efficient DY-type spectral conjugate gradient method for system of nonlinear monotone equations with application in signal recovery. AIMS Mathematics, 2021, 6(8): 8078-8106. doi: 10.3934/math.2021469 |
[2] | Khudija Bibi . Solutions of initial and boundary value problems using invariant curves. AIMS Mathematics, 2024, 9(8): 22057-22066. doi: 10.3934/math.20241072 |
[3] | Yasir Nadeem Anjam . The qualitative analysis of solution of the Stokes and Navier-Stokes system in non-smooth domains with weighted Sobolev spaces. AIMS Mathematics, 2021, 6(6): 5647-5674. doi: 10.3934/math.2021334 |
[4] | Song Lunji . A High-Order Symmetric Interior Penalty Discontinuous Galerkin Scheme to Simulate Vortex Dominated Incompressible Fluid Flow. AIMS Mathematics, 2016, 1(1): 43-63. doi: 10.3934/Math.2016.1.43 |
[5] | Hu Li . The modified quadrature method for Laplace equation with nonlinear boundary conditions. AIMS Mathematics, 2020, 5(6): 6211-6220. doi: 10.3934/math.2020399 |
[6] | Abdissalam Sarsenbi, Abdizhahan Sarsenbi . Boundary value problems for a second-order differential equation with involution in the second derivative and their solvability. AIMS Mathematics, 2023, 8(11): 26275-26289. doi: 10.3934/math.20231340 |
[7] | Yang Cao, Quan Shi, Sen-Lai Zhu . A relaxed generalized Newton iteration method for generalized absolute value equations. AIMS Mathematics, 2021, 6(2): 1258-1275. doi: 10.3934/math.2021078 |
[8] | Yasir Nadeem Anjam . Singularities and regularity of stationary Stokes and Navier-Stokes equations on polygonal domains and their treatments. AIMS Mathematics, 2020, 5(1): 440-466. doi: 10.3934/math.2020030 |
[9] | Yaojun Ye, Lanlan Li . Global existence and blow-up of solutions for logarithmic Klein-Gordon equation. AIMS Mathematics, 2021, 6(7): 6898-6914. doi: 10.3934/math.2021404 |
[10] | Fugeng Zeng, Peng Shi, Min Jiang . Global existence and finite time blow-up for a class of fractional $ p $-Laplacian Kirchhoff type equations with logarithmic nonlinearity. AIMS Mathematics, 2021, 6(3): 2559-2578. doi: 10.3934/math.2021155 |
Cultural landscape is a concept that characterizes the diversity of forms, urban structure, historical value and symbolic function, reflecting the fact that a cultural landscape is a materialized system that carries a variety of verbal, visual and physical aspects of human existence. This scientific paper is based on a definition of cultural landscape that consists of cultural layers which are often associated with the memory of place, and our research is based on Taylor's definition and exploration of cultural landscapes. In terms of the linear dimension of human history, cultures interact, sometimes destroy and forget, but at the same time, the cultural layers are stacked, layered and acquired in various forms and features. The methodology is based on a qualitative case study with focus on challenges connected with transformation and recovery of area that carries traumatic legacy of the past. In the conclusion, the state of historical revitalization is presented.
Nonlinear systems of partial differential equations are common in computational science and engineering, and present multiple challenges. Stability is needed for reliability and high accuracy for fine solution details. For fast turnaround and timely result delivery, generic systems of nonlinear equations from discretizations of the form
F(ϕ)=0 | (1.1) |
must be solved efficiently [1]. Several techniques exist to solve (1.1); for example, dual-time stepping [2,3], optimization algorithms [4], or iterative methods [1]. Among the classical iterative methods, Newton's method is an effective choice due to its quadratic convergence order. The obvious drawback with Newton's method is that the Jacobian must be known. Methods that bypass this requirement and instead approximate the Jacobian lead to lower convergence orders. A typical example is the secant method [1]. Alternatively, by using Newton-Krylov methodologies [5], only the action of the Jacobian is required and can be approximated by JF(ϕk)δu≈(F(ϕk+δu)−F(ϕk))/δ, where δ is small and u depends on the subspaces in the Krylov iterations. The advantage of Newton-Krylov methods is that an explicit Jacobian is never required, but sophisticated preconditioners becomes necessary [6] instead.
The focus in this paper is to facilitate the use of Newton's method where the key component is an exact explicit form of the Jacobian of (1.1). To exemplify our technique, we will use finite-difference operators in summation-by-parts (SBP) form [7,8] to discretize the incompressible Navier-Stokes (INS) equations in space. The boundary conditions will be weakly imposed via the simultaneous approximation term (SAT) technique [9]. In [10,11], a discretization based on the SBP-SAT technique of the nonlinear INS equations was proven to be stable, which is the key prerequisite.
Based on the formulation in [10], we show how the Jacobian can be explicitly calculated. It is also shown that the Jacobian has a block structure, where several blocks can be precomputed and reused when forming F, making the procedure very efficient.
To keep the paper focused on the derivation of the Jacobian, we follow [10] and consider a Cartesian grid. Exact Jacobians for numerical discretizations have recently been developed in [12] for so-called entropy stable numerical discretizations in SBP form in a periodic setting. Our new technique is not restricted to such specific discretizations, and we include the specific Jacobian related to the boundary conditions. The technique demonstrated in this paper can be used in a straightforward way on any numerical method for IBVPs that can be formulated in matrix-vector form. In addition, it can be readily extended to curvilinear and unstructured grids, arbitrary dimensions, and other sets of linear and nonlinear equations. In principle, all that is needed for the existence of the Jacobian is that F is differentiable with respect to ϕ. This covers the various nonlinearities that arise in discretizations of the Navier-Stokes equations (both compressible and incompressible). However, the feasibility of explicitly deriving the Jacobian is highly dependent on the way in which F is presented. As we shall see, discretizations in SBP-SAT form are particularly straightforward to differentiate, making Newton's method an attractive solution method.
The rest of the paper proceeds as follows. We introduce the continuous problem in Section 2 and present the semi-discrete formulation in Section 3. The Jacobian of the discretization is derived in Section 4. Implicit time integration is discussed in Section 5 and numerical experiments are performed in Section 6. Finally, conclusions are drawn in Section 7.
As an illustrative example of our technique, we consider the scenario illustrated in Figure 1. An incompressible fluid is moving from left to right. Hence, the left side is an inflow boundary, where Dirichlet conditions are imposed, and the right side is an outflow boundary, where natural boundary conditions [13] are imposed. The lower part of the domain is a no-slip wall and the upper side is an outflow boundary, where again natural conditions are imposed. The initial-boundary value problem for the INS equations that we consider is
˜I→wt+L(→w)=0H→w=→g˜I→w=˜I→f(x,y)∈Ω(x,y)∈∂Ω(x,y)∈Ωt>0t>0t=0. | (2.1) |
In (2.1), →w=(u,v,p)⊤, where u,v are the velocities in the x,y direction, respectively, and p is the pressure. Furthermore, Ω=[0,1]2 is the domain and ∂Ω its boundary. The initial data →f and boundary data →g are sufficiently smooth and compatible functions and the spatial operator is given by [10]
L(→w)=12[A→wx+(A→w)x+B→wy+(B→w)y]−ϵ˜I[→wxx+→wyy]. | (2.2) |
The matrices in (2.1) and (2.2) are
A=(u010u0100),B=(v000v1010),˜I=(100010000) |
and ϵ>0 is the viscosity coefficient. To obtain a stable discretization with the SBP-SAT technique, the nonlinear convective terms in (2.1) are split into a skew-symmetric form in (2.2) by taking an average between the conservative and non-conservative formulations [10]. This formulation is possible due to the divergence constraint. Lastly, the explicit form of the boundary conditions H→w=→g reads
u=g1v=g2atx=0(West)p−ϵux=g3−ϵvx=g4atx=1(East)u=0v=0aty=0(South)p−ϵvy=g5−ϵuy=g6aty=1(North). | (2.3) |
For completeness, we will show how to bound the solution. Only the south side of the domain is discussed explicitly for simplicity. Details of the upcoming analysis are found in [10].
For two vector functions →ϕ,→ψ defined on Ω, we introduce the inner product and norm
⟨→ϕ,→ψ⟩=∫Ω→ϕ⊤→ψdΩ,‖→ϕ‖2=⟨→ϕ,→ϕ⟩. |
By multiplying (2.1) by 2→w⊤ from the left and integrating over Ω, we get
ddt‖→w‖2˜I+2ϵ‖∇→w‖2˜I=BT, | (2.4) |
where ∇→w=(∇u,∇v,∇p)⊤, ‖∇→w‖2˜I is a dissipative volume term, and
BT=∫South→w⊤(B→w−2ϵ˜I→wy)dx |
contains the boundary terms evaluated at the south boundary. The other boundary terms are assumed dissipative and ignored. Imposing u=v=0 results in BT=0. Integrating (2.4) in time (assuming homogeneous boundary conditions on all sides) leads to
‖→w‖2˜I(T)+2ϵ∫T0‖∇→w‖2˜Idt≤‖f‖2˜I, | (2.5) |
which bounds the semi-norm of the solution (‖→w‖2˜I) and its gradients (‖∇→w‖2˜I) for any time.
A brief introduction of the SBP-SAT technique is provided below, see [7,8] for extensive reviews. We discretize the domain Ω=[0,1]2 with N+1 and M+1 grid points; xi=i/N, i=0,…,N and yj=j/M, j=0,…,M and let n=(N+1)(M+1) denote the total number of grid points. A scalar function q=q(x,y) defined on Ω is thereby represented on the grid by q=(q00,…,q0M,…qN0,…qNM)⊤ where qij=q(xi,yj). For the vector-valued function →w=(u,v,p)⊤, the approximation is arranged as →w=(u⊤,v⊤,p⊤)⊤. Let Dx=(P−1xQx)⊗IM+1 and Dy=IN+1⊗(P−1yQy), where ⊗ denotes the Kronecker product. Then the approximations of the spatial derivatives are given by
Dxu≈ux,Dyu≈uy. |
The matrices Px,y are diagonal and positive definite, so that P=Px⊗Py forms a quadrature rule that defines the norm ‖→w‖2I3⊗P=→w⊤(I3⊗P)→w≈∬Ω→w⊤→wdΩ. We have also introduced Ik, which is the identity matrix of size k. Moreover, the matrices Qx,y satisfy the SBP property
Qx+Q⊤x=EN−E0xQy+Q⊤y=EM−E0y, | (3.1) |
where E0x,y=diag(1,0,0,…,0) and EN,M=diag(0,0,0,…,1) are matrices of appropriate sizes.
By using the notation above, the semi-discrete approximation of (2.1) becomes [10]
˜I→wt+L(→w)=S(→w). | (3.2) |
The discrete spatial operator is given by
L(→w)=12[A(I3⊗Dx)→w+(I3⊗Dx)A→w+B(I3⊗Dy)→w+(I3⊗Dy)B→w]−ϵ˜I[(I3⊗Dx)2+(I3⊗Dy)2]→w, |
and the block matrices are
A=(U0I0U0I00),B=(V000VI0I0),˜I=(I000I0000), |
where U,V∈Rn×n are diagonal matrices holding u,v, respectively. The matrices I and 0 are the identity and the zero matrix of size n×n. Furthermore, S(→w) contains penalty terms that enforce the boundary conditions.
The purpose of the SAT S(→w) is i) to enforce the boundary conditions in (2.3) and ii) to stabilize the solution. One penalty term for each of the boundary conditions in (2.3) will be constructed. Let k∈{W,E,S,N}. The SAT at boundary k that enforces the boundary condition Hk→w=→g has the general form
Sk(→w)=(I3⊗P−1)Σk(I3⊗Pk)(Hk→w−→g). | (3.3) |
In (3.3), Σk is the penalty matrix to be determined for stability at boundary k. The quadratures are
Pk={E0x⊗Pyon the west boundary (k=W)EN⊗Pyon the east boundary (k=E)Px⊗E0yon the south boundary (k=S)Px⊗EMon the north boundary (k=N). |
For the boundary conditions listed in (2.3), the penalty terms are
SW(→w)=(I3⊗P−1)ΣW(I3⊗PW)(u−g1v−g2u−g1)⏟HW→w−→gSE(→w)=(I3⊗P−1)ΣE(I3⊗PE)(p−ϵDxu−g3−ϵDxv−g40)⏟HE→w−→gSS(→w)=(I3⊗P−1)ΣS(I3⊗PS)(u−0v−0v−0)⏟HS→w−0SN(→w)=(I3⊗P−1)ΣN(I3⊗PN)(−ϵDyu−g6p−ϵDyv−g50)⏟HN→w−→g, | (3.4) |
where
ΣW=(−U/2+ϵDx⊤000−U/2+ϵDx⊤000−I),ΣE=(I3⊗I)ΣS=(−V/2+ϵDy⊤000−V/2+ϵDy⊤000−I),ΣN=(I3⊗I). |
As an example, the south penalty term can be written as
SS(→w)=(I3⊗P−1)(−VPSu/2+ϵDy⊤PSu−VPSv/2+ϵDy⊤PSv−PSv), | (3.5) |
which is a more convenient notation for the derivation of the Jacobian in Section 4.
We will show in the following section that this specific choice of penalty matrices leads to nonlinear stability. The total penalty term in (3.2) becomes
S(→w)=∑k∈{W,E,S,N}S(→w)k. | (3.6) |
For completeness, we also show schematically how to obtain an energy estimate (again, all details can be found in [10]). Similarly to the continuous analysis, we omit all boundaries except for the south one. By mimicking the continuous path [14], we multiply (3.2) by 2→w⊤(I3⊗P) from the left and use the SBP property (3.1) to get
ddt‖→w‖2˜I⊗P+2ϵ‖∇→w‖2˜I⊗P=BT, | (3.7) |
where ‖∇→w‖2˜I⊗P=(I3⊗Dx→w)⊤(I3⊗P)˜I(I3⊗Dx→w)+(I3⊗Dy→w)⊤(I3⊗P)˜I(I3⊗Dy→w) is the dissipative volume term corresponding to the continuous one and
BT=→w⊤(I3⊗PS)B→w−2ϵ→w⊤(I3⊗PS)˜I(I3⊗Dy)→w⏟I+2→w(I3⊗P)SS(→w)⏟II | (3.8) |
contains all terms evaluated at the boundary.
The semi-norm of the solution (‖→w‖2˜I⊗P) is bounded if the right-hand side of (3.7) is non-positive. By expanding (3.8) and using the explicit form of SS(→w) stated in (3.4), we find
BT=v⊤PS(Uu+Vv+2p−2ϵDyv)−2ϵu⊤PSDyu⏟I−2v⊤PS(Uu/2+Vv/2+p⊤v−ϵDyv)+2ϵu⊤PSDyu⏟II=0, |
where term I is obtained from the governing equation and term II from the penalty term. As in the continuous setting, the boundary terms vanish. Integrating (3.7) in time (assuming homogeneous dissipative boundary conditions at all boundaries) leads to
‖→w‖2˜I⊗P(T)+2ϵ∫T0‖∇→w‖2˜I⊗Pdt≤‖f‖2˜I⊗P, |
which is the semi-discrete version of the estimate in (2.5).
In this section, we will explicitly compute the Jacobian of L and S in (3.2). Let h:Rn→Rn, where n=(N+1)(M+1) is the total number of grid points, be a differentiable vector function. For a given vector u=(u00,…uNM)⊤∈Rn, h outputs the vector h(u)=(h00,…hNM)⊤∈Rn. The Jacobian matrix Jh∈Rn×n of h is given by
Jh=(∂h00∂u00…∂h00∂uNM⋮⋱⋮∂hNM∂u00…∂hNM∂uNM). |
We will first derive the Jacobian of the different terms in L(→w) and, at the end, add the terms and state the complete result. To start, consider the vector function
h(u)=(h00⋮hNM)=(u00⋮uNM)=u. |
Since
∂h00∂u00=1∂h00∂u01=0∂h00∂u02=0…∂h00∂uNM=0∂h01∂u00=0∂h01∂u01=1∂h01∂u02=0…∂h01∂uNM=0⋮∂hNM∂u00=0∂hNM∂u01=0∂hNM∂u02=0…∂hNM∂uNM=1, |
the Jacobian of h(u)=u becomes Ju=I. Now let
h(u)=(h00⋮hNM)=Dxu=(D0,0…D0,NM⋮⋱⋮DNM,0…DNM,MN)(u00⋮uNM)=(D0,0u00+⋯+D0,NMuNM ⋮DNM,0u00+⋯+DNM,MNuNM). |
Then, in the same way
∂h00∂u00=D0,0∂h00∂u01=D0,1∂h00∂u02=D0,2…∂h00∂uNM=D0,NM∂h01∂u00=D1,0∂h01∂u01=D1,1∂h01∂u02=D1,2…∂h01∂uNM=D1,NM⋮∂hNM∂u00=DNM,0∂hNM∂u01=DNM,1∂hNM∂u02=DNM,2…∂hNM∂uNM=DNM,NM. |
Thus, JDxu=Dx.
To derive the Jacobian of the nonlinear term, UDxu, we let
h(u)=UDxu=(u00[D0,0u00+⋯+D0,NMuNM]⋮uNM[DNM,0u00+⋯+DNM,MNuNM])=(u00(Dxu)00⋮uNM(Dxu)NM). |
By using the product rule, we get that
∂h00∂u00=u00D0,0+(Dxu)00∂h00∂u01=u00D0,1…∂h00∂uNM=u00D0,NM∂h01∂u00=u01D1,0∂h01∂u01=u01D1,1+(Dxu)01…∂h01∂uNM=u00D0,NM⋮∂hNM∂u00=uNMDNM,0∂hNM∂u01=uNMDNM,1…∂hNM∂uNM=uNMDNM,NM+(Dxu)NM. |
Hence,
JUDxu=(u00D0,0+(Dxu)00u00D0,1…u00D0,NMu01D1,0u01D1,1+(Dxu)01…u01D1,NM⋮uNMDNM,0uNMDNM,1…uNMDNM,NM+(Dxu)NM)=(u00D0,0u00D0,1…u00D0,NMu01D1,0u01D1,1…u01D1,NM⋮uNMDNM,0uNMDNM,1…uNMDNM,NM)⏟UDx+((Dxu)000…00(Dxu)01…0⋮00…(Dxu)NM)⏟Dxu_=UDx+Dxu_, |
where Dxu_=diag(Dxu).
In a similar manner, for
h(u)=DxUu=(D0,0u200+⋯+D0,NMu2NM⋮DNM,0u200+⋯+DNM,MNu2NM) |
we get that
∂h00∂u00=2D0,0u00∂h00∂u01=2D0,1u01…∂h00∂uNM=2D0,NMuNM∂h01∂u00=2D1,0u00∂h01∂u01=2D1,1u01…∂h01∂uNM=2D1,NMuNM⋮∂hNM∂u00=2DNM,0u00∂hNM∂u01=2DNM,1u01…∂h01∂uNM=2DNM,NMuNM. |
Hence, JDxUu=2DxU. To summarize, we have shown that
Ju=I,JDxu=Dx,JUDxu=UDx+Dxu_,JDxUu=2DxU. | (4.1) |
Having established these building blocks, we next consider the terms in L(→w). Since these terms have a block structure, so will their Jacobians. Let h1,h2,h3:R3n→Rn be differentiable functions of →w and define ˜h:R3n→R3n given by
˜h(→w)=(h1(→w)h2(→w)h3(→w)). |
Since
h1=(h100h101⋮h1NM)and→w=(uvp) |
it follows that
Jh100=∂h100∂→w=(∂h100∂w00…∂h100∂w3NM)=(∂h100∂u∂h100∂v∂h100∂p)∈R1×3n |
and similarly for every element in h1. Therefore, the Jacobian of h1 can be expressed as
Jh1=∂h1∂→w=(∂h100∂u∂h100∂v∂h100∂p∂h101∂u∂h101∂v∂h101∂p⋮⋮⋮∂h1NM∂u∂h1NM∂v∂h1NM∂p)=(∂h1∂u∂h1∂v∂h1∂p)∈Rn×3n. |
The same holds for h2 and h3. Thus, the Jacobian of ˜h is given by
J˜h=(∂h1∂u∂h1∂v∂h1∂p∂h2∂u∂h2∂v∂h2∂p∂h3∂u∂h3∂v∂h3∂p)∈R3n×3n |
and each block in J˜h is of size n×n.
For the first term in L(→w), A(I3⊗Dx)→w, we get
˜h(→w)=(h1(→w)h2(→w)h3(→w))=A(I3⊗Dx)→w=(UDxu+DxpUDxvDxu)=(UDxu+DxpDxv_uDxu). |
The last identities are useful when deriving JA(I3⊗Dx)→w. By using (4.1), we get that
∂h1∂u=UDx+Dxu_∂h1∂v=0∂h1∂p=Dx∂h2∂u=Dxv_∂h2∂v=UDx∂h2∂p=0∂h3∂u=Dx∂h3∂v=0∂h3∂p=0. |
Thus,
JA(I3⊗Dx)→w=(UDx+Dxu_0DxDxv_UDx0Dx00). |
Likewise for the second term in L(→w), (I3⊗Dx)A→w, note that
(I3⊗Dx)A→w=(DxUu+DxpDxUvDxu)=(DxUu+DxpDxVuDxu), |
where we have used that Vu=Uv. Hence,
J(I3⊗Dx)A→w=(2DxU0DxDxVDxU0Dx00). |
The next two terms in L(→w) are treated in a similar manner and we get that
JB(I3⊗Dy)→w=(VDyDyu_00VDy+Dyv_Dy0Dy0)J(I3⊗Dy)B→w=(DyVDyU002DyVDy0Dy0). |
Finally, the contribution to the Jacobian of the linear viscous terms simply becomes
J−ϵ˜I[(I3⊗Dx)2+(I3⊗Dy)2]→w=−(ϵ(Dx2+Dy2)000ϵ(Dx2+Dy2)0000). |
Adding all of the terms proves the following proposition, which is the first of the two main results of this paper.
Proposition 1. The Jacobian JL of the discrete operator L in (3.2) is
JL=(J1112(Dyu_+DyU)Dx12(Dxv_+DxV)J22DyDxDy0) | (4.2) |
where
J11=12(UDx+Dxu_+2DxU+VDy+DyV)−ϵ(Dx2+Dy2)J22=12(VDy+Dyv_+2DyV+UDx+DxU)−ϵ(Dx2+Dy2). |
By following the procedure presented above, we next derive the Jacobian for S(→w). To start, we rewrite SS(→w) as
SS(→w)=(SS1SS2SS3)=(I3⊗P−1)(−VPSu/2+ϵDy⊤PSu−VPSv/2+ϵDy⊤PSv−PSv)∈R3n. | (4.3) |
The Jacobian of SS(→w) is
JSS=(∂SS1∂u∂SS1∂v∂SS1∂p∂SS2∂u∂SS2∂v∂SS2∂p∂SS3∂u∂SS3∂v∂SS3∂p)∈R3n×3n. |
The first block in JSS becomes
∂SS1∂u=(−∂∂uP−1VPSu/2⏟=P−1VPS/2+∂∂uϵP−1Dy⊤PSu⏟=ϵP−1Dy⊤PS)=P−1(−V/2+ϵDy⊤)PS. |
Since PS is diagonal, we have VPsu=UPSv and the second block is
∂SS1∂v=(−∂∂vP−1UPSv/2⏟=P−1UPS/2+∂∂vϵP−1Dx⊤PSu⏟=0)=−P−1UPS/2. |
Note that SS does not depend on p and also that SS2 and SS3 are both independent of u. Hence, the remaining non-zero blocks of JSS are
∂SW2∂v=P−1(−V+ϵDy⊤)PS,∂SW3∂v=−P−1PS, |
where we have used that VPsv=PsVv. Therefore,
JSS=(I3⊗P−1)(−V/2+ϵDy⊤−U/200−V+ϵDy⊤00−I0)(I3⊗PS). |
For non-homogeneous boundary conditions, the boundary data g will affect the Jacobian if the SATs are nonlinear with respect to →w. We illustrate this by considering SW1 (the first block in SW), which we rewrite in a similar manner as we did for SS1 in (4.3) and get
SW1(→w)=P−1(−U/2+ϵDx⊤)PW(u−g1)=−P−1UPW(u−g1)/2+ϵP−1Dx⊤PW(u−g1). |
Note that the terms −P−1UPW(u−g1)/2 and ϵP−1Dx⊤PW(u−g1) are nonlinear and linear with respect to →w (via u), respectively. The Jacobian to the linear term simply becomes
∂∂u(ϵP−1Dx⊤PW(u−g1))=∂∂u(ϵP−1Dx⊤PWu)⏟=ϵP−1Dx⊤PW−∂∂u(ϵP−1Dx⊤PWg1)⏟=0. |
For the nonlinear term, we use that UPW=PWU and Ug1=g1_u, which yield
−∂∂u(P−1PWU(u−g1)/2)=−∂∂u(P−1PWUu)/2)⏟=−P−1PWU+∂∂u(P−1PWg1_u)/2)⏟=P−1PWg1_/2=P−1(−U+g1_/2)PW |
Since SW1 is independent of both v and p, its Jacobian becomes
JSW1(→w)=(P−1(−(U−g1_/2)+ϵDx⊤)PW00)∈Rn×3n |
The Jacobian of the other penalty terms are derived in a similar manner and we have therefore proved the second main result of this paper.
Proposition 2. The Jacobian of the total penalty term (3.6) is
JS(→w)=∑k∈{W,E,S,N}JSk(→w), | (4.4) |
where
JSW(→w)=(I3⊗P−1)(−(U−g1_/2)+ϵDx⊤00−(V−g2_)/2−U/2+ϵDx⊤0−I00)(I3⊗PW)JSE(→w)=(I3⊗P−1PE)(−ϵDx0I0−ϵDx0000)JSS(→w)=(I3⊗P−1PS)(−V/2+ϵDy⊤−U/200−V+ϵDy⊤00−I0)(I3⊗PS)JSN(→w)=(I3⊗P−1PN)(−ϵDy000−ϵDyI000). |
Remark 1. We see from Proposition 4.1 and Proposition 2 that parts of the blocks in the Jacobian of both JL and JS are obtained directly from the construction of L. The few remaining parts are obtained by i) matrix multiplications between a diagonal matrix and a non-diagonal one (for example, UDx) and ii) matrix additions. This leads to few new additional operations and hence efficiency.
To evolve the system (3.2) in time, we will, for simplicity and ease of explanation, use the implicit backward Euler method. More accurate and efficient methods could be used in the same manner in practice. For an ordinary differential system of equations of the form
Mϕt+H(ϕ)=0, |
where ϕ is a function defined on the grid and M is a constant matrix, the backward Euler scheme becomes
M(ϕi+1−ϕi)Δt+H(ϕi+1)=0. | (5.1) |
In (5.1), Δt is the size of the time step and the superindices i and i+1 are the solution at time level i and i+1, respectively.
In order to obtain ϕi+1, the system of nonlinear equations in (5.1) must be solved. One strategy is to first form the function in (1.1), which results in
F(ϕi+1)=M(ϕi+1−ϕi)Δt+H(ϕi+1). | (5.2) |
If we find a vector ϕ∗ such that F(ϕ∗)=0, then ϕi+1=ϕ∗. To solve (5.2), we employ Newton's method [1], which is described in Algorithm 1. This allows us to solve a sequence of linear systems of equations and arrive at an approximation of ϕi+1.
Algorithm 1 Newton's method |
1: Input: ϕ0 and tolerance tol |
2: Output: An approximation of ϕ∗, where F(ϕ∗)=0 |
3: for j=0,1,2,… do |
4: solve JF(ϕj)hj=−F(ϕj) |
5: set ϕj+1=ϕj+hj |
6: if ‖F(ϕj+1)‖<tol then |
7: return ϕj+1 |
8: end if |
9: end for |
For the INS equations, ϕ=→w, H(ϕ)=L(ϕ)−S(ϕ), and M=˜I. Hence, (5.2) becomes
F(→wi+1)=1Δt([ui+1vi+10]−[uivi0])+L(→wi+1)−S(→wi+1). | (5.3) |
Furthermore, JH(→w)=JL(→w)−JS(→w), which yields
JF(→w)=1Δt˜I+JL(→w)−JS(→w), | (5.4) |
to be used in the Newton iterations. In (5.4), JL(→w) and JS(→w) are given in Proposition 4.1 and Proposition 4.2, respectively.
A simple finite-difference approximation of the Jacobian is given by [5]
Ji,j≈ˆJi,j=Fi(→w+δjej)−Fi(→w)δj. | (6.1) |
The approximation in (6.1) was used during the implementation of the analytical expression of JF since we expected ‖J−ˆJ‖∞ to be small. This allowed us to write unit tests ensuring that the Jacobian had been correctly implemented, by comparing it to the approximation. In (6.1), a small δ leads to a good approximation. However, note that if δ is chosen too small, the approximation will be contaminated by floating-point roundoff errors, which limits the practically achievable accuracy of J [5].
Computing difference approximations of the Jacobian also allowed us to compare the efficiency of Newton's method using approximate versus analytical Jacobians. Note that computing the approximation (6.1) requires n evaluations of F, resulting in O(n2) complexity, compared to the O(n) complexity of evaluating the exact Jacobian. Table 1 shows the execution times for evaluating the analytical Jacobian versus computing the approximation (6.1) at increasing resolutions.
Resolution | Exact | FD approximation |
5×5 | 0.005s | 0.858s |
10×10 | 0.006s | 13.85s |
15×15 | 0.006s | 76.49s |
20×20 | 0.007s | 261.6s |
As expected, due to the large number of evaluations of F needed to compute the approximation, such a strategy quickly becomes infeasible.
It is readily seen that the number of floating point operations needed to evaluate the discrete spatial operator L grows linearly with the degrees of freedom n. Consider, for example, the term A(I3⊗Dx)→w. The first product, (I3⊗Dx)→w, are finite difference approximations at each point in the grid, resulting in Cn operations, where C depends on the width of the difference stencil. The matrix A is a 3-by-3 block matrix with diagonal blocks, and so results in another O(n) number of operations. Analogously, the remaining terms in L each contribute O(n) operations. The arithmetic complexity of evaluating a penalty term S is O(√n) (assuming equal resolution in the horizontal and vertical directions), since S acts only on the grid boundary. Hence, the arithmetic complexity of evaluating F is O(n).
Let us study the arithmetic complexity of evaluating the Jacobian JF of F. Inspecting the form of the Jacobian JL in Proposition 4.1 we see a number of terms that need to be evaluated. The partial derivatives Dxu_, Dyv_, etc, have already been computed as part of the evaluation of L, and hence can be disregarded. Similarly, terms that do not depend on the solution, such as Dx, Dx2, etc, can be disregarded since they remain constant throughout the simulation. Finally, we have terms of the type UDx, DyV, etc. These are all products of a diagonal matrix and a banded difference stencil matrix, and each contribute with O(n) operations. Summing the terms uses O(n) operations. Therefore, the arithmetic complexity of evaluating JL is O(n). In fact, the number of operations needed to evaluate products like UDx or DyV do not exceed the number of operations needed to compute the discrete partial derivatives involved in L. Hence, the cost ratio of evaluating JL and evaluating L is less than 1 (i.e., the additional cost of evaluating JL is small). As before, the arithmetic complexity of evaluating the Jacobian with respect to a boundary penalty S is O(√n) since it acts only on the boundary of the grid. Thus, the total arithmetic complexity of evaluating JF is less than the cost of evaluating F.
The method of manufactured solution [15] is used to verify the implementation. In all computations in this subsection, the initial guess is the solution from the previous time step and the tolerance tol in Algorithm 1 is set to 10−12. For the SBP operators SBP21 and SBP42, the expected orders of accuracy for the system (3.2) are 2 and 3, respectively [16,17].
Remark 2. The SBP21 and SBP42 operators (in general, SBPpq) are difference operators that satisfy the SBP property (3.1) and all derivations in this paper hold for these difference operators. The numbers pq correspond to the interior accuracy and accuracy on the boundaries, respectively. For a diagonal norm based SBPpq operator, Df=fx+O(hl), where l=p in the interior and l=p/2 at the boundaries. For stable approximations, this leads, in general, to p+1 order accurate solutions [16,17].
The manufactured solution we have used is
u=1+0.1sin(3πx−0.01t)sin(3πy−0.01t)v=sin(3πx−0.01t)sin(3πy−0.01t)p=cos(3πx−0.01t)cos(3πy−0.01t). | (6.2) |
Inserting (6.2) into (2.1) leads to a non-zero right-hand side →k(t,x,y), which is evaluated on the grid and added to the right-hand side of (3.2) by the vector →k(t). Since →k is independent of →w, it does not affect the Jacobian. The initial and boundary data are also taken from (6.2). The step size is chosen to be Δt=10−5 and the computations are terminated at t=1. Next, we compute the pointwise error vector →e and its L2-norm ‖→e‖I3⊗P. The spatial convergence rate for the SBP operators is given by r=log(‖e‖i/‖e‖j)/log((j−1)/(i−1)), where i and j refer to the number of grid points in both spatial dimensions. The order of accuracy in space are presented in Table 2 and agree well with the theory.
operator | SBP21 | SBP42 | ||
N | ‖e‖ | r | ‖e‖ | r |
21 | 4.13e-02 | – | 1.90e-02 | – |
41 | 9.73e-03 | 2.16 | 2.19e-03 | 3.23 |
61 | 4.17e-03 | 2.13 | 6.34e-04 | 3.12 |
81 | 2.28e-03 | 2.12 | 2.70e-04 | 3.01 |
Theoretical | 2 | 3 |
Next, we consider the steady-state problem of (2.1) and (3.2), which means that the goal is to find →w∗ such that
L(→w∗)=S(→w∗). | (6.3) |
As before, we want to find an approximation to the vector →w∗ which satisfies
F(→w∗)=L(→w∗)−S(→w∗)=0. | (6.4) |
The Jacobian of F is JF(→w)=JL(→w)−JS(→w). When the iterate →wk is far away from →w∗, Newton's method may not converge and other techniques must initially be applied. We choose the SOR method [1] until ‖F(→wk)‖∞ is sufficiently small. For SOR, the next iterate is given by →wk+1=→wk(1−α)+(→wk−hk)α, where hk is the Newton step from Algorithm 1 and α∈(0,1].
To verify our procedure, we choose the steady manufactured solution to be [18]
u=1−eλxcos(2πy)v=12πλeλxsin(2πy)p=12(1−e2λx)λ=12ϵ−√14ϵ2+4π2 | (6.5) |
and the computational domain is changed to Ω=[−0.5,1]×[−1,1] for ϵ=1/20. Inserting (6.5) into the time-independent version of (2.1) leads to →k(t,x,y)=0. The initial guess is →w0=(1,1,…,1)⊤ and the tolerance tol in Algorithm 1 is again set to 10−12. Table 3 shows the error and convergence rates, which again agree well with the theory. In Figure 2, the streamlines and the velocity field are illustrated for the converged solution on the grid containing 100×100 points. They agree well with previous results [18].
operator | SBP21 | SBP42 | ||
N | ‖e‖ | r | ‖e‖ | r |
21 | 2.04e-01 | – | 4.95e-02 | – |
41 | 4.56e-02 | 2.16 | 6.86e-03 | 2.85 |
61 | 2.04e-02 | 1.98 | 2.20e-03 | 2.80 |
81 | 1.16e-02 | 1.97 | 9.76e-04 | 2.83 |
101 | 7.46e-03 | 1.97 | 5.16e-04 | 2.85 |
Theoretical | 2 | 3 |
Next, we will test the main development in this paper. For →wk sufficiently close to →w∗, Newton's method converges quadratically in any norm [1], which means that ek+1=Ce2k, where C varies marginally between iterations and ek=‖→wk−→w∗‖. To verify that, we consider a grid of size 100×100 with the SBP42 operator. The exact solution →w∗ is approximated by the last iterate. By the assumption that C is constant, the relation
ek+1ek≈(ekek−1)p |
is obtained for a general convergence rate p, which yields
p≈log(ek+1/ek)log(ek/ek−1). |
The error ek=‖→wk−→w∗‖∞ is presented in Table 4 together with the estimations of p. The convergence rate agrees well with the expected theoretical one, which verifies that the Jacobian of F is correct.
k | ‖ek‖∞ | p |
1 | 3.56e+00 | – |
2 | 1.85e+01 | – |
3 | 1.89e+00 | -1.38 |
4 | 1.21e+00 | 0.20 |
5 | 5.53e-01 | 1.74 |
6 | 1.10e-01 | 2.07 |
7 | 3.21e-03 | 2.19 |
8 | 3.31e-06 | 1.94 |
9 | 4.14e-12 | 1.98 |
Theoretical | 2 |
Next, we move on to a more realistic case where the boundary data is set to g1=1, g2=g3=g4=g5=g6=0, and ϵ=0.01, which will lead to a boundary layer. The computations are performed on Ω=[0,1]2 with 200×200 grid points with the SBP42 operator. Figure 3 illustrates u for the converged solution and the iterative convergence order, p, is presented in Table 5. The estimated iterative convergence order agrees well with what is theoretically expected.
k | ‖ek‖∞ | p |
1 | 1.68e+00 | – |
2 | 6.17e-01 | – |
3 | 1.15e-01 | 1.67 |
4 | 4.37e-03 | 1.95 |
5 | 1.02e-05 | 1.85 |
6 | 5.51e-11 | 2.00 |
Theoretical | 2 |
In the last experiment, we consider the incompressible Euler equation using a curvilinear grid. Both the south and north sides are solid surfaces, where the normal velocity is zero. The west side is an inflow boundary where u=1 and v=0 are specified, and at the east side, p=0 is imposed. We change the domain to Ω=[−1.5,1.5]×[0,0.8] and include a smooth bump at the south boundary given by y(x)=0.0625e−25x2 [19]. In Figure 4, the converged solution is illustrated and the estimated iterative convergence rate p is presented in Table 6 for the initial guess (u0;v0;p0)=(1,…,1;0,…,0;1,…1). Again, the results agree well with the theoretical value.
k | ‖ek‖∞ | p |
1 | 3.56e+00 | – |
2 | 4.91e-01 | – |
3 | 1.74e-02 | 1.69 |
4 | 3.33e-05 | 1.87 |
5 | 1.55e-10 | 1.96 |
Theoretical | 2 |
Remark 3. In the example above containing the curvilinear grid, the geometry is included in the definition of the derivative operators [20]. This simplifies the derivation of the corresponding Jacobian since no special consideration of the metric terms are required. The work in [20] was extended in [21] to included even more complex geometries with several sub-domains and non-conforming interfaces. In general, as long as the discretization can be written in a matrix-vector form (including unstructured mesh discretizations [22]), the additional effort to derive the Jacobian is small.
We derived an explicit expression for the Jacobian of a finite-difference discretization of the incompressible Navier-Stokes equations. Both the Jacobian of the system of equations and the Jacobian of the related boundary condition was computed exactly. By using the block structure of the discretization, we showed that the Jacobian had a block structure as well, which leads to a compact and clean expression. We also showed that large parts of the Jacobian were computed by evaluating the discretization. We showed that the Jacobian could be used both in steady-state and time-dependent simulations. The numerical discretization was verified by manufactured solutions and the spatial convergence rates agreed well with the theoretical expectations. Furthermore, the computed estimates of the iterative convergence rates for Newton's method was two, which verified that the Jacobian was correctly computed. The methodology used in this paper is general and can be used in a straightforward manner for any numerical discretization of initial boundary value problems that can be written in matrix-vector form. The method is particularly straightforward for approximations in SBP-SAT form.
J. N.: Conceptualization, Methodology, Funding acquisition, Project administration, Supervision, Writing–review and editing; F. L., O. Å.: Conceptualization, Formal analysis, Methodology, Software, Validation, Visualization, Writing–original draft.
The authors declare they have not used Artificial Intelligence (AI) tools in the creation of this article.
J. N. was supported by Vetenskapsrådet, Sweden [award 2021-05484 VR] and the University of Johannesburg.
The authors declare no conflict of interest.
[1] | Taylor K (2012) Landscape and meaning: Context for a global discourse on cultural landscape values. Managing Cultural Landscapes. Available from: http://hdl.handle.net/1885/59693. |
[2] | Taylor K (2014) Cities as cultural landscapes. In: Bandarin, F., Van Oers, R., Reconnecting the City: The Historic Urban Landscape Approach and the Future of Urban Heritage, 172–202. https://doi.org/10.1002/9781118383940.ch7 |
[3] | Taylor K, Clair AS, Mitchell NJ (2015) Conserving Cultural Landscapes: Challenges and New Directions. New York: Routledge. |
[4] | Oevermann H, Mieg HA (2015) Industrial Heritage Sites in Transformation. New York: Routledge. |
[5] | Collavitti AM (2018) Urban Heritage Management. Switzerland: Springer, Cham. https://doi.org/10.1007/978-3-319-72338-9 |
[6] | Ogawa Y (2019) The Memory Police. New York: Pantheon. |
[7] | Assman A (2011) Cultural Memory and Western Civilization. Cambridge: Cambridge University Press. |
[8] | Macdonald S (2013) Memorylands. London: Routledge. |
[9] | Czepczynski M (2012) Cultural Landscapes of Post-Socialist Countries. Dorchester: Ashgate. |
[10] | Kubicki P, Mach E (2022) European Cities in the Process of Constructing and Transmitting European Cultural Heritage. Kraków: Księgarnia Akademicka Publishing. https://doi.org/10.12797/9788381386708 |
[11] | Kostialova K (2015) The main aspects of the transformation of town disctricts—Podborova housing estate. Kulturna a socialna diverzita na Slovensku/Cultural and Social Diversity in Slovakia. Banska Bystrica: Belianum. |
Resolution | Exact | FD approximation |
5×5 | 0.005s | 0.858s |
10×10 | 0.006s | 13.85s |
15×15 | 0.006s | 76.49s |
20×20 | 0.007s | 261.6s |
operator | SBP21 | SBP42 | ||
N | ‖e‖ | r | ‖e‖ | r |
21 | 4.13e-02 | – | 1.90e-02 | – |
41 | 9.73e-03 | 2.16 | 2.19e-03 | 3.23 |
61 | 4.17e-03 | 2.13 | 6.34e-04 | 3.12 |
81 | 2.28e-03 | 2.12 | 2.70e-04 | 3.01 |
Theoretical | 2 | 3 |
operator | SBP21 | SBP42 | ||
N | ‖e‖ | r | ‖e‖ | r |
21 | 2.04e-01 | – | 4.95e-02 | – |
41 | 4.56e-02 | 2.16 | 6.86e-03 | 2.85 |
61 | 2.04e-02 | 1.98 | 2.20e-03 | 2.80 |
81 | 1.16e-02 | 1.97 | 9.76e-04 | 2.83 |
101 | 7.46e-03 | 1.97 | 5.16e-04 | 2.85 |
Theoretical | 2 | 3 |
k | ‖ek‖∞ | p |
1 | 3.56e+00 | – |
2 | 1.85e+01 | – |
3 | 1.89e+00 | -1.38 |
4 | 1.21e+00 | 0.20 |
5 | 5.53e-01 | 1.74 |
6 | 1.10e-01 | 2.07 |
7 | 3.21e-03 | 2.19 |
8 | 3.31e-06 | 1.94 |
9 | 4.14e-12 | 1.98 |
Theoretical | 2 |
k | ‖ek‖∞ | p |
1 | 1.68e+00 | – |
2 | 6.17e-01 | – |
3 | 1.15e-01 | 1.67 |
4 | 4.37e-03 | 1.95 |
5 | 1.02e-05 | 1.85 |
6 | 5.51e-11 | 2.00 |
Theoretical | 2 |
k | ‖ek‖∞ | p |
1 | 3.56e+00 | – |
2 | 4.91e-01 | – |
3 | 1.74e-02 | 1.69 |
4 | 3.33e-05 | 1.87 |
5 | 1.55e-10 | 1.96 |
Theoretical | 2 |
Resolution | Exact | FD approximation |
5×5 | 0.005s | 0.858s |
10×10 | 0.006s | 13.85s |
15×15 | 0.006s | 76.49s |
20×20 | 0.007s | 261.6s |
operator | SBP21 | SBP42 | ||
N | ‖e‖ | r | ‖e‖ | r |
21 | 4.13e-02 | – | 1.90e-02 | – |
41 | 9.73e-03 | 2.16 | 2.19e-03 | 3.23 |
61 | 4.17e-03 | 2.13 | 6.34e-04 | 3.12 |
81 | 2.28e-03 | 2.12 | 2.70e-04 | 3.01 |
Theoretical | 2 | 3 |
operator | SBP21 | SBP42 | ||
N | ‖e‖ | r | ‖e‖ | r |
21 | 2.04e-01 | – | 4.95e-02 | – |
41 | 4.56e-02 | 2.16 | 6.86e-03 | 2.85 |
61 | 2.04e-02 | 1.98 | 2.20e-03 | 2.80 |
81 | 1.16e-02 | 1.97 | 9.76e-04 | 2.83 |
101 | 7.46e-03 | 1.97 | 5.16e-04 | 2.85 |
Theoretical | 2 | 3 |
k | ‖ek‖∞ | p |
1 | 3.56e+00 | – |
2 | 1.85e+01 | – |
3 | 1.89e+00 | -1.38 |
4 | 1.21e+00 | 0.20 |
5 | 5.53e-01 | 1.74 |
6 | 1.10e-01 | 2.07 |
7 | 3.21e-03 | 2.19 |
8 | 3.31e-06 | 1.94 |
9 | 4.14e-12 | 1.98 |
Theoretical | 2 |
k | ‖ek‖∞ | p |
1 | 1.68e+00 | – |
2 | 6.17e-01 | – |
3 | 1.15e-01 | 1.67 |
4 | 4.37e-03 | 1.95 |
5 | 1.02e-05 | 1.85 |
6 | 5.51e-11 | 2.00 |
Theoretical | 2 |
k | ‖ek‖∞ | p |
1 | 3.56e+00 | – |
2 | 4.91e-01 | – |
3 | 1.74e-02 | 1.69 |
4 | 3.33e-05 | 1.87 |
5 | 1.55e-10 | 1.96 |
Theoretical | 2 |