Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving...

8

Transcript of Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving...

Page 1: Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving adaptiv e mesh when mo deling a 2D explosion with complicated w a v e structure. 1

Application of Moving Adaptive Meshes in

Hyperbolic Problems of Gas Dynamics �

Boris N. Azarenoky

Abstract

Coupled algorithm of using the Godunov's type solver and adap-

tive moving mesh is applied to generate moving adaptive mesh when

modeling a 2D explosion with complicated wave structure.

1 Introduction

Coupled algorithm of using the Godunov's type solver and adaptive movingmesh has been o�ered in [1, 2]. In this approach after every mesh iterationthe �nite-volume ow solver updates the ow parameters at the new timelevel directly on the curvilinear moving grid without interpolation from onemesh to another [3, 4]. Thus, we eliminate the errors caused by interpola-tion procedure which smears the discontinuities. This scheme on one handutilizes the idea of the Godunov's scheme on the deforming meshes [5] andon the other hand is of the second-order accuracy in time and space.

Method of adaptive grid generation has been suggested in [6]. Methodis variational, i.e. we consider the problem of minimizing a �nite-di�erencefunction approximating the Dirichlet's functional written for surfaces. Thediscrete functional has an in�nite barrier at the boundary of the set of gridswith all convex quadrilateral cells and this guarantees unfolded grid genera-tion during computations both in any simply connected, including noncon-vex, and multiply connected 2D domains. This folding-resistant propertyis very important since if any of the cells becomes folded we have to stopcalculation of the ow problem and use special procedures to continue mod-eling. The barrier property is also of particularly importance in the vicinity

�This work was supported by the Russian Fund of Fundamental Research (project

code 02-01-00236)yComputing Center of Russian Academy of Sciences, Vavilov str. 40, GSP-1, Moscow,

Russia. Email: [email protected]

169

Page 2: Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving adaptiv e mesh when mo deling a 2D explosion with complicated w a v e structure. 1

of shock waves where the cells are very narrow and maximal aspect ratioachieves 50 and larger [7].

When modeling 2D hyperbolic problems with discontinuous solution onthe moving adaptive mesh it is possible to reduce the errors, caused byshocks smearing over the cells, by many factors of ten and, therefore, todecrease signi�cantly, by several times [7], the overall error.

2 Modeling of explosion

We consider a spherical explosion between two parallel walls at z=0 andz=1 [8]. Initially the gas is at rest with parameters (p; �)out=(1; 1) eve-where except in a sphere centered at (0; 0; 0:4) with radius 0:2. Inside thesphere (p; �)in=(5; 1), the ratio of speci�c heats =1:4. The initial jumpin pressure results in an outward moving shock and a contact discontinuityand an inward moving rarefaction wave. There occurs interactions betweenthese waves and between waves and the walls. The ow by t=0:7 consistsof several shocks and strong tangential discontinuity surrounding the low

density region near the center.First, until the initial outward shock reaches the wall z=0, the solution is

spherically symmetric. Further, it remains cylindrically symmetric and weuse the 2D axisymmetric formulation of the problem. In half-plane �=const:

(where � is an angle in cylindrical coordinates) we compute the domain(x; z)2[0; 1:4]�[0; 1] and on the axis x=0 de�ne the symmetric boundaryconditions. On the walls z=0; 1 we use the condition of re ection and atline x=1:4 undisturbed values (u; v; p; �)out are de�ned. The �xed mesh isrectangular. The pressure contours at t=0:7 computed on the �xed mesh100�140 are presented in Fig.1.

We perform adaptation by minimizing the Diriclet's functional [1, 2].On the walls and axis of symmetry we apply constrained minimization toprovide consistent redistribution of the grid nodes inside the domain andon its boundary [7]. Up to t=0:45 we calculate on the rectangular meshand then the adaptive procedure is switched on. Since strong grid linescompression results in decreasing the admissible time step (value of 4t fallsproportionally to the increase of the cell aspect ratio) we use the followingstrategy. Main part of the time interval we compute on not very condensedmesh and at some moment t

0=0:7�Æt we attain a maximum compressionof grid lines in the vicinity of discontinuities. Following this methodologywithin the time interval (0:45; 0:65) we set rather a small coeÆcient of adap-tation [1, 2] ca=0:07 to 0:1. Here it is suÆcient to perform 3 mesh iterations

170

Page 3: Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving adaptiv e mesh when mo deling a 2D explosion with complicated w a v e structure. 1

at every time step. The admissible time step 4t is decreased by 5 to 10times in comparison with 4t on the rectangular mesh.

Further, within the �nal interval (0:65; 0:7), the coeÆcient ca is increasedup to 0:18 to 0:4 and then time step falls down to 0:05 to 0:005 of 4t on therectangular mesh. It is not a constant value during computation becausethe mesh constantly "breaths" and accordingly the value of 4t periodically�rst decreases then increases, etc.. At this stage it is suÆcient to perform1 to 2 mesh iterations at every time step.

In the �rst series of computations with adaptation the pressure p is usedas a control function f [1, 2]. In Figs.2,3 the pressure contours and adaptedmesh are shown, respectively. We see that the shocks thickness is decreasedsigni�cantly in comparison with the �xed mesh solution presented in Fig.1.However the grid lines can be strongly condensed to the outer shock and twomore ones adjoining to it. This is due to insuÆcient number of grid points.In the next calculations we use the mesh 200�250, see Fig.4. Here boththe intensive shocks and compression waves are depicted by the condensedgrid lines rather �ne. Pressure contours, computed on the rectangular andadapted meshes, are presented in Figs.5,6.

Since p is continuous across the tangential discontinuity the mesh doesnot feel it. In the next calculations the density � it is used as a controlfunction f . Here the mesh 100�140 depicts the tangential discontinuityvery clear, see Fig.7. Density contours computed on the quasiuniform andadaptive meshes are presented in Figs.8,9. Comparing the grids with thecontrol function f=p, Fig.3, and f=�, Fig.7, one can note that in spite ofthe fact that in the second case ca is twice larger, in the �rst case the shocksare indicated by the grid lines a bit more clear. This occurs due to in uenceof the contact discontinuity on the mesh in the second case.

References

[1] B. N. Azarenok and S.A. Ivanenko, Application of adaptive grids in numer-

ical analysis of time-dependent problems in gas dynamics, Comput. Maths.

