Skip to content

Commit 75b5900

Browse files
authored
Add conv_core_cpm Test Case (#508)
Adapted from suggestion by @BucheleL in issue #425. Also includes a useful pgstar setup for looking at details of convection and gradients, based on @annethoul and Morgan Chidester's 2022 MESA Summer School lab.
1 parent 52fea84 commit 75b5900

25 files changed

+3167
-79
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ star/test_suite/check_redo @fxt44
6161
star/test_suite/check_pulse_atm @warrickball
6262
star/test_suite/conductive_flame @fxt44 @rjfarmer
6363
star/test_suite/conserve_angular_momentum @orlox
64+
star/test_suite/conv_core_cpm @evbauer
6465
star/test_suite/custom_colors @rjfarmer
6566
star/test_suite/custom_rates @evbauer @fxt44
6667
star/test_suite/high_rot_darkening @orlox

docs/source/test_suite.rst

Lines changed: 91 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,13 @@ This test suite example checks the accretion of material and angular momentum on
186186

187187
This test suite example checks the functionality of the adaptive nuclear reaction network.
188188

189+
:ref:`c13_pocket`
190+
^^^^^^^^^^^^^^^^^
191+
192+
This test evolves a 2.0 |Msun| star through one thermal pulse on the
193+
asymptotic giant branch (AGB) and illustrates third dredge up and the
194+
formation of a :math:`^{13}{\rm C}` pocket.
195+
189196

190197
:ref:`carbon_kh`
191198
^^^^^^^^^^^^^^^^
@@ -214,13 +221,30 @@ This test checks that the atmosphere structure written to the
214221
pulsation output closely matches what is expected for the
215222
:math:`T(\tau)` relation specified by ``atm_T_tau_relation``.
216223

224+
225+
:ref:`conductive_flame`
226+
^^^^^^^^^^^^^^^^^^^^^^^
227+
228+
This test case models a conductively-propagated deflagration wave
229+
("flame") in a high-density, degenerate carbon-oxygen mixture. It
230+
also provides an example for use of the ``other_build_initial_model``
231+
and ``other_surface_PT`` hooks.
232+
217233

218234
:ref:`conserve_angular_momentum`
219235
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
220236

221237
This test suite example checks angular momentum conservation from the zero age main-sequence to the formation of a helium core in 1.0 Msun, Z=0.02 metallicity, model.
222238

223239

240+
:ref:`conv_core_cpm`
241+
^^^^^^^^^^^^^^^^^^^^
242+
243+
This test case evolves a 1.5 |Msun| star part of the way through
244+
the main sequence with CPM enabled and checks that its convective
245+
core has grown to an appropriate mass coordinate.
246+
247+
224248
:ref:`custom_colors`
225249
^^^^^^^^^^^^^^^^^^^^
226250

@@ -276,6 +300,12 @@ a slowly pulsating B-type star (SPB) stellar model.
276300

277301
This test case checks the implementation of GYRE in MESA for a cooling 0.85 Msun white dwarf model.
278302

303+
:ref:`hb_2M`
304+
^^^^^^^^^^^^
305+
306+
This test case shows a 2 |Msun| stellar model evolving
307+
on the horizontal branch (HB) through core helium burning.
308+
279309
:ref:`high_mass`
280310
^^^^^^^^^^^^^^^^
281311

@@ -306,12 +336,29 @@ This test case checks the evolution of an ~1 Mjup model after the surface has be
306336

307337
This test case checks the evolutions of a 0.8 Msun, Z=1e-4 metallicity model from the pre-main sequence to core hydrogen depletion.
308338

339+
340+
:ref:`magnetic_braking`
341+
^^^^^^^^^^^^^^^^^^^^^^^
342+
343+
This test case involves the calculation of the spin down caused by a
344+
large-scale magnetic field in a massive star model.
345+
346+
309347
:ref:`make_brown_dwarf`
310348
^^^^^^^^^^^^^^^^^^^^^^^
311349

312350
This test case checks the creation of a 1.05 Mjup, Z=1e-4 metallicity model and its subsequent evolution for 20 billion years.
313351

314352

353+
:ref:`make_co_wd`
354+
^^^^^^^^^^^^^^^^^
355+
356+
This test case produces a 0.6 |Msun| white dwarf with a carbon-oxygen
357+
dominated core and a stratified atmosphere dominated by hydrogen at
358+
its surface. The final model produced by this test case also serves as
359+
the starting model for :ref:`wd_diffusion` and :ref:`wd_cool_0.6M`.
360+
361+
315362
:ref:`make_env`
316363
^^^^^^^^^^^^^^^
317364

@@ -381,11 +428,30 @@ This test case shows an example of a carbon flash within a neutron star envelope
381428
This test case exercises several of the ``other_*`` physics hooks simultaneously in a 1 Msun, Z=0.02 metallicity, model.
382429
It provides an example of how to include your own physics code into a MESA run.
383430

431+
384432
:ref:`pisn`
385433
^^^^^^^^^^^^^^^^^^^^^^
386434

387435
This test case evolves an initialy 200 |Msun| star from ZAMS untill it undergoes a pair instability supernovae (PISN).
388436

437+
438+
:ref:`ppisn`
439+
^^^^^^^^^^^^
440+
441+
This test case shows an example of a star undergoing a pulsational
442+
pair-instability supernova. The model starts from a massive helium
443+
star, and includes switches from hydrostatic to hydrodynamic models,
444+
as well as the removal of ejected layers.
445+
446+
447+
:ref:`R_CrB_star`
448+
^^^^^^^^^^^^^^^^^
449+
450+
This test case creates and evolves a simple model of an R Corona
451+
Borealis star and provides an example of how to use AESOPUS opacity
452+
tables in MESA.
453+
454+
389455
:ref:`radiative_levitation`
390456
^^^^^^^^^^^^^^^^^^^^^^^^^^^
391457

@@ -467,6 +533,16 @@ This test case exercises the simplex framework with a check of the chi^2 value f
467533

468534
This test case tests MESA's ability to perfom a split-burn calculation in a 25 |Msun| star during silicon burning.
469535

536+
537+
:ref:`T_tau_gradr`
538+
^^^^^^^^^^^^^^^^^^
539+
540+
This test checks the implementation of the control
541+
``use_T_tau_gradr_factor``, which modifies the radiative gradient so
542+
that regions of low optical depth have a temperature that follows the
543+
:math:`T(\tau)` relation specified by ``atm_T_tau_relation``.
544+
545+
470546
:ref:`test_memory`
471547
^^^^^^^^^^^^^^^^^^
472548

@@ -491,6 +567,21 @@ The test vehicle is a pair of 15 Msun, Z=0.02 metallicity, models one with overs
491567

492568
This test case creates a Thorne-Zytkow object (TZO) and evolves until the NS has accreted a small amount of material.
493569

570+
:ref:`wd_acc_small_dm`
571+
^^^^^^^^^^^^^^^^^^^^^^
572+
573+
This test case models an accreting CO white dwarf (WD) and checks that
574+
the composition of the accreted material is being correctly tracked.
575+
576+
:ref:`wd_aic`
577+
^^^^^^^^^^^^^
578+
579+
This test case shows an accreting ONeMg white dwarf (WD) evolving
580+
towards accretion induced collapse (AIC). It also illustrates use of
581+
the special weak rate implementation described in Section 8 of |MESA
582+
III|.
583+
584+
494585
:ref:`wd_c_core_ignition`
495586
^^^^^^^^^^^^^^^^^^^^^^^^^
496587

@@ -522,81 +613,6 @@ This test case checks the evolution of a nova outburst for one cycle.
522613
This test case checks the evolution stable hydrogen burning on a white dwarf.
523614

524615

525-
:ref:`c13_pocket`
526-
^^^^^^^^^^^^^^^^^
527-
528-
This test evolves a 2.0 |Msun| star through one thermal pulse on the
529-
asymptotic giant branch (AGB) and illustrates third dredge up and the
530-
formation of a :math:`^{13}{\rm C}` pocket.
531-
532-
533-
:ref:`conductive_flame`
534-
^^^^^^^^^^^^^^^^^^^^^^^
535-
536-
This test case models a conductively-propagated deflagration wave
537-
("flame") in a high-density, degenerate carbon-oxygen mixture. It
538-
also provides an example for use of the ``other_build_initial_model``
539-
and ``other_surface_PT`` hooks.
540-
541-
542-
:ref:`hb_2M`
543-
^^^^^^^^^^^^
544-
545-
This test case shows a 2 |Msun| stellar model evolving
546-
on the horizontal branch (HB) through core helium burning.
547-
548-
:ref:`make_co_wd`
549-
^^^^^^^^^^^^^^^^^
550-
551-
This test case produces a 0.6 |Msun| white dwarf with a carbon-oxygen
552-
dominated core and a stratified atmosphere dominated by hydrogen at
553-
its surface. The final model produced by this test case also serves as
554-
the starting model for :ref:`wd_diffusion` and :ref:`wd_cool_0.6M`.
555-
556-
:ref:`magnetic_braking`
557-
^^^^^^^^^^^^^^^^^^^^^^^
558-
559-
This test case involves the calculation of the spin down caused by a
560-
large-scale magnetic field in a massive star model.
561-
562-
563-
:ref:`ppisn`
564-
^^^^^^^^^^^^
565-
566-
This test case shows an example of a star undergoing a pulsational
567-
pair-instability supernova. The model starts from a massive helium
568-
star, and includes switches from hydrostatic to hydrodynamic models,
569-
as well as the removal of ejected layers.
570-
571-
:ref:`R_CrB_star`
572-
^^^^^^^^^^^^^^^^^
573-
574-
This test case creates and evolves a simple model of an R Corona
575-
Borealis star and provides an example of how to use AESOPUS opacity
576-
tables in MESA.
577-
578-
:ref:`T_tau_gradr`
579-
^^^^^^^^^^^^^^^^^^
580-
581-
This test checks the implementation of the control
582-
``use_T_tau_gradr_factor``, which modifies the radiative gradient so
583-
that regions of low optical depth have a temperature that follows the
584-
:math:`T(\tau)` relation specified by ``atm_T_tau_relation``.
585-
586-
:ref:`wd_acc_small_dm`
587-
^^^^^^^^^^^^^^^^^^^^^^
588-
589-
This test case models an accreting CO white dwarf (WD) and checks that
590-
the composition of the accreted material is being correctly tracked.
591-
592-
:ref:`wd_aic`
593-
^^^^^^^^^^^^^
594-
595-
This test case shows an accreting ONeMg white dwarf (WD) evolving
596-
towards accretion induced collapse (AIC). It also illustrates use of
597-
the special weak rate implementation described in Section 8 of |MESA
598-
III|.
599-
600616

601617
Binary tests
602618
------------
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../star/test_suite/conv_core_cpm/README.rst

star/test_suite/1.5M_with_diffusion/start.mod

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. _conv_core_cpm:
2+
3+
*************
4+
conv_core_cpm
5+
*************
6+
7+
This test case evolves a 1.5 |Msun| star part of the way through
8+
the main sequence with convective pre-mixing (CPM) enabled and checks that its convective
9+
core has grown to an appropriate mass coordinate.
10+
11+
The model evolves until the core H mass fraction reaches 0.5.
12+
It then checks that the convective core mass has grown to encompass
13+
about 0.13 |Msun|. In other words, the top-middle panel in the pgstar
14+
grid below must show that the red dot falls within the white box.
15+
The gold curve in that panel shows the expected evolution of the convective
16+
core if the model continued to evolve beyond its stopping condition.
17+
18+
.. image:: ../../../star/test_suite/conv_core_cpm/docs/grid_000092.png
19+
20+
21+
Last-Updated: 2023-03-14 (MESA d6bbdf4) by Evan Bauer

star/test_suite/conv_core_cpm/ck

Lines changed: 7 additions & 0 deletions
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
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
cd make
4+
make clean

0 commit comments

Comments
 (0)