-
Notifications
You must be signed in to change notification settings - Fork 17
Add general plasma functions 1 #4004
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
Open
chris-ashe
wants to merge
21
commits into
main
Choose a base branch
from
add_general_plasma_functions_1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
af1f91c
Add DetailedPhysics class for enhanced plasma processing models
chris-ashe 2831785
:sparkle: Add Debye length calculations to DetailedPhysics class
chris-ashe 3703c85
:sparkle: Add electron Debye length profile variable to physics module
chris-ashe 7ff38c6
Add volume averaged electron Debye length variable to physics module
chris-ashe 0a04f7a
Add detailed Debye length calculations and output to physics module
chris-ashe 5953f13
:sparkle: Add Lorentz factor and relativistic particle speed calculat…
chris-ashe c3c1a1b
:sparkle: Add electron thermal velocity profile variable to physics m…
chris-ashe c2ad8c2
:sparkle: Add electron thermal velocity profile calculation and plott…
chris-ashe b0553b7
Add Planck's constant and new physics calculations to DetailedPhysics…
chris-ashe cdd11a3
:sparkle: Add electron-electron Coulomb logarithm profile variable to…
chris-ashe c86341f
:sparkle: Add plasma frequency calculation to DetailedPhysics class
chris-ashe 6fd0865
:sparkle: Add electron plasma frequency profile variable to physics m…
chris-ashe b07f59d
:sparkle: Add electron thermal frequency profile calculation to Detai…
chris-ashe 4119387
:sparkle: Add Larmor frequency calculation method to DetailedPhysics …
chris-ashe bfdc7ec
Add electron Larmor frequency profile variable for toroidal magnetic …
chris-ashe e367c6e
:sparkle: Add Larmor frequency calculation for electron profile in De…
chris-ashe e04fda7
:sparkle: Add Larmor frequency profile for toroidal magnetic field in…
chris-ashe 51b734d
:sparkle: Add calculation and plotting for plasma Coulomb logarithms …
chris-ashe a67077f
Post rebase changes
chris-ashe 073fa4a
:sparkle: Add documentation for Detailed Plasma Physics and link in m…
chris-ashe 559509c
Post rebase changes again
chris-ashe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| # Detailed Plasma Physics | ||
|
|
||
| It can sometimes be useful to calculate rough values for key plasma paramters that are normally used in higher fidelity codes. The `DetailedPhysics()` class stores functions that are called and the end of the run to show rough values for key plasma behavior parameters. The calculation is done at the end as no other methods currently depend on these values. | ||
|
|
||
| ## Detailed Plasma Physics | `DetailedPhysics()` | ||
|
|
||
|
|
||
| ------------------ | ||
|
|
||
| ### Debye length | `calculate_debye_length()` | ||
|
|
||
| Calculates the Debye lenght given by: | ||
|
|
||
| $$ | ||
| \lambda_{D} = \sqrt{\frac{\epsilon_0 k_B T_e}{n e^2}} | ||
| $$ | ||
|
|
||
| ------------------- | ||
|
|
||
| ### Relativistic particle speed | `calculate_relativistic_particle_speed()` | ||
|
|
||
| $$ | ||
| v = c \times \sqrt{\left(1- \frac{1}{\left(1+\frac{E}{mc^2}\right)^2}\right)} | ||
| $$ | ||
|
|
||
| ------------------ | ||
|
|
||
| ### Coulomb Logarithm | `calculate_coulomb_log_from_impact()` | ||
|
|
||
| Calculates the Coulomb logarithm assuming a straight line Landau-Spitzer method | ||
|
|
||
| $$ | ||
| \ln \Lambda = \ln{\left(\frac{b_{\text{max}}}{b_{\text{min}}}\right)} | ||
| $$ | ||
|
|
||
| The maximum impact parameter is given by the Debye length calculated by [`calculate_debye_length()`](#debye-length--calculate_debye_length) | ||
| $$ | ||
| b_{\text{max}} = \lambda_{\text{Debye}} | ||
| $$ | ||
|
|
||
| The minimum impact paramter is the largest of either the classical distance of closest approach or the Debye length. | ||
|
|
||
| $$ | ||
| \begin{split}b_{\text{min}} ≡ | ||
| \left\{ | ||
| \begin{array}{ll} | ||
| λ_{\text{de Broglie}} & \mbox{if } λ_{\text{de Broglie}} ≥ ρ_⟂ \\ | ||
| ρ_⟂ & \mbox{if } ρ_⟂ ≥ λ_{\text{de Broglie}} | ||
| \end{array} | ||
| \right.\end{split} | ||
| $$ | ||
|
|
||
| $ρ_⟂$ is the classical distance of closest approach calculated by [`calculate_classical_distance_of_closest_approach()`](#classical-distance-of-closest-approach----calculate_classical_distance_of_closest_approach) | ||
|
|
||
| ------------------ | ||
|
|
||
| ### Classical distance of closest approach | `calculate_classical_distance_of_closest_approach()` | ||
|
|
||
| $$ | ||
| \frac{Z_1Z_2e^2}{4\pi \epsilon_0 E_{\text{kinetic}}} | ||
| $$ | ||
|
|
||
| --------------------- | ||
|
|
||
| ### DeBroglie Wavelength | `calculate_debroglie_wavelength()` | ||
|
|
||
| $$ | ||
| \lambda_{\text{DeBroglie}} = \frac{h}{2\pi m v} | ||
| $$ | ||
|
|
||
| ---------------------- | ||
|
|
||
| ### Plasma Frequency | `calculate_plasma_frequency()` | ||
|
|
||
| $$ | ||
| \omega_p = \sqrt{\frac{n_ie^2}{\epsilon_0 m_i}} | ||
| $$ | ||
|
|
||
| --------------------- | ||
|
|
||
| ### Larmor Frequency | `calculate_larmor_frequency()` | ||
|
|
||
| $$ | ||
| f_{\text{Larmor}} = \frac{Z_ieB}{2\pi m_i} | ||
| $$ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.