-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from mabarnes/Krook-collisions
Krook 'collisions'
- Loading branch information
Showing
25 changed files
with
2,032 additions
and
417 deletions.
There are no files selected for viewing
This file contains 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 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,6 @@ | ||
`utils` | ||
=============== | ||
|
||
```@autodocs | ||
Modules = [moment_kinetics.utils] | ||
``` |
94 changes: 94 additions & 0 deletions
94
runs/1D-wall_MMS_new_nel_r_1_z_16_vpa_16_vperp_1_krook.toml
This file contains 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,94 @@ | ||
n_ion_species = 1 | ||
n_neutral_species = 0 | ||
electron_physics = "boltzmann_electron_response" | ||
#electron_physics = "boltzmann_electron_response_with_simple_sheath" | ||
evolve_moments_density = false | ||
evolve_moments_parallel_flow = false | ||
evolve_moments_parallel_pressure = false | ||
evolve_moments_conservation = false | ||
force_Er_zero_at_wall = false #true | ||
Er_constant = 0.0 | ||
T_e = 1.0 | ||
T_wall = 1.0 | ||
rhostar = 1.0 | ||
initial_density1 = 0.5 | ||
initial_temperature1 = 1.0 | ||
initial_density2 = 0.5 | ||
initial_temperature2 = 1.0 | ||
z_IC_option1 = "sinusoid" | ||
z_IC_density_amplitude1 = 0.001 | ||
z_IC_density_phase1 = 0.0 | ||
z_IC_upar_amplitude1 = 0.0 | ||
z_IC_upar_phase1 = 0.0 | ||
z_IC_temperature_amplitude1 = 0.0 | ||
z_IC_temperature_phase1 = 0.0 | ||
z_IC_option2 = "sinusoid" | ||
z_IC_density_amplitude2 = 0.001 | ||
z_IC_density_phase2 = 0.0 | ||
z_IC_upar_amplitude2 = 0.0 | ||
z_IC_upar_phase2 = 0.0 | ||
z_IC_temperature_amplitude2 = 0.0 | ||
z_IC_temperature_phase2 = 0.0 | ||
charge_exchange_frequency = 0.0 | ||
ionization_frequency = 0.0 | ||
krook_collisions_option = "reference_parameters" | ||
nuii_krook = 1.0 | ||
nstep = 2000 | ||
dt = 0.0005 | ||
nwrite = 200 | ||
nwrite_dfns = 200 | ||
use_semi_lagrange = false | ||
n_rk_stages = 4 | ||
split_operators = false | ||
z_ngrid = 17 | ||
z_nelement = 16 | ||
z_nelement_local = 16 | ||
z_bc = "wall" | ||
z_discretization = "chebyshev_pseudospectral" | ||
r_ngrid = 1 | ||
r_nelement = 1 | ||
r_nelement_local = 1 | ||
r_bc = "periodic" | ||
r_discretization = "chebyshev_pseudospectral" | ||
vpa_ngrid = 17 | ||
vpa_nelement = 16 | ||
vpa_L = 12.0 | ||
vpa_bc = "zero" | ||
vpa_discretization = "chebyshev_pseudospectral" | ||
vperp_ngrid = 1 | ||
vperp_nelement = 1 | ||
vperp_L = 6.0 | ||
vperp_bc = "periodic" | ||
vperp_discretization = "chebyshev_pseudospectral" | ||
|
||
vz_ngrid = 17 | ||
vz_nelement = 4 | ||
vz_L = 12.0 | ||
vz_bc = "periodic" | ||
vz_discretization = "chebyshev_pseudospectral" | ||
|
||
vr_ngrid = 17 | ||
vr_nelement = 4 | ||
vr_L = 12.0 | ||
vr_bc = "periodic" | ||
vr_discretization = "chebyshev_pseudospectral" | ||
|
||
vzeta_ngrid = 17 | ||
vzeta_nelement = 4 | ||
vzeta_L = 12.0 | ||
vzeta_bc = "periodic" | ||
vzeta_discretization = "chebyshev_pseudospectral" | ||
|
||
[manufactured_solns] | ||
use_for_advance=true | ||
use_for_init=true | ||
# constant to be used to control Ez divergence in MMS tests | ||
epsilon_offset=0.1 | ||
# bool to control if dfni is a function of vpa or vpabar in MMS test | ||
use_vpabar_in_mms_dfni=true | ||
alpha_switch=1.0 | ||
type="default" | ||
[numerical_dissipation] | ||
vpa_dissipation_coefficient = -1.0 | ||
z_dissipation_coefficient = -1.0 | ||
r_dissipation_coefficient = -1.0 |
94 changes: 94 additions & 0 deletions
94
runs/1D-wall_MMS_new_nel_r_1_z_16_vpa_8_vperp_8_krook.toml
This file contains 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,94 @@ | ||
n_ion_species = 1 | ||
n_neutral_species = 0 | ||
electron_physics = "boltzmann_electron_response" | ||
#electron_physics = "boltzmann_electron_response_with_simple_sheath" | ||
evolve_moments_density = false | ||
evolve_moments_parallel_flow = false | ||
evolve_moments_parallel_pressure = false | ||
evolve_moments_conservation = false | ||
force_Er_zero_at_wall = false #true | ||
Er_constant = 0.0 | ||
T_e = 1.0 | ||
T_wall = 1.0 | ||
rhostar = 1.0 | ||
initial_density1 = 0.5 | ||
initial_temperature1 = 1.0 | ||
initial_density2 = 0.5 | ||
initial_temperature2 = 1.0 | ||
z_IC_option1 = "sinusoid" | ||
z_IC_density_amplitude1 = 0.001 | ||
z_IC_density_phase1 = 0.0 | ||
z_IC_upar_amplitude1 = 0.0 | ||
z_IC_upar_phase1 = 0.0 | ||
z_IC_temperature_amplitude1 = 0.0 | ||
z_IC_temperature_phase1 = 0.0 | ||
z_IC_option2 = "sinusoid" | ||
z_IC_density_amplitude2 = 0.001 | ||
z_IC_density_phase2 = 0.0 | ||
z_IC_upar_amplitude2 = 0.0 | ||
z_IC_upar_phase2 = 0.0 | ||
z_IC_temperature_amplitude2 = 0.0 | ||
z_IC_temperature_phase2 = 0.0 | ||
charge_exchange_frequency = 0.0 | ||
ionization_frequency = 0.0 | ||
krook_collisions_option = "reference_parameters" | ||
nuii_krook = 1.0 | ||
nstep = 2000 | ||
dt = 0.0005 | ||
nwrite = 200 | ||
nwrite_dfns = 200 | ||
use_semi_lagrange = false | ||
n_rk_stages = 4 | ||
split_operators = false | ||
z_ngrid = 17 | ||
z_nelement = 16 | ||
z_nelement_local = 16 | ||
z_bc = "wall" | ||
z_discretization = "chebyshev_pseudospectral" | ||
r_ngrid = 1 | ||
r_nelement = 1 | ||
r_nelement_local = 1 | ||
r_bc = "periodic" | ||
r_discretization = "chebyshev_pseudospectral" | ||
vpa_ngrid = 17 | ||
vpa_nelement = 8 | ||
vpa_L = 12.0 | ||
vpa_bc = "zero" | ||
vpa_discretization = "chebyshev_pseudospectral" | ||
vperp_ngrid = 17 | ||
vperp_nelement = 8 | ||
vperp_L = 6.0 | ||
vperp_bc = "periodic" | ||
vperp_discretization = "chebyshev_pseudospectral" | ||
|
||
vz_ngrid = 17 | ||
vz_nelement = 4 | ||
vz_L = 12.0 | ||
vz_bc = "periodic" | ||
vz_discretization = "chebyshev_pseudospectral" | ||
|
||
vr_ngrid = 17 | ||
vr_nelement = 4 | ||
vr_L = 12.0 | ||
vr_bc = "periodic" | ||
vr_discretization = "chebyshev_pseudospectral" | ||
|
||
vzeta_ngrid = 17 | ||
vzeta_nelement = 4 | ||
vzeta_L = 12.0 | ||
vzeta_bc = "periodic" | ||
vzeta_discretization = "chebyshev_pseudospectral" | ||
|
||
[manufactured_solns] | ||
use_for_advance=true | ||
use_for_init=true | ||
# constant to be used to control Ez divergence in MMS tests | ||
epsilon_offset=0.1 | ||
# bool to control if dfni is a function of vpa or vpabar in MMS test | ||
use_vpabar_in_mms_dfni=true | ||
alpha_switch=1.0 | ||
type="default" | ||
[numerical_dissipation] | ||
vpa_dissipation_coefficient = -1.0 | ||
z_dissipation_coefficient = -1.0 | ||
r_dissipation_coefficient = -1.0 |
This file contains 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,33 @@ | ||
""" | ||
Some physical constants | ||
""" | ||
module constants | ||
|
||
export epsilon0, mu0 | ||
export electron_mass | ||
export proton_charge, proton_mass | ||
export deuteron_mass | ||
export amu | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?ep0 | ||
const epsilon0 = 8.8541878128e-12 # F m^-1 | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?mu0 | ||
const mu0 = 1.25663706212e-6 # N A^-2 | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?me | ||
const electron_mass = 9.109383701e-31 # kg | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?e | ||
const proton_charge = 1.602176634e-19 # C | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?mp | ||
const proton_mass = 1.67262192369e-27 # kg | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?md | ||
const deuteron_mass = 3.3435837724e-27 | ||
|
||
# https://physics.nist.gov/cgi-bin/cuu/Value?ukg | ||
const amu = 1.66053906660e-27 | ||
|
||
end |
This file contains 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.