Skip to content

Commit

Permalink
Add convenience initialisers for Solov'ev equilibria.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Sep 22, 2020
1 parent 9c5b559 commit ef1532e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/analytic/solovev.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,16 @@ module Solovev
return equilibrium
end

function ITER(; perturbation=ZeroPerturbation())
equilibrium = SolovevEquilibriumITER()
load_equilibrium(equilibrium, perturbation; target_module=SolovevXpoint)
return equilibrium
end

function NSTX(; perturbation=ZeroPerturbation())
equilibrium = SolovevEquilibriumNSTX()
load_equilibrium(equilibrium, perturbation; target_module=SolovevXpoint)
return equilibrium
end

end
12 changes: 12 additions & 0 deletions src/analytic/solovev_xpoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,16 @@ module SolovevXpoint
return equilibrium
end

function ITER(; perturbation=ZeroPerturbation())
equilibrium = SolovevXpointEquilibriumITER()
load_equilibrium(equilibrium, perturbation; target_module=SolovevXpoint)
return equilibrium
end

function NSTX(; perturbation=ZeroPerturbation())
equilibrium = SolovevXpointEquilibriumNSTX()
load_equilibrium(equilibrium, perturbation; target_module=SolovevXpoint)
return equilibrium
end

end

0 comments on commit ef1532e

Please sign in to comment.