Skip to content

feat!: Remove drift velocity (u0) from core PDF types (MaxwellianPDF, KappaPDF, BiMaxwellianPDF, BiKappaPDF)#12

Merged
Beforerr merged 1 commit intomainfrom
push-syvnwsqplnqp
Dec 13, 2025
Merged

feat!: Remove drift velocity (u0) from core PDF types (MaxwellianPDF, KappaPDF, BiMaxwellianPDF, BiKappaPDF)#12
Beforerr merged 1 commit intomainfrom
push-syvnwsqplnqp

Conversation

@Beforerr
Copy link
Copy Markdown
Member

@Beforerr Beforerr commented Dec 12, 2025

The main motivation for this change is to avoid duplicating drift logic across each PDF type and with non-zero drift velocity, speed distributions are no longer invariant to translations (not have simple analytic form any more)

  • Add ShiftedPDF wrapper for representing drifted distributions
  • Add CHANGELOG.md documenting breaking changes to drift velocity handling
  • Add public constructors (Maxwellian, Kappa, BiMaxwellian, BiKappa) that support optional u0 keyword argument
  • Support density parameter n as first argument in public constructors, returning VelocityDistribution

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 12, 2025

Codecov Report

❌ Patch coverage is 98.50746% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/distributions/types.jl 95.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Beforerr Beforerr force-pushed the push-syvnwsqplnqp branch 2 times, most recently from 5cb32dc to 8643b0d Compare December 12, 2025 23:39
@Beforerr Beforerr force-pushed the push-syvnwsqplnqp branch 3 times, most recently from 56f5c93 to 8c35dc8 Compare December 13, 2025 00:26
… KappaPDF, BiMaxwellianPDF, BiKappaPDF)

- Add ShiftedPDF wrapper for representing drifted distributions
- Add CHANGELOG.md documenting breaking changes to drift velocity handling
- Add public constructors (Maxwellian, Kappa, BiMaxwellian, BiKappa) that support optional u0 keyword argument
- Support density parameter n as first argument in public constructors, returning VelocityDistribution
@Beforerr Beforerr merged commit 52539bb into main Dec 13, 2025
@Beforerr Beforerr deleted the push-syvnwsqplnqp branch December 13, 2025 00:32
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.

1 participant