[mesa-users] mesa release 5596
Bill Paxton
paxton at kitp.ucsb.edu
Fri Nov 15 13:52:53 EST 2013
It's been 5 weeks since the last release, so here we go again.
Cheers,
Bill
replace backups by multiple retries
we used to do 1 retry and if that failed, we would do a backup.
now we keep doing multiple retries instead.
supporting backups complicates the code significantly, so I'd like to get rid of them.
unified timestep selection using 2nd order low pass controller (inspired by Broxton)
previously only the varcontrol term in timestep selection used the low pass controller
now we use it for all of the timestep controls.
use_dt_low_pass_controller = .true.
each timestep control gives a ratio of <magnitude of actual value>/<limit value>
assumes that the magnitude of actual value varies directly with the size of the timestep
the timestep controller adjusts the timestep to make the max ratio approach the target ratio
the target is given by a new control
dt_limit_ratio_target = 1d0
changing this to a larger or smaller value will give larger or smaller timesteps
this is analogous to changing varcontrol_target, but it applies to all the controls.
clean up MLT option selection.
remove control flag use_Henyey_MLT
change MLT_option default to Cox from Henyey
if had use_Henyey_MLT = .true. and were using default for MLT_option,
then must add MLT_option = Henyey
add op_mono option for atm gray_and_kap
if which_atm_option = 'grey_and_kap' and using op_mono opacities,
then atm will also use op_mono opacities when iterates to find
consistent P, T, and kap at surface of model.
star job now does relax Z before relax Y (Warrick Ball pointed out this requirement)
this fixes the problem where relax Z would modify the effects of relax Y.
star job controls moved from run_star_support to be part of star_data structure
this was done to support changes Pablo is making in mesa/binary.
if you have code that access star job controls, it will need to change.
e.g., if your run_star_extras code access the control "new_omega",
then before you had "use run_star_support, only: new_omega"
followed by occurrences of the the variable name.
now you get rid of the "use" statement and refer to s% job% new_omega instead.
add v_wind_Km_per_s to history list options
!v_wind_Km_per_s ! Km/s
! = 1d-5*s% opacity(1)*max(0d0,-s% mstar_dot)/ &
! (4*pi*s% photosphere_r*Rsun*s% tau_base)
! Lars says:
! wind_mdot = 4*pi*R^2*rho*v_wind
! tau = integral(opacity*rho*dr) from R to infinity
! so tau = opacity*wind_mdot/(4*pi*R*v_wind) at photosphere
! or v_wind = opacity*wind_mdot/(4*pi*R*tau) at photosphere
add controls for time smoothing for each term in rotational mixing
defaults only do time smoothing for ST mixing
! time smoothing -- set to 0 to turn off time smoothing
angsmt_D_DSI = 0.0
angsmt_D_SH = 0.0
angsmt_D_SSI = 0.0
angsmt_D_ES = 0.0
angsmt_D_GSF = 0.0
angsmt_D_ST = 0.2
angsmt_nu_ST = 0.2
default now turns off kinematic shear viscosity (D_visc_factor = 0)
this fixes a problem Mike Montgomery discovered in cooling WD
where the visc term was producing unstable coupling between
rotational mixing and diffusion.
merge screen, reaclib, and weaklib into rates
weak rates for temperatures below weaklib table limit, switch to reaclib.
this fixes the problem I was having with Ni56 decay rates in cool surface layers.
previously the code used the rate for the lowest temperature in the weaklib tables,
but that assumes complete ionization and gives a rate that is much lower than
the rate for electron capture once cool enough to have bound electrons.
options for abbreviated output for profiles and gyre data (requested by Ehsan)
max_num_profile_zones = -1 ! only used if > 1
! if nz > this, then only write a subsample of the zones.
max_num_gyre_points = -1 ! only used when > 1
! limit gyre output files to at most this number of points
added 25M_z2m2_high_rotation to test_suite
zams rotation at 0.9 critical. stops at end of C burn
added nova to test_suite (based on Bill Wolf's work)
1.3 M, accreting at 1e-9 Msun/year, through burst and mass loss by super edd wind.
added more opacity tables (with help from Radek, Ehsan, and Andrea)
this is ongoing -- more to be added next time.
hopefully the OP folks will fix a bug so we can add more of their tables.
here's what we have now:
OPAL Type1
gn93
gs98
gs98_aFe_m2
gs98_aFe_p2
gs98_aFe_p3
gs98_aFe_p4
gs98_aFe_p6
gs98_aFe_p8
a05+Ne
a09
OPAL Type2 (C/O enhanced)
a09_CO
gs98_CO
gs98_aFe_p4_CO
gn93_CO
OP Type1: OP_gs98
low T (Freedman): lowT_Freedman11
low T (Ferguson)
fa05_gs98
fa05_gs98_aFe_m2
fa05_gs98_aFe_p2
fa05_gs98_aFe_p4
fa05_gs98_aFe_p6
fa05_gs98_aFe_p8
af94_gn93
fa05_gn93
fa05_ags04
fa05_a09
"total_energy" replaces "binding_energy" (done by Josiah)
The profile column "binding_energy" was described as
binding_energy = v^2/2 - G*m/r + E + P/rho (energy per unit mass)
This is not the binding energy, but rather the Bernoulli parameter.
To prevent confusion, we rename and replace the specific enthalpy with
the specific internal energy.
total_energy = v^2/2 - G*m/r + E (energy per unit mass)
The profile column "binding_energy_integral" is also renamed and
reformulated analogously (total_energy_integral, no P/rho term).
Reported by Naveh Levanon via Erez Michaely
extra arrays automatically available for use in run_star_extras (done by Josiah)
Add extra arrays which are maintained with size > nz
* star/public/star_data.inc: Add extra arrays to star_info structure.
* star/private/alloc.f (star_info_arrays): Have the extra
arrays (re)allocated along with other arrays.
This adds arrays to the star_info structure which are guaranteed to have
size > nz, but are not otherwise used internally. The intended use case
is in run_star_extras, whenever the user needs an array of the
appropriate size (e.g. at intermediate stages of an other_physics or
profile_column calculation). The arrays are
xtra1_array .. xtra5_array -- real (double)
ixtra1_array .. ixtra5_array -- integer
Unlike the xtra/ixtra scalars, these arrays are not presently preserved
across backups/restarts.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20131115/b04c5167/attachment.html>
More information about the Mesa-users
mailing list