Skip to content

Custom (user-defined) emission policy#188

Merged
haykh merged 11 commits into1.4.0rcfrom
dev/emission
Mar 17, 2026
Merged

Custom (user-defined) emission policy#188
haykh merged 11 commits into1.4.0rcfrom
dev/emission

Conversation

@haykh
Copy link
Collaborator

@haykh haykh commented Mar 17, 2026

This PR adds a support for the user-provided emission policy defined in the problem generator.

Enabled, by specifying:

[[particles.species]]
  emission = "custom"

and providing a corresponding PGen::EmissionPolicy function which returns the custom emission policy.

Example added in pgens/examples/custom_emission.

@haykh haykh marked this pull request as ready for review March 17, 2026 17:52
@haykh haykh self-assigned this Mar 17, 2026
@haykh haykh added the enhancement New feature or request label Mar 17, 2026
@haykh haykh merged commit c79d4e5 into 1.4.0rc Mar 17, 2026
5 checks passed
@haykh haykh deleted the dev/emission branch March 17, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant