-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f9ca4cf
Add DetailedPhysics class for enhanced plasma processing models
chris-ashe 55891f6
:sparkle: Add Debye length calculations to DetailedPhysics class
chris-ashe 7708d9f
:sparkle: Add electron Debye length profile variable to physics module
chris-ashe 237b0df
Add volume averaged electron Debye length variable to physics module
chris-ashe 7b6af0b
Add detailed Debye length calculations and output to physics module
chris-ashe 58943aa
:sparkle: Add Lorentz factor and relativistic particle speed calculat…
chris-ashe c97f85c
:sparkle: Add electron thermal velocity profile variable to physics m…
chris-ashe b8f87a7
:sparkle: Add electron thermal velocity profile calculation and plott…
chris-ashe 7792d1b
Add Planck's constant and new physics calculations to DetailedPhysics…
chris-ashe 8666342
:sparkle: Add electron-electron Coulomb logarithm profile variable to…
chris-ashe 10e1a7c
:sparkle: Add plasma frequency calculation to DetailedPhysics class
chris-ashe 04a50b1
:sparkle: Add electron plasma frequency profile variable to physics m…
chris-ashe a829a27
:sparkle: Add electron thermal frequency profile calculation to Detai…
chris-ashe a5a8dbc
:sparkle: Add Larmor frequency calculation method to DetailedPhysics …
chris-ashe 682eb74
Add electron Larmor frequency profile variable for toroidal magnetic …
chris-ashe a4ad341
:sparkle: Add Larmor frequency calculation for electron profile in De…
chris-ashe 5b1a58c
:sparkle: Add Larmor frequency profile for toroidal magnetic field in…
chris-ashe 1972419
:sparkle: Add calculation and plotting for plasma Coulomb logarithms …
chris-ashe c43926e
Post rebase changes
chris-ashe f49171d
:sparkle: Add documentation for Detailed Plasma Physics and link in m…
chris-ashe 08d7b6e
Post rebase changes again
chris-ashe 98bb56d
Refactor DetailedPhysics methods to static and add unit tests for pla…
chris-ashe c042380
Enhance plasma calculation methods to support array inputs and update…
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.