Skip to content

Commit 4e99e71

Browse files
committed
add dev test cases for radial pulsations
1 parent 0f987aa commit 4e99e71

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+10965
-22
lines changed

star/dev_cases_test_RSP2/dev_rsp2_Cepheid_6M/inlist_rsp2_Cepheid

+31-12
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@
5151
kap_CO_prefix = 'a09_co'
5252
/ ! end of kap namelist
5353

54-
&controls
54+
&controls
55+
num_trace_history_values = 2
56+
trace_history_value_name(1) = 'log_rel_run_E_err'
57+
trace_history_value_name(2) = 'rel_E_err'
58+
warn_when_large_rel_run_E_err = 1d-2
59+
60+
!convergence_ignore_equL_residuals = .true.
61+
5562
!save_controls_namelist = .true.
5663
!controls_namelist_name = 'rsp2_controls.txt'
5764

@@ -67,8 +74,16 @@
6774

6875
! surf BCs
6976
use_zero_Pgas_outer_BC = .true.
70-
RSP2_use_L_eqn_at_surface = .true.
71-
77+
!RSP2_use_L_eqn_at_surface = .true.
78+
!use_compression_outer_BC = .true.
79+
80+
RSP2_Lsurf_factor = 0.5d0
81+
RSP2_use_L_eqn_at_surface = .true.
82+
RSP2_assume_HSE = .true.
83+
RSP2_use_RSP_eqn_for_Y_face = .true.
84+
RSP2_use_mass_interp_face_values = .false.
85+
RSP2_use_Stellingwerf_Lr = .true.
86+
7287
! timesteps
7388
! RSP_max_dt_times_min_dr_div_cs = 2d0
7489
dt_div_min_dr_div_cs_limit = 2d0
@@ -123,29 +138,33 @@
123138

124139
energy_eqn_option = 'dedt'
125140

126-
RSP2_assume_HSE = .true.
127141
include_w_in_correction_limits = .true.
128142
include_v_in_correction_limits = .true.
129143
include_L_in_correction_limits = .true.
130144

145+
RSP2_w_fix_if_neg = 5d-5
146+
RSP2_w_min_for_damping = 1d2
147+
131148
RSP2_alfap = 0.0d0 ! turbulent pressure; Pt ~ alfap
132149
RSP2_alfat = 0.0d0 ! turbulent flux; Lt ~ RSP2_alfat
133150
RSP2_alfam = 0.25d0 ! turbulent viscosity; Eq and Uq ~ RSP2_alfam
134151
RSP2_alfar = 0.0d0 ! radiative dissipation of turbulent energy; Dr ~ RSP2_alfar
135152
RSP2_alfad = 1d0
136153

137-
RSP2_num_outermost_cells_forced_nonturbulent = 1
138-
RSP2_num_innermost_cells_forced_nonturbulent = 5
154+
! RSP2_num_outermost_cells_forced_nonturbulent = 1
155+
! RSP2_num_innermost_cells_forced_nonturbulent = 5
139156
alt_scale_height_flag = .false.
140157

141-
tol_max_correction = 5d-7
158+
!tol_max_correction = 5d-7
142159

143160
! output
144-
x_integer_ctrl(1) = -1 ! which period to check
161+
x_integer_ctrl(1) = 0 ! which period to check
145162
x_ctrl(1) = 20 ! expected period (in days)
146163

164+
x_logical_ctrl(5) = .false.
165+
147166
x_logical_ctrl(7) = .true. ! doing pulses
148-
x_integer_ctrl(7) = 0 ! 3 ! which period to check (<= 0 means don't check any)
167+
x_integer_ctrl(7) = -1 ! 3 ! which period to check (<= 0 means don't check any)
149168
x_ctrl(7) = 20 ! expected period (in days)
150169
! x_ctrl(8) = 1.0 ! min_deltaR_for_periods (Rsun)
151170
x_ctrl(9) = 0.1 ! KE_growth_avg_abs_frac_new
@@ -163,7 +182,7 @@
163182
photo_interval = 2000
164183
profile_interval = 2000
165184
history_interval = 40
166-
terminal_interval = 2000
185+
terminal_interval = 100 !2000
167186

168187
!photo_interval = 100
169188
!profile_interval = 400
@@ -182,7 +201,7 @@
182201

183202
!max_number_retries = 0
184203

185-
!report_solver_progress = .true. ! set true to see info about solver iterations
204+
report_solver_progress = .true. ! set true to see info about solver iterations
186205
!report_ierr = .true. ! if true, produce terminal output when have some internal error
187206
!stop_for_bad_nums = .true.
188207

@@ -272,7 +291,7 @@
272291
History_Panels2_xaxis_name='day'
273292
History_Panels2_max_width = 40 ! only used if > 0. causes xmin to move with xmax.
274293

275-
!Grid2_file_flag = .true.
294+
Grid2_file_flag = .true.
276295
file_digits = 7
277296
Grid2_file_dir = 'png'
278297
Grid2_file_prefix = 'grid2'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. _ppisn:
2+
3+
*****
4+
ppisn
5+
*****
6+
7+
This test case evolves a very massive helium star from the He-ZAMS
8+
up to the ocurrence of a pulsational pair-instability event (see |Marchant2019|).
9+
10+
.. |Marchant2019| replace:: `Marchant et al. 2019 <https://ui.adsabs.harvard.edu/abs/2019ApJ...882...36M/abstract>`__
11+
12+
Initialization of the model
13+
===========================
14+
The initial mass of the helium star is set in ``inlist_extra``
15+
16+
.. literalinclude:: ../../../star/test_suite/ppisn/inlist_extra
17+
18+
In this case we use a :math:`72 M_\odot`
19+
20+
Last-Updated: 2019-11-12 (mesa r12413) by Pablo Marchant
21+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# this provides the definition of check_one
4+
# check_one
5+
source "${MESA_DIR}/star/test_suite/test_suite_helpers"
6+
7+
check_one
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
cd make
4+
make clean
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&model
2+
add_center = .FALSE.
3+
/
4+
5+
&mode
6+
l = 0
7+
/
8+
9+
&osc
10+
nonadiabatic = .TRUE.
11+
inner_bound = 'ZERO_R'
12+
/
13+
14+
&rot
15+
/
16+
17+
&num
18+
diff_scheme = 'MAGNUS_GL2'
19+
/
20+
21+
&scan
22+
grid_type = 'LINEAR'
23+
freq_min = 0.5
24+
freq_max = 5.0
25+
freq_min_units = 'ACOUSTIC_DELTA'
26+
freq_max_units = 'ACOUSTIC_DELTA'
27+
n_freq = 50
28+
/
29+
30+
&grid
31+
w_osc = 10
32+
w_exp = 2
33+
/

star/dev_cases_test_TDC/dev_TDC_Cepheid_6M/he_dep.mod

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)