entity-toolkit / entity

New generation astrophysical plasma simulation code with CPU/GPU portability
https://entity-toolkit.github.io/wiki/
Other
30 stars 3 forks source link

Add a powerlaw injection to the archetypes #71

Closed jmahlmann closed 1 month ago

jmahlmann commented 3 months ago

Used https://mathworld.wolfram.com/RandomNumber.html as a prescription to generate a powerlaw distribution from a uniform random number distribution. Uses minimum and maximum gamma (cutoffs) as an input, as well as the powerlaw index.

haykh commented 1 month ago

@jmahlmann changed the base branch to the release candidate. it's a good idea to never directly merge to master.