Math. Phys., 40(2000), No. 9, pp. 1330{1349.

[2] S.A. Ivanenko and B.N. Azarenok, Application of moving adaptive grids for

numerical solution of nonstationary problems in gas dynamics, Int. J. for

Numer. Meth. in Fluids, 39(2002), No. 1, pp. 1-22 (See also

http://www.math.ntnu.no/conservation/2001/043.html).

[3] B.N. Azarenok, Realization of a second-order Godunov's scheme, Comp.

Meth. in Appl. Mech. and Engin., 189 (2000), pp. 1031{1052.

171

Page 4: Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving adaptiv e mesh when mo deling a 2D explosion with complicated w a v e structure. 1

0.8125

0.8500 0.8500

0.85

00

0.8500

0.8500

0.8875

.8875

0.8875

0.8875

0.8875

0.8875

0.88

75

0.9250

0.9250

0.92

50

0.9250

0.9250

0.9250

0.9375

0.9250

0.9625

0.9625

0.96

25

0.9625

0.96250.9

625

0.9625

0.96250.9

625

0.9625

0.9625

1.0000

1.00

00

1.0000

1.00

00

1.0000

1.0000

1.0000

1.00001.0000

000

1.0000

1.0000

1.0000

1.0375

1.03

75

1.0375

1.03

75

1.0250

1.0375

1.0375

1.0375

1.0375

1.0375

1.03

75

1.0375

1.0375

1.07

50

1.0750

1.0750

1.0750

1.0750

1.0750

1.07

50

1.0750

1.07

50

1.0750

1.11

25

1.1125

1.11

25

1.1125

1.1125

1.11

25

1.1125

1.1125

1.1125

500

1.1500

1.1500

1.1500

1.1500

1.15

00

1.17

50

1.20

00

1.1 8

1.1875

1.187

5

1.1875

1.23

75

1.2250

1.2250

1.26

25

1.26

25

1.30

00

1.30 00

1.30

00

1.3375

1.3750

1.3750

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.20

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Figure 1: Pressure contours from 0:775 to 1:5 with increment 0:0125 in the x�z

plane at t=0:7 computed on the rectangular mesh 100�140.

0.81250.8500

0.8500

0.850

0

0.8500

0.8500

0.8500

0.8875

0.8875

0.8875

0.8875

0.8875

0.8875

0.8875

0.9250

0.9250

0.9250

0.9250

0.9250

0.92500.9250

0.9250

0.9625

0.9625

0.96

25

0.9625

0.9625

0.9625

0.9625

0.9625

0.9625

1.0000

1.00

00

1.0000

000

1.0000

1.000

01.0

000

1.0000

1.0000

1.0250

1.0000

1.0000

1.03

75

1.03

75

1.03

75

1.0375

1.0375

1.0625

1.0375

1.0375

1.0375

1.0375

1.03

75

1.0375

1.03

75

1.0750

1.0750

1.0750

1.0750

1.0750

1.0750

1.07

50

1.0750

1.0750

1.0750

1.075

0

1.11

25

1.1125

1.11

25

1.1125

1.1125

1.1125

1.11

25

1.1125

1.1125

1.1250

1.162

5

1.1500

1.1500

1.1500

1.1500

1.1500

1.13

75

1.150

0

1.15001.1375

1.18

75

1.1875

1.1875

1.1750

1.2000

1.22

50

1.22

50

625

1.2625

1.32

50

1.30

00

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.20

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Figure 2: Pressure contours computed on the adapted mesh 100�140.

172

Page 5: Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving adaptiv e mesh when mo deling a 2D explosion with complicated w a v e structure. 1

Figure 3: Adapted mesh 100�140, p is a control function, ca=0:21.

Figure 4: Adapted mesh 200�250, p is a control function, ca=0:18.

173

Page 6: Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving adaptiv e mesh when mo deling a 2D explosion with complicated w a v e structure. 1

125

.8125

0.8125

0.8500

0.8500

0.8500

0.8875

0.887

5

0.8875

0.8875

0.8875

0.88

750.8875

0.9250 0.925

0

0.9250

0.925

0

9250

0.925

0 0.9250

0.92500.9250

0.9250

0.9625

0.96

25

0.9625

0.9625

0.9625

0.9625

0.96

25

0.9625

0.9625

0.9625

1.0000

1.0000

1.000

0

1.000

0

1.00

00

1.0000

1.0000

1.00

00

1.0000

1.0000

1.0000

1.0000

1.037

5

1.0375

1.0375

1.03

75

1.0375

1.0375 1.0375

1.0375

1.0500

1.0375

1.0375

1.0375

1.03

75

1.0375

1.07

50

1.0750

1.07

50

1.0750

1.0750

1.07

50

1.0750

1.0750

1.0750

1.07

50

1.11

25

1.1125

1.11

25

1.1125

1.1125

1.1125

1.11

25

1.11

25

1.1125

1.11251.

150

1.1500

1.1500

1.1500

1.1500

1.1500

1.1500

1.15

00

1.1500

1.1500

1.1500

1.18

75

1.1875

1.1875

1.1875

1.1875 1.18751.1875

1.1875

1.18

75

1.2250

1.2250

1.2250

625

1.2500

1.3000

1.30

00

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.20

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Figure 5: Pressure contours computed on the rectangular mesh 200�250.

0.81250.8500

0.850

0

0.850

0

0.85

00

0.8500

0.8500

0.8875

0.8875

0.887

5

0.887

5

0.8875

0.8875

0.8875

0.88

750.9250 0.9250

0.9250

0.925

0

0.925

0

0.9250

0.92500.9250

0.9250

0.9625

0.9625

0.9625

0.96

25

0.962

5

0.9625

0.9625

0.9625

0.96250.

9625

0.9625

0.9625

1.0000

.0000

1.0000

1.0000

1.00

00

1.00

00

1.0000

1.0000

1.0000

1.0000

1.0000

1.0125

1.0375

1.0375

1.03

75

1.0375

1.0375

1.0375

1.0375

1.0375

1.03

75

1.0375

1.0375

1.0375

0375

1.0750

1.0750

1.0750

1.0750

1.0750

1.07

50

1.0750

1.0750

1.0750

1.075

0

1.0750

1.11

25

1.1125

1.1125

1.1125

1.1125

1.11

25

1.1125

1.1125

1.112

5

1.150

0

1.1500

1.1500

1.1500

1.1500

1.15

00

1.1500

1.15001.1500

1.1875

1.1875

1.18

75

1.187

5

1.1875

1.225

0

1.2250

1.225

0

1.2000

1.30

00

1.3000

1.3000

1.3375

1.33

75

1.4125

125

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.20

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Figure 6: Pressure contours computed on the adapted mesh 200�250.

174

Page 7: Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving adaptiv e mesh when mo deling a 2D explosion with complicated w a v e structure. 1

Figure 7: Adapted mesh 100�140, � is a control function, ca=0:4.

0.275

0

0.3125

0.3125

500

0.35

00

0.3500

0.3875

0.3750

0.4250

0.425

0

0.4250

0.4625

0.4625

5000

0.5000

0.51

25

.5375

0.5375

0.55

00

0.5750

0.5875

0.5750

0.612

5

0.61

25

0.6500

0.6500

0.68

75

0.6625

0.7250

0.7250

0.687

5

0.7625

0.7625

0.76

25

0.8000

0.7875

0.8375

0.8375

0.8750

0.8625

0.8750

0.87

500.8750

0.875

0

0.8750

0.9125

0.9125

0.9125

0.9000

9125

0.912

5

0.9125

0.91

25

.912

5

0.9500

0.9500

0.9500

0.95

00

0.9500

0.9500

0.95

00

0.95000.9500

0.9500

0.9500

0.9500

875

.9875

0.9875

0.98

750.9875

0.9875 0.9875

0.98750.9875

0.9875

1.0250

1.02

50

1.0250

1.0250

1.02501.0250

1.0250

1.02

50

1.0250

1.0250

1.02

50

1.0625

1.0625

1.0625

1.0625

1.0625

1.0625

1.06

25

1.0625

1.0625

1.0625

1.06

25

1.1000

1.10001.1000

1.1000

1.1000

1.10

00

1.10

00

1.0875

1.13

75

1.1375 1.13

75

1.137

5

1.13751.1

750

1.17

50

1.1750

1.2125

1.212

5

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.20

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Figure 8: Density contours from 0:2 to 1:3 with increment 0:0125 computed on

the rectangular mesh 100�140.175

Page 8: Application of Mo ving Adaptiv e Meshes in - ccas.ru fileving mesh is applied to generate mo ving adaptiv e mesh when mo deling a 2D explosion with complicated w a v e structure. 1

0.23

75

0.2750

0.3125

0.312

5

0.3500

0.3500

0.3875

0.4000

0.4250

0.42

50

0.42

50

0.4625

0.4625

0.5000

0.50

00

0.5375

0.550

0375

0.5750

0.5750

0.5875

0.6125

0.6125

500

0.6500

0.65

00

0.6875

0.68

75

6875

0.7250

0.7125

0.7625

0.76

25

625

0.8000

0.8000

0.8375

0.837

5

.8375

0.8375

0.8750

0.8750

0.87

50

0.87

50

0.8750

0.9125

0.9125

0.91

25

.9125

0.9125

0.9125

0.9125

0.9125

0.91

25

0.9500

0.9500

0.9500

0.9500

0.95000.9500 0.9500

0.9500

0.95

00

0.9500

0.9875

0.9875

0.98

75

0.9875

0.9875

0.9875

0.9875

0.9875

1.0000

1.02

50

1.025

0

1.0250

1.02

50

1.0250

1.0250

1.0250

1.0250

1.0250

1.0250

1.02

50

1.0625

1.06251.0625

1.0625

1.0625

1.06

25

1.0625

1.0625

1.0750

1.10

00

1.1000

1.1000

1.1000

1.1000

1.10

00

1.100

0

1.1000

1.1375

1.1375

.137

5

1.1375

1.17501.1750

1.1750

1.21

25

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1.20

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Figure 9: Density contours computed on the adapted mesh 100�140.

[4] B.N. Azarenok, S.A.Ivanenko and T.Tang, Godunov's scheme and moving

adaptive grids, Report on applied mathematics,

http://www.math.ntnu.no/conservation/2002/016.html

[5] S.K. Godunov (Ed.), et al., Numerical Solution of Multi-Dimensional Prob-

lems in Gas Dynamics, Nauka press, Moscow, (1976), (in Russian).

[6] S.A.Ivanenko, Adaptive grids and grids on surfaces. Comp. Maths. Math.

Phys, 33(1993), No. 9, pp. 1179{1193.

[7] B.N. Azarenok, Variational barrier method of adaptive grid generation in

hyperbolic problems of gas dynamics, SIAM J. Num. Anal., to appear. (See

also http://www.math.ntnu.no/conservation/2001/042.html)

[8] J.O. Langseth and R.J. LeVeque, A wave propagation method for 3D hy-

perbolic conservation laws, J. Comp. Phys. 165(2000), pp. 126{166.

176