Skip to content

Commit

Permalink
Merge pull request #209 from mabarnes/collisions-options-precompile
Browse files Browse the repository at this point in the history
Update precompilation input deck to reflect updated collisions options.
  • Loading branch information
johnomotani authored May 2, 2024
2 parents 1ef9209 + 21a7557 commit 20cadd5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
10 changes: 6 additions & 4 deletions examples/geometry/1D-mirror.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ vpa_IC_temperature_phase2 = 0.0
charge_exchange_frequency = 0.5
ionization_frequency = 0.05
constant_ionization_rate = true
nstep = 10000
dt = 1.0e-3
nwrite = 50
nwrite_dfns = 50
use_semi_lagrange = false
n_rk_stages = 4
split_operators = false
Expand Down Expand Up @@ -82,3 +78,9 @@ DeltaB=0.5
#option="constant-helical"
pitch=1.0
rhostar= 1.0

[timestepping]
nstep = 10000
dt = 1.0e-3
nwrite = 50
nwrite_dfns = 50
12 changes: 7 additions & 5 deletions examples/gk-ions/2D-periodic-gk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ vpa_IC_temperature_phase2 = 0.0
charge_exchange_frequency = 0.5
ionization_frequency = 0.05
constant_ionization_rate = true
nstep = 50
dt = 1.0e-3
nwrite = 10
nwrite_dfns = 10
use_semi_lagrange = false
n_rk_stages = 4
split_operators = false
Expand Down Expand Up @@ -88,4 +84,10 @@ vperp_dissipation_coefficient = 1.0e-3 #1.0e-2 #1.0e-1

[neutral_numerical_dissipation]
moment_dissipation_coefficient = 0.0001
vz_dissipation_coefficient = 0.01
vz_dissipation_coefficient = 0.01

[timestepping]
nstep = 50
dt = 1.0e-3
nwrite = 10
nwrite_dfns = 10
9 changes: 7 additions & 2 deletions util/precompile_run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,16 @@ for input ∈ [base_input, cheb_input, wall_bc_input, wall_bc_cheb_input]
end

collisions_input = merge(wall_bc_cheb_input, Dict("n_neutral_species" => 0,
"nuii" => 1.0,
"krook_collisions" => Dict{String,Any}("use_krook" => true),
"fokker_planck_collisions" => Dict{String,Any}("use_fokker_planck" => true, "self_collisions" => true, "slowing_down_test" => true),
"vperp_discretization" => "gausslegendre_pseudospectral",
"vpa_discretization" => "gausslegendre_pseudospectral",
))
push!(inputs_list, collisions_input)
# add an additional input for every geometry option available in addition to the default
geo_input1 = merge(wall_bc_cheb_input, Dict("n_neutral_species" => 0,
"geometry" => Dict{String,Any}("option" => "1D-mirror", "DeltaB" => 0.5, "pitch" => 0.5, "rhostar" => 1.0)))

push!(inputs_list, collisions_input, geo_input1)

for input in inputs_list
run_moment_kinetics(input)
Expand Down

0 comments on commit 20cadd5

Please sign in to comment.