mesa icon indicating copy to clipboard operation
mesa copied to clipboard

control Convective_bdy_weight

Open annethoul opened this issue 2 years ago • 4 comments

Evan asked me to report this as a bug.

The control convective_bdy_weight was available in version 12115. It is not available in 12778 and later.

Doc: !### convective_bdy_weight !### convective_bdy_dq_limit !### convective_bdy_min_dt_yrs

    ! Mesh function to enhance resolution near convective boundaries
    ! including regions that are newly nonconvective because of moving boundary.
    ! EXPERIMENTAL

   convective_bdy_weight = 0
   convective_bdy_dq_limit = 1d-4
   convective_bdy_min_dt_yrs = 1d-3

When it was available I produced the following plot, which shows that it worked at least in some cases to smooth the convective boundary. I would like to test this control more extensively to understand what it does and where it works. So it would be nice to restore those controls. cpm_conv_bdy_weight

annethoul avatar Aug 12 '22 18:08 annethoul

it is available in r12778 as a run_star_extras

% ls /Users/fxt/mesa_work/r12778/star/test_suite/other_physics_hooks/src % more /Users/fxt/mesa_work/r12778/star/test_suite/other_physics_hooks/src/convective_bdy/convective_bdy.inc

perhaps a similar run_star_extras can be implemented in more recent releases.

fxt44 avatar Aug 12 '22 18:08 fxt44

and i remembered this exchange:

On May 26, 2020, at 10:28 AM, Bill Paxton <[email protected]> wrote:

please take a look at star/test_suite/other_physics_hooks where this is an implementation of convective_bdy_weight done in run_star_extras.  use that as a guide.

-b


On May 26, 2020, at 10:24 AM, Joel Ong via Mesa-users <[email protected]> wrote:

Greetings all,

The controls namelist entries convective_bdy_weight and associated parameters appear to have been removed in r12778 without any documentation in the release notes. Without these options, I'm obtaining discontinuous evolution of some quantities associated with g-mode oscillation frequencies on the red giant branch, where the boundary of the surface convection zone moves inwards over time (see attached plots). Is there any way to restore these options in r12778?

Best regards,
Joel Ong

fxt44 avatar Aug 12 '22 18:08 fxt44

Yes, but it looks like Bill deleted it from the other_physics_hooks test case shortly after the github transition. Anne's example seems to suggest this is an important control, so I would be in favor of promoting it back to an inlist option.

evbauer avatar Aug 12 '22 18:08 evbauer

Joel's example also shows that having a discontinuous convective boundary has an important effect on the g-mode frequencies: r12778 r10398

annethoul avatar Aug 12 '22 18:08 annethoul

For some context: these figures show the evolution of the dimensionless g-mode phase $\epsilon_g = 1/(\nu_g \Delta\Pi_\ell) - n_g$ for the first 10 g-modes (indexed by radial order $n_g$). The figure with the colourbar shows what I obtained for an evolutionary sequence of subgiant models in MESA r10398, and the other shows what I obtained with r12778.

darthoctopus avatar Feb 10 '23 00:02 darthoctopus

Thanks Joel. This has been on the back burner for a while, but I agree this needs attention. I'll schedule some time to dig into this in a few weeks if nobody gets to it before then. That should be a good time to pick #425 up again as well.

evbauer avatar Feb 10 '23 18:02 evbauer

Made some tests with the changes in restore_convective_bdy_weight. With convective_bdy_weight = 2, we seem to get a smooth evolution of the convective core boundary. Not much difference between convective_bdy_weight = 2 and = 10. Without convective_bdy_weight, we get a similar problem to the one in Anne's original plot.

conv_boundaries

efarrell1 avatar Mar 10 '23 15:03 efarrell1

@darthoctopus, if you're interested in testing, it would be great to see whether this restored version of the control might resolve your seismology issues as well.

evbauer avatar Mar 10 '23 18:03 evbauer