Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions star/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ SRCS := \
private/init_model.f90 \
private/ionization_potentials.f90 \
private/kap_support.f90 \
private/mlt_tdc_face_support.f90 \
private/magnetic_diffusion.f90 \
private/mass_utils.f90 \
private/mesh_adjust.f90 \
Expand Down
20 changes: 20 additions & 0 deletions star/defaults/controls_dev.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,25 @@
use_TDC_enthalpy_flux_limiter = .false.


! use_face_values_eos_and_kap_mlt_tdc
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

! MESA interpolates primitive solver variables such as T, rho, L, and
! composition, together with constructed quantities such as opacity,
! pressure, and other EOS results, onto cell faces for use in MLT and
! TDC. If use_face_values_eos_and_kap_mlt_tdc = .true., this option
! instead reconstructs only the primitive face variables and then makes
! additional EOS and opacity calls to obtain the thermodynamic quantities
! corresponding to that face state. Despite the cost of the extra EOS and
! opacity work, this can improve accuracy on coarse meshes, especially in
! unresolved opacity bumps in pulsating envelopes, and is a potential
! candidate for becoming the default mode, pending further testing.

! ::

use_face_values_eos_and_kap_mlt_tdc = .false.


! include_mlt_Pturb_in_thermodynamic_gradients
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand All @@ -218,6 +237,7 @@
! If doing velocity time_centering, include time centering in mlt. Depending on the time
! centering flags adopted, include_mlt_in_velocity_time_centering includes time centering
! for P, L, and r in geff, gradr, grada, and mlt.
! Currently not supported together with ``use_face_values_eos_and_kap_mlt_tdc``.

! ::

Expand Down
11 changes: 11 additions & 0 deletions star/defaults/profile_columns.list
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,17 @@
!Uq
!Y_face

!mlt_tdc_T_face
!mlt_tdc_rho_face
!mlt_tdc_P_face
!mlt_tdc_Cp_face
!mlt_tdc_ChiRho_face
!mlt_tdc_ChiT_face
!mlt_tdc_grada_face
!mlt_tdc_opacity_face
!mlt_tdc_scale_height_face
!mlt_tdc_gradr_face

!# RTI

!RTI_du_diffusion_kick
Expand Down
1 change: 1 addition & 0 deletions star/dev_cases_TDC_Pulsation/dev_TDC_Cepheid_9M/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include $(MESA_DIR)/star/work/Makefile
7 changes: 7 additions & 0 deletions star/dev_cases_TDC_Pulsation/dev_TDC_Cepheid_9M/ck
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# this provides the definition of check_one
# check_one
source "${MESA_DIR}/star/test_suite/test_suite_helpers"

check_one
4 changes: 4 additions & 0 deletions star/dev_cases_TDC_Pulsation/dev_TDC_Cepheid_9M/clean
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

cd make
make clean
34 changes: 34 additions & 0 deletions star/dev_cases_TDC_Pulsation/dev_TDC_Cepheid_9M/gyre.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
&model
add_center = .FALSE.
/

&mode
l = 0
/

&osc
inner_bound = 'ZERO_R' ! for envelopes
nonadiabatic = .TRUE.
/

&rot
/

&num
diff_scheme = 'MAGNUS_GL2'!'COLLOC_GL2'
/

&scan
grid_type = 'LINEAR'
freq_min = 0.5!1d-4
freq_max = 5.0!10.0
freq_min_units = 'ACOUSTIC_DELTA'
freq_max_units = 'ACOUSTIC_DELTA'
n_freq = 50
/

&grid
w_osc = 10
w_exp = 2
w_ctr = 10
/
Loading
Loading