-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into TOML-print-enum2
- Loading branch information
Showing
100 changed files
with
14,434 additions
and
1,908 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
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
92 changes: 92 additions & 0 deletions
92
examples/fokker-planck/fokker-planck-relaxation-slowing-down-alphas.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,92 @@ | ||
# cheap input file for a 0D2V relaxation to a collisional Maxwellian distribution with self-ion collisions and collisions with fixed Maxwellian background of cold ions and electrons. | ||
n_ion_species = 1 | ||
n_neutral_species = 0 | ||
electron_physics = "boltzmann_electron_response" | ||
evolve_moments_density = false | ||
evolve_moments_parallel_flow = false | ||
evolve_moments_parallel_pressure = false | ||
evolve_moments_conservation = false | ||
T_e = 1.0 | ||
T_wall = 1.0 | ||
initial_density1 = 1.0 | ||
initial_temperature1 = 1.0 | ||
z_IC_option1 = "sinusoid" | ||
z_IC_density_amplitude1 = 0.0 | ||
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 | ||
vpa_IC_option1 = "isotropic-beam" | ||
vpa_IC_v01 = 1.0 | ||
vpa_IC_vth01 = 0.1 | ||
#vpa_IC_option1 = "directed-beam" | ||
#vpa_IC_vpa01 = -1.5 | ||
#vpa_IC_vperp01 = 0.0 | ||
charge_exchange_frequency = 0.0 | ||
ionization_frequency = 0.0 | ||
constant_ionization_rate = false | ||
|
||
z_ngrid = 1 | ||
z_nelement = 1 | ||
z_nelement_local = 1 | ||
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 = 5 | ||
vpa_nelement = 32 | ||
vpa_L = 3.0 | ||
vpa_bc = "zero" | ||
vpa_discretization = "gausslegendre_pseudospectral" | ||
vperp_ngrid = 5 | ||
vperp_nelement = 16 | ||
vperp_L = 1.5 | ||
vperp_discretization = "gausslegendre_pseudospectral" | ||
vperp_bc = "zero" | ||
# Fokker-Planck operator requires the "gausslegendre_pseudospectral | ||
# options for the vpa and vperp grids | ||
|
||
[fokker_planck_collisions] | ||
# nuii sets the normalised input C[F,F] Fokker-Planck collision frequency | ||
nuii = 1.876334222e-3 #(1/nu_alphae, as computed from input diagnostic) | ||
Zi = 2.0 | ||
self_collisions = true | ||
slowing_down_test = true | ||
frequency_option = "manual" | ||
use_fokker_planck = true | ||
use_conserving_corrections = true | ||
sd_density = 1.0 | ||
sd_temp = 0.025 # TD/Ealpha | ||
sd_mi = 0.5 # mD/malpha | ||
sd_me = 0.000013616 # 0.25/1836.0 me/malpha | ||
sd_q = 1.0 | ||
|
||
[ion_source] | ||
active=false | ||
source_strength=0.0 | ||
source_T=0.005 | ||
source_n=1.0 | ||
r_profile="constant" | ||
r_width=1.0 | ||
r_relative_minimum=0.0 | ||
z_profile="gaussian" | ||
z_width=0.1 | ||
z_relative_minimum=0.0 | ||
source_v0 = 1.0 | ||
#source_type="alphas" | ||
source_type="alphas-with-losses" | ||
#source_type="beam-with-losses" | ||
#source_vpa0 = 1.0 | ||
#source_vperp0 = 1.0 | ||
sink_strength = 0.0 | ||
sink_vth=0.07071067811865475 | ||
|
||
[timestepping] | ||
nstep = 50000 | ||
dt = 2.5e-4 | ||
nwrite = 100 | ||
nwrite_dfns = 100 |
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
91 changes: 91 additions & 0 deletions
91
examples/fokker-planck/fokker-planck-source-sink-slowing-down-alphas-no-self-collisions.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,91 @@ | ||
# cheap input file for a 0D2V relaxation to a collisional Maxwellian distribution with self-ion collisions and collisions with fixed Maxwellian background of cold ions and electrons. | ||
n_ion_species = 1 | ||
n_neutral_species = 0 | ||
electron_physics = "boltzmann_electron_response" | ||
evolve_moments_density = false | ||
evolve_moments_parallel_flow = false | ||
evolve_moments_parallel_pressure = false | ||
evolve_moments_conservation = false | ||
T_e = 1.0 | ||
T_wall = 1.0 | ||
initial_density1 = 1.0 | ||
initial_temperature1 = 1.0 | ||
z_IC_option1 = "sinusoid" | ||
z_IC_density_amplitude1 = 0.0 | ||
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 | ||
vpa_IC_option1 = "isotropic-beam" | ||
vpa_IC_v01 = 1.0 | ||
vpa_IC_vth01 = 0.1 | ||
#vpa_IC_option1 = "directed-beam" | ||
#vpa_IC_vpa01 = -1.5 | ||
#vpa_IC_vperp01 = 0.0 | ||
charge_exchange_frequency = 0.0 | ||
ionization_frequency = 0.0 | ||
constant_ionization_rate = false | ||
|
||
z_ngrid = 1 | ||
z_nelement = 1 | ||
z_nelement_local = 1 | ||
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 = 5 | ||
vpa_nelement = 32 | ||
vpa_L = 3.0 | ||
vpa_bc = "zero" | ||
vpa_discretization = "gausslegendre_pseudospectral" | ||
vperp_ngrid = 5 | ||
vperp_nelement = 16 | ||
vperp_L = 1.5 | ||
vperp_discretization = "gausslegendre_pseudospectral" | ||
vperp_bc = "zero" | ||
# Fokker-Planck operator requires the "gausslegendre_pseudospectral | ||
# options for the vpa and vperp grids | ||
|
||
[fokker_planck_collisions] | ||
# nuii sets the normalised input C[F,F] Fokker-Planck collision frequency | ||
nuii = 1.876334222e-3 #(1/nu_alphae, as computed from input diagnostic) | ||
Zi = 2.0 | ||
self_collisions = false | ||
slowing_down_test = true | ||
frequency_option = "manual" | ||
use_fokker_planck = true | ||
sd_density = 1.0 | ||
sd_temp = 0.0025 # TD/Ealpha | ||
sd_mi = 0.5 # mD/malpha | ||
sd_me = 0.000013616 # 0.25/1836.0 me/malpha | ||
sd_q = 1.0 | ||
|
||
[ion_source] | ||
active=true | ||
source_strength=1.0 | ||
source_T=0.005 | ||
source_n=1.0 | ||
r_profile="constant" | ||
r_width=1.0 | ||
r_relative_minimum=0.0 | ||
z_profile="gaussian" | ||
z_width=0.1 | ||
z_relative_minimum=0.0 | ||
source_v0 = 1.0 | ||
#source_type="alphas" | ||
source_type="alphas-with-losses" | ||
#source_type="beam-with-losses" | ||
#source_vpa0 = 1.0 | ||
#source_vperp0 = 1.0 | ||
sink_strength = 1.0 | ||
sink_vth=0.07071067811865475 | ||
|
||
[timestepping] | ||
nstep = 250000 | ||
dt = 1.0e-4 | ||
nwrite = 500 | ||
nwrite_dfns = 500 |
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,91 @@ | ||
#runtime_plots = true | ||
n_ion_species = 1 | ||
n_neutral_species = 1 | ||
electron_physics = "boltzmann_electron_response" | ||
evolve_moments_density = true | ||
evolve_moments_parallel_flow = true | ||
evolve_moments_parallel_pressure = true | ||
evolve_moments_conservation = true | ||
recycling_fraction = 0.5 | ||
T_e = 1.0 | ||
T_wall = 0.1 | ||
initial_density1 = 1.0 | ||
initial_temperature1 = 1.0 | ||
z_IC_option1 = "sinusoid" | ||
z_IC_density_amplitude1 = 0.1 | ||
z_IC_density_phase1 = 0.0 | ||
z_IC_upar_amplitude1 = 1.0 | ||
z_IC_upar_phase1 = 0.0 | ||
z_IC_temperature_amplitude1 = 0.1 | ||
z_IC_temperature_phase1 = 1.0 | ||
vpa_IC_option1 = "gaussian" | ||
vpa_IC_density_amplitude1 = 1.0 | ||
vpa_IC_density_phase1 = 0.0 | ||
vpa_IC_upar_amplitude1 = 0.0 | ||
vpa_IC_upar_phase1 = 0.0 | ||
vpa_IC_temperature_amplitude1 = 0.0 | ||
vpa_IC_temperature_phase1 = 0.0 | ||
initial_density2 = 1.0 | ||
initial_temperature2 = 1.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 | ||
vpa_IC_option2 = "gaussian" | ||
vpa_IC_density_amplitude2 = 1.0 | ||
vpa_IC_density_phase2 = 0.0 | ||
vpa_IC_upar_amplitude2 = 0.0 | ||
vpa_IC_upar_phase2 = 0.0 | ||
vpa_IC_temperature_amplitude2 = 0.0 | ||
vpa_IC_temperature_phase2 = 0.0 | ||
charge_exchange_frequency = 0.75 | ||
ionization_frequency = 0.0 | ||
constant_ionization_rate = false | ||
nu_ei = 1000.0 | ||
r_ngrid = 1 | ||
r_nelement = 1 | ||
z_ngrid = 17 | ||
z_nelement = 16 | ||
#z_nelement_local = 16 | ||
z_bc = "periodic" | ||
z_discretization = "chebyshev_pseudospectral" | ||
vpa_ngrid = 6 | ||
vpa_nelement = 31 | ||
vpa_L = 12.0 | ||
vpa_bc = "zero" | ||
vpa_discretization = "chebyshev_pseudospectral" | ||
vz_ngrid = 6 | ||
vz_nelement = 31 | ||
vz_L = 12.0 | ||
vz_bc = "zero" | ||
vz_discretization = "chebyshev_pseudospectral" | ||
|
||
[timestepping] | ||
type = "Fekete4(3)" | ||
nstep = 1000000 | ||
dt = 1.0e-6 | ||
minimum_dt = 1.0e-7 | ||
rtol = 1.0e-7 | ||
nwrite = 10000 | ||
nwrite_dfns = 100000 | ||
steady_state_residual = true | ||
converged_residual_value = 1.0e-3 | ||
|
||
[nonlinear_solver] | ||
nonlinear_max_iterations = 100 | ||
#rtol = 1.0e-9 | ||
#atol = 1.0e-12 | ||
|
||
[ion_numerical_dissipation] | ||
vpa_dissipation_coefficient = 1.0e0 | ||
force_minimum_pdf_value = 0.0 | ||
|
||
[neutral_numerical_dissipation] | ||
vz_dissipation_coefficient = 1.0e-1 | ||
force_minimum_pdf_value = 0.0 | ||
|
||
[krook_collisions] | ||
use_krook = true |
Oops, something went wrong.