From 0d9f5e78f1c7b6f908c9797b2fcd7bfb4d674a4e Mon Sep 17 00:00:00 2001 From: Thomas Marks Date: Wed, 7 Aug 2024 16:10:03 -0600 Subject: [PATCH] Fix plot recipes --- Project.toml | 2 +- src/visualization/recipes.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 65b9f8b2..318ecde4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "HallThruster" uuid = "2311f341-5e6d-4941-9e3e-3ce0ae0d9ed6" authors = ["Thomas Marks "] -version = "0.16.4" +version = "0.16.5" [deps] DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab" diff --git a/src/visualization/recipes.jl b/src/visualization/recipes.jl index 34579917..e78f82ef 100644 --- a/src/visualization/recipes.jl +++ b/src/visualization/recipes.jl @@ -1,6 +1,6 @@ @recipe function f(sol::Solution, frame::Int = length(sol.u)) (;z_cell, ionization_reactions, ncharge, L_ch) = sol.params - model = params.config.ionization_model + model = sol.params.config.ionization_model subplot_width = 500 subplot_height = 500 @@ -106,7 +106,7 @@ else reactant_density = sol[:ni, rxn.reactant.Z][frame] end - ionization_rate .+= reactant_density .* ne .* rate_coeff.(model, rxn, 3/2 .* Tev) + ionization_rate .+= reactant_density .* ne .* [rate_coeff(model, rxn, 3/2 .* T) for T in Tev] end end end