Skip to content

Add Scattering Utilities for Consistency + Derivatives - #78

Merged
pdmullen merged 1 commit into
mainfrom
pdmullen/more-func
Aug 6, 2026
Merged

Add Scattering Utilities for Consistency + Derivatives#78
pdmullen merged 1 commit into
mainfrom
pdmullen/more-func

Conversation

@pdmullen

@pdmullen pdmullen commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

In #77, @RyanWollaeger found that the mean scattering variant (when ported to the multigroup setting) did not provide the same utilities as the corresponding multigroup absorption variant. Therein, the necessary critical missing functionality was added. Thanks, @RyanWollaeger! This PR adds a few more so that the two variants are entirely consistent.

While I was at it... downstream we are in need of opacity temperature derivatives at constant density. We could do that entirely downstream, but it is nice to have access to some of the private members when constructing derivatives on MeanOpacity tables. I opted to provide d log(abs_coef) / d log T to accomodate special handling in the low temperature limit downstream and admittedly circumvent concerns around units. Also it nestled nicely into the table format we currently demand. Future development may also provide d (abs_coef) dT = (abs_coef / T) * d log(abs_coef) / dT...

@Yurlungur Yurlungur left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think the logarithmic derivative is a good idea. If we ever switch gridding strategies, care may be required to compute it carefully but it's unambiguously defined so I think that's a good idea.

@pdmullen
pdmullen merged commit 1505137 into main Aug 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants