Skip to content

Commit a7c411b

Browse files
committed
Add a TZO test case
1 parent db10946 commit a7c411b

27 files changed

+4085
-0
lines changed

docs/source/test_suite.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,12 @@ This test checks the counter and timing routines with a 1.5 Msun, Z=0.02 metalli
485485
This test case exercise the capability to simultaneously evolve two model stars.
486486
The test vehicle is a pair of 15 Msun, Z=0.02 metallicity, models one with overshooting and one without overshooting.
487487

488+
489+
:ref:`tzo`
490+
^^^^^^^^^^
491+
492+
This test case creates a Thorne-Zytkow object (TZO) and evolves until the NS has accreted a small amount of material.
493+
488494
:ref:`wd_c_core_ignition`
489495
^^^^^^^^^^^^^^^^^^^^^^^^^
490496

docs/source/test_suite/tzo.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../star/test_suite/tzo/README.rst

star/test_suite/do1_test_source

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ do_one wd_nova_burst "have finished burst" "final.mod" auto
9696
do_one wd_stable_h_burn "stop because star_mass >= star_mass_max_limit" "final.mod" auto
9797
do_one high_rot_darkening "termination code: xa_central_lower_limit" "final.mod" auto
9898

99+
do_one tzo "PASS: Have reached requested NS mass" "final.mod" auto
99100

100101
# return
101102

star/test_suite/tzo/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
final.prof
2+
pre_tzo.mod
3+
post_tzo.mod
4+
tzo.mod
5+
Grid1
6+

star/test_suite/tzo/README.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. _tzo:
2+
3+
***
4+
TZO
5+
***
6+
7+
This test case builds and evolves a Thorne-Zytkow object (TZO) (Farmer et al in prep)
8+
9+
The model stats by building a 20 |Msun| star mid way through the main sequence (inlist_initial). The precise physics do not matter here,
10+
but having a large convective burning core is necessary for the the TZO formation to proceed smoothly.
11+
12+
inlist_initial_make then moves the inner boundary to a desired inner mass and radius, assumed for the NS. It is helpful to have some
13+
assumed energy injection at this point in time (core_avg_eps).
14+
15+
inlist_initial_post_relax then alters the total mass of the TZO and the composition to match the required starting values. While relax_Z does change the total
16+
metal mass fraction, it does not change the metal distribution. Thus you may want to use relax_composition_filename instead to have complete control of the composition.
17+
18+
inlist_evolve_tzo then evolves the TZO for as long as possible. For the test suite the end condition if the NS sufficient mass via Eddington limited accretion.
19+
With this check removed the end condition is when the surface begins undergoing large amplitude pulsations and we can no longer follow the evolution
20+
(this usually occurs around v_surf/v_escape ~ 40%). Note that as the NS will accrete at Eddington limited rates (10^-8 Msun/yr) it grows very little over the typical
21+
lifetime of a TZO, thus you should not use the test suite ending condition for actual science.

star/test_suite/tzo/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

star/test_suite/tzo/clean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cd make
2+
make clean

0 commit comments

Comments
 (0)