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

Add sheath heat flux diagnostics #67

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft

Conversation

mikekryjak
Copy link
Collaborator

@mikekryjak mikekryjak commented Oct 10, 2022

  • Add diagnostics for sheath heat flux in sheath_boundary_simple
  • Perform full particle and energy balance on 1D-recycling
  • Add documentation on sheath_boundary_simple and sheath_boundary

@mikekryjak mikekryjak changed the title Add diagnose option Add sheath heat flux diagnostics Oct 10, 2022
@mikekryjak
Copy link
Collaborator Author

Now works and saves the following variables:

  • phi_sheath: phi for use in the boundary code
  • J_sheath: combined ion current for use in the boundary code
  • Ee_sheath: additional electron heat flux to achieve gamma_e
  • E_sheath: additional ion heat flux to achieve gamma_i

@bendudson let me know if this is a good idea or if it's too confusing. Maybe E_sheath should have the total heat flux so it's less confusing? And I wonder if including J and phi will make it confusing when currents are included.

@mikekryjak mikekryjak marked this pull request as ready for review October 17, 2022 08:58
@mikekryjak mikekryjak marked this pull request as draft December 7, 2022 16:39
@mikekryjak mikekryjak added enhancement New feature or request post-processing Improvements in what diagnostics are saved to file labels Apr 14, 2023
@mikekryjak
Copy link
Collaborator Author

This one needs an update as there are now some sheath diagnostics present

mikekryjak and others added 16 commits July 30, 2024 17:35
dx*dy drops out due to form of equation above... I don't like it because it's unclear.

Diagnostic variable now in W/m2 instead of W.
- Explicitly defined da and dv to ensure validity when guard dx/dz != last dx/dz and to improve code clarity
- This is now in line with neutral_boundary.cxx
- Particle and heat flux diagnostics match post-processing calcs
- Was assuming gamma is total
- Species name at the end to allow easy splitting
- "div" can be a prefix for other divergence terms we save
Parallel advection and parallel heat conduction are now included in
the flow_ylow diagnostics. Advection of parallel kinetic energy
(momentum equation) is not yet tracked.
Intended to compensate for dissipation in the momentum advection term.
Needs checking: Doesn't make much difference.
- EnergyFlow remains total energy flow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request post-processing Improvements in what diagnostics are saved to file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants