Skip to content

Hybrid Interpolation on CPU - #847

Open
stefan-schnake wants to merge 17 commits into
project-asgard:developfrom
stefan-schnake:hybrid
Open

Hybrid Interpolation on CPU#847
stefan-schnake wants to merge 17 commits into
project-asgard:developfrom
stefan-schnake:hybrid

Conversation

@stefan-schnake

@stefan-schnake stefan-schnake commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This PR adds hybrid interpolation on the CPU. Both hybrid source and hybrid md_terms are included.

Tests included:
Test of hybrid source by 1x1v BGK step to ensure hybrid interpolation of Maxwellian preserves collision invariants
Test of hybrid md_term by interpolating u_t(x,v) + lambda*(u(x,v)-g(x)u(x,v)) with both hybrid and standard interpolation (results should agree on a dense grid). WILL NOT AGREE ON SPARSE/ADAPTIVE GRID
Test to make sure num_pos and num_vel are positive for hybrid interpolation to work.

AI was used to generate test cases and incorporate into standard API calls.

@stefan-schnake stefan-schnake self-assigned this Jun 23, 2026
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