Add warm thick - #293
Draft
KriSun95 wants to merge 4 commits into
Draft
Conversation
…ed and make a thick tharget warm contribution model that should have its e_c param tied to a thick target param e_c?
Contributor
|
Related to #235 |
Collaborator
Author
samaloney
reviewed
Aug 6, 2026
Comment on lines
+1341
to
+1363
| temperature = Parameter( | ||
| name="temperature", | ||
| default=10, | ||
| min=1, | ||
| max=100, | ||
| unit=u.MK, | ||
| description="Temperature of the plasma", | ||
| fixed=False, | ||
| ) | ||
|
|
||
| mg = Parameter(name="Mg", default=8.15, min=6.15, max=10.15, description="Mg relative abundance", fixed=True) | ||
|
|
||
| al = Parameter(name="Al", default=7.04, min=5.04, max=9.04, description="Al relative abundance", fixed=True) | ||
|
|
||
| si = Parameter(name="Si", default=8.1, min=6.1, max=10.1, description="Si relative abundance", fixed=True) | ||
|
|
||
| s = Parameter(name="S", default=7.27, min=5.27, max=9.27, description="S relative abundance", fixed=True) | ||
|
|
||
| ar = Parameter(name="Ar", default=6.58, min=4.58, max=8.58, description="Ar relative abundance", fixed=True) | ||
|
|
||
| ca = Parameter(name="Ca", default=6.93, min=4.93, max=8.93, description="Ca relative abundance", fixed=True) | ||
|
|
||
| fe = Parameter(name="Fe", default=8.1, min=6.1, max=10.1, description="Fe relative abundance", fixed=True) |
Member
There was a problem hiding this comment.
There must be a better way to do this without repeating the same parameter definition everywhere
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Opening this WIP PR that introduces the warm thick target model...at least the core part of it
The warm thick target is the addition of the thick target and a thermal component; that thermal component is the
ThermalEmissionmodel where the emission measure input is calculated from the thick target's low-energy cut-off and electron flux values, and new plasma number density and column length parameters.I've made a new model called
ThickTargetWarmContributionthat, given these parameters, will calculate the thermal component o the whole warm thick target model we know rom IDL. That should mean that to re create the whole warm thick target model we would only need to do:and make sure the low-energy cut-off and electron flux parameters are shared.
It is a work in progress, still need to add tests and comparisons to IDL, etc. but we'll want this physical model in eventually I'd imagine so might as well put it here for folk to see.
Here is a snippet of code I've been using it in: