Skip to content

Commit

Permalink
add transport option to manta
Browse files Browse the repository at this point in the history
also WPED for Manta
  • Loading branch information
TimSlendebroek committed Sep 17, 2024
1 parent 8f0f913 commit 5b2f3f8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/cases/MANTA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ https://arxiv.org/abs/2405.20243
https://burningplasma.org/resources/ref/Web_Seminars/MANTA_USBPO_Webinar_Presentation.pdf
"""
function case_parameters(::Type{Val{:MANTA}})::Tuple{ParametersAllInits,ParametersAllActors}
function case_parameters(::Type{Val{:MANTA}}; tjlf_transport=false)::Tuple{ParametersAllInits,ParametersAllActors}
ini = ParametersInits(; n_ic=1)
act = ParametersActors()

Expand Down Expand Up @@ -81,7 +81,16 @@ function case_parameters(::Type{Val{:MANTA}})::Tuple{ParametersAllInits,Paramete
act.ActorWPED.ped_to_core_fraction = 0.3

#### ACT ####
act.ActorCoreTransport.model = :none # No flux matching possible
if tjlf_transport
act.ActorFluxMatcher.max_iterations = 50
act.ActorTGLF.electromagnetic = false
act.ActorTGLF.sat_rule = :sat0
act.ActorTGLF.model = :TJLF
else
act.ActorCoreTransport.model = :none
end

act.ActorPedestal.model = :WPED

set_new_base!(ini)
set_new_base!(act)
Expand Down

0 comments on commit 5b2f3f8

Please sign in to comment.