@@ -49,35 +49,6 @@ module m_constants
4949 integer , parameter :: mapCells = 3 !< Number of cells around the bubble where the smoothening function will have effect
5050 real (wp), parameter :: R_uni = 8314._wp ! Universal gas constant - J/ kmol/ K
5151
52- ! RKCK constants
53- integer , parameter :: num_ts_rkck = 6 !< Number of time- stages in the RKCK stepper
54- ! RKCK 4th / 5th time stepper coefficients based on Cash J. and Karp A. (1990 )
55- real (wp), parameter :: rkck_c1 = 0._wp , rkck_c2 = 0.2_wp , rkck_c3 = 0.3_wp , rkck_c4 = 0.6_wp , & ! c1 c2 c3 c4 c5 c6
56- rkck_c5 = 1._wp , rkck_c6 = 0.875_wp
57- real (wp), dimension (6 ), parameter :: rkck_coef1 = (/ 0.2_wp , 0._wp , 0._wp , 0._wp , 0._wp , 0._wp / ) ! a21
58- real (wp), dimension (6 ), parameter :: rkck_coef2 = (/ 3._wp / 40._wp , 9._wp / 40._wp , 0._wp , 0._wp , & ! a31 a32
59- 0._wp , 0._wp / )
60- real (wp), dimension (6 ), parameter :: rkck_coef3 = (/ 0.3_wp , - 0.9_wp , 1.2_wp , 0._wp , 0._wp , 0._wp / ) ! a41 a42 a43
61- real (wp), dimension (6 ), parameter :: rkck_coef4 = (/- 11._wp / 54._wp , 2.5_wp , - 70._wp / 27._wp , & ! a51 a52 a53 a54
62- 35._wp / 27._wp , 0._wp , 0._wp / )
63- real (wp), dimension (6 ), parameter :: rkck_coef5 = (/ 1631._wp / 55296._wp , 175._wp / 512._wp , & ! a61 a62 a63 a64 a65
64- 575._wp / 13824._wp , 44275._wp / 110592._wp , &
65- 253._wp / 4096._wp , 0._wp / )
66- real (wp), dimension (6 ), parameter :: rkck_coef6 = (/ 37._wp / 378._wp , 0._wp , 250._wp / 621._wp , & ! b1 b2 b3 b4 b5 b6
67- 125._wp / 594._wp , 0._wp , 512._wp / 1771._wp / )
68- real (wp), dimension (6 ), parameter :: rkck_coefE = (/ 37._wp / 378._wp - 2825._wp / 27648._wp , 0._wp , & ! er1 er2 er3 er4 er5 er6 (4th / 5th error)
69- 250._wp / 621._wp - 18575._wp / 48384._wp , &
70- 125._wp / 594._wp - 13525._wp / 55296._wp , &
71- - 277._wp / 14336._wp , 512._wp / 1771._wp - 0.25_wp / )
72- ! Adaptive rkck constants
73- real (wp), parameter :: verysmall_dt = 1e-14_wp !< Very small dt, stop stepper
74- real (wp), parameter :: SAFETY = 0.9_wp !< Next dt will be maximum 0.9 * dt if truncation error is above tolerance.
75- real (wp), parameter :: RNDDEC = 1e8_wp !< Round calculated dt (16th digit) to avoid the inclusion of random decimals
76- real (wp), parameter :: PSHRNK = - 0.25_wp !< Factor to reduce dt when truncation error above tolerance
77- real (wp), parameter :: SHRNKDT = 0.5_wp !< Factor to reduce dt due to negative bubble radius
78- real (wp), parameter :: ERRCON = 1.89e-4_wp !< Limit to slightly increase dt when truncation error is between ERRCON and 1
79- real (wp), parameter :: PGROW = - 0.2_wp !< Factor to increase dt when truncation error is between ERRCON and 1
80-
8152 ! Relativity
8253 integer , parameter :: relativity_cons_to_prim_max_iter = 100
8354
0 commit comments