Skip to content

Conversation

@SimonePellegrini
Copy link
Contributor

@SimonePellegrini SimonePellegrini commented Dec 18, 2025

This PR addresses #567

@SimonePellegrini
Copy link
Contributor Author

I tried to understand where the error comes from, but it does not seem to be related to the changes I made.

@fhagemann
Copy link
Collaborator

I tried to understand where the error comes from, but it does not seem to be related to the changes I made.

The error in the documentation build came from adding the unregistered package LegendHDF5IO to Project.toml, the other errors came from the fact that we were storing H in units of eV, but expecting it in units of cal in the subsequent formulas. This should (hopefully) all be fixed now.

@fhagemann fhagemann self-requested a review December 20, 2025 18:31
@fhagemann
Copy link
Collaborator

Ok, the lithium_density_on_contact also seems to be underestimated by 6 orders of magnitude (it's probably in cm^-3 instead of m^-3)

The publication quotes values for calculating cm^-3, SSD expects m^-3
@fhagemann fhagemann added notation Notation and Interface convenience Improve user-friendliness and removed convenience Improve user-friendliness labels Dec 21, 2025
@zpdg
Copy link
Contributor

zpdg commented Dec 21, 2025

@fhagemann @SimonePellegrini
Good job! Thanks!

To be clear, why I wrote 27.27 instead of 21.27 as the ref?: Because the default length unit is "m" in SSD.jl, but people prefer to use "cm" and "cm^3" when talking about impurity density.

@fhagemann
Copy link
Collaborator

Yes, I figured that out after looking at the numbers :)
Thanks for the clarification

@fhagemann
Copy link
Collaborator

Hi, could you undo pushing the example JSON file for the inverted coaxial detectors? :)

@SimonePellegrini
Copy link
Contributor Author

Hi, could you undo pushing the example JSON file for the inverted coaxial detectors? :)

I think I've done it :)

Copy link
Collaborator

@fhagemann fhagemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some minor things to clean up, but I can take care of that!

Copy link
Collaborator

@fhagemann fhagemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved all the structs and functions for diffusivity and saturation to the new file ThermalDiffusionLithiumDensityParameters.jl, added doc strings and removed obsolete code.

I also removed the suffx _in_germanium from the methods calculating the diffusivity, because the references also allow to do the same thing in silicon (no need to restrict the naming here).

We could add tests to trigger all the ConfigErrors (what happens if the list is empty, if it's missing parameters, ...), but other than that, this should be good to go.

The publications used for germanium also seem to provide values for silicon. I do not see why this model should not be also applicable to silicon.
Copy link
Collaborator

@fhagemann fhagemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be it!
@zpdg If you're ok with renaming llthium_diffusivity_in_germanium to just lithium_diffusivity, this should be good ton be merged!

And thanks @SimonePellegrini for getting this started!

@fhagemann fhagemann requested a review from zpdg December 23, 2025 11:04
@SimonePellegrini
Copy link
Contributor Author

I think this should be it! @zpdg If you're ok with renaming llthium_diffusivity_in_germanium to just lithium_diffusivity, this should be good ton be merged!

And thanks @SimonePellegrini for getting this started!

It was a pleasure helping you! I learned a lot of interesting things. I'm looking forward to getting better and being more helpful to the Julia ecosystem :)

@zpdg
Copy link
Contributor

zpdg commented Dec 24, 2025

I think this should be it! @zpdg If you're ok with renaming llthium_diffusivity_in_germanium to just lithium_diffusivity, this should be good ton be merged!

And thanks @SimonePellegrini for getting this started!

This restriction is unnecessary. I am okay with it.

@fhagemann fhagemann merged commit c298616 into JuliaPhysics:main Dec 24, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notation Notation and Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove hardcoded values from ThermalDiffusionLithiumDensity and InactiveLayerChargeDriftModel

3 participants