Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config variable for BKE turbulent conduction suppression #120

Open
wtbarnes opened this issue Dec 2, 2020 · 3 comments
Open

Add config variable for BKE turbulent conduction suppression #120

wtbarnes opened this issue Dec 2, 2020 · 3 comments
Labels
config config-variable-update Tag for updates to HYDRAD config variables
Milestone

Comments

@wtbarnes
Copy link
Member

wtbarnes commented Dec 2, 2020

See rice-solar-physics/HYDRAD#78

To me, it looks like there are four variables here that need to be added,

  • USE_BKE -- boolean, whether to use this option
  • BKE_L_T -- float,
  • BKE_S_R -- float
  • BKE_2L_R2 -- float
@wtbarnes wtbarnes added config config-variable-update Tag for updates to HYDRAD config variables labels Dec 2, 2020
@jwreep
Copy link
Member

jwreep commented Dec 17, 2020

What specifically needs to be done to implement this? Add these to the template?

I'm willing to give it a shot.

@wtbarnes
Copy link
Member Author

So I think the first thing to work out is what are the variables that define the BKE conduction option? Are they the things I listed above? And then to work out which header file they go in. I'm assuming HYDRAD/source/config.h but perhaps that isn't correct.

Then it's just a matter of adding the logic to the template. If it is the HYDRAD config.h, it would be this one: https://github.com/rice-solar-physics/pydrad/blob/master/pydrad/configure/templates/hydrad.config.h. It could be something as simple as adding the following:

{% if general.bke %}
#define USE_BKE
#define BKE_L_T {{ general.bke.l_t }}
#define BKE_S_R {{ general.bke.s_r }}
#define BKE_2L_R2 {{ general.bke.2l_r2 }}
{% endif %}

This assume the existence of a bke entry in the config dictionary which is itself a dictionary with entries for l_t, s_r, and 2l_r2. It would be nice to also have more descriptive names for these variables and to document what they are.

@sjbradshaw
Copy link

sjbradshaw commented Dec 18, 2020 via email

@wtbarnes wtbarnes added this to the 1.0 Release milestone Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config config-variable-update Tag for updates to HYDRAD config variables
Projects
None yet
Development

No branches or pull requests

3 participants