Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/expressions/dynamic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ dyexp["core_profiles.profiles_1d[:].conductivity_parallel"] =
dyexp["core_profiles.profiles_1d[:].j_bootstrap"] =
(; dd, profiles_1d, _...) -> findfirst(:bootstrap_current, dd.core_sources.source).profiles_1d[profiles_1d.time].j_parallel

dyexp["core_profiles.profiles_1d[:].j_bootstrap_tor"] =
(; dd, profiles_1d, _...) -> begin
rho_tor_norm = profiles_1d.grid.rho_tor_norm
eqt = dd.equilibrium.time_slice[profiles_1d.time]
Jpar_2_Jtor(rho_tor_norm, profiles_1d.j_bootstrap, true, eqt)
end

dyexp["core_profiles.profiles_1d[:].j_ohmic"] =
(; profiles_1d, _...) -> profiles_1d.j_total .- profiles_1d.j_non_inductive

Expand Down