Skip to content

New diffstar model#89

Merged
aphearin merged 19 commits into
mainfrom
newmodel
Sep 26, 2025
Merged

New diffstar model#89
aphearin merged 19 commits into
mainfrom
newmodel

Conversation

@alexalar
Copy link
Copy Markdown
Collaborator

@alexalar alexalar commented Aug 23, 2025

This PR brings a new version of the Diffstar model.

The new Diffstar model uses a reformulation in which the star formation rate is defined as an efficiency (measured in units of inverse time) relative to the cumulative accreted gas mass. It can be summarized by the following set of equations:

new_diffstar average_histories_w_residuals_all

@alexalar alexalar requested a review from aphearin September 26, 2025 14:42
Copy link
Copy Markdown
Contributor

@aphearin aphearin left a comment

Choose a reason for hiding this comment

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

Nice work on this PR - time for a new release! Woohoo!!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wow, our kernels are so much simpler now!

default=dfh.SSFRH_FLOOR,
)
parser.add_argument("-test", help="Short test run?", type=bool, default=False)
parser.add_argument("-nchunks", help="Number of chunks", type=int, default=NCHUNKS)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think maybe nchunks might be an accidental carryover from the HACC simulations? I could be wrong, but I don't see where this feature is used by these fitters.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Although since this is in a script, we may want to not change this for now since there wouldn't be unit tests that would catch an accidentally introduced error.

@aphearin aphearin merged commit 2c6de94 into main Sep 26, 2025
6 checks passed
@aphearin aphearin deleted the newmodel branch September 26, 2025 15:19
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