Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canonical Poisson Bracket Equilibrium #364

Merged
merged 22 commits into from
May 20, 2024
Merged

Canonical Poisson Bracket Equilibrium #364

merged 22 commits into from
May 20, 2024

Conversation

johnson452
Copy link
Collaborator

@johnson452 johnson452 commented May 16, 2024

Adds the capability to have equilibrium initial projection for Canonical-PB. This is used for both initial conditions and BGK operations.

Added:

  1. det_h function needed in the input script for normalizing f_lte. This is initially projected on basis in vm_species.c and used in proj_lte
  2. New Kernels have been generated to computed the canonical-pb pressure moment using the existing M2ij moment calculator. This is needed because the temperature moment: JvdT = int( h^{ij}(w_i - u_i)*(w_j - u_j)fdw), depends on the inverse metric tensor.
  3. Added a new unit test which verifies the moments are projected correctly on a curved surface via the canonical-pb framework. (unit/ctest_canonical_pb_equilibrium.c)

Notes:
a. For canonical-pb, the lte-moments are assumed to be [Jvn, u_i, T]. Places in the code that need n, like projecting f_lte requires det_h to isolate n.
b. Works for GPU.
c. Math-scratch notes available here: Canonical_Poisson_Bracket-3.pdf

@johnson452 johnson452 requested a review from JunoRavin May 16, 2024 23:59
@JunoRavin JunoRavin merged commit c495275 into main May 20, 2024
2 checks passed
@JunoRavin JunoRavin deleted the can_pb_eq branch May 20, 2024 19:04
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