Skip to content

Big differences from CHEASE after FUSE.init, and hangs on EquilibriumTransport #43

Closed
@daveweisberg

Description

@daveweisberg

On a typical FPP optimization run, the following case is an example of how TEQUILA and CHEASE produce very different results after the FUSE.init step. While CHEASE produces a reasonable initialized core solution and converges after 4 EquilibriumTransport iterations, TEQUILA produces a very high-temp initialized core solution and then hangs indefinitely during the EquilibriumTransport actor.

Executed code:

# load case and reduce plasma current
load_dir = "/fusion/ga/projects/ird/ptp/weisbergd/julia/dev/FUSE/playground/weisberg_FPP_opt/very_exploratory/opt_FPP_Solovev_Kr_HTS0.1_AspectRatio_fk0.88_fLH_ECaccess_qpol2.5/opt_runs/2023-06-05T16:27:22.052__2437505"
ini = FUSE.json2ini(joinpath(load_dir, "ini.json"))
act = FUSE.json2act(joinpath(load_dir, "act.json"))
dd0 = IMAS.json2imas(joinpath(load_dir, "dd.json"));
ini.equilibrium.ip = 8e6
# run with CHEASE
act.ActorEquilibriumTransport.do_plot = true
act.ActorEquilibrium.model = :CHEASE
act.ActorEquilibriumTransport.max_iter = 5
act.ActorCXbuild.rebuild_wall = true
act.ActorCHEASE.free_boundary = true
dd = IMAS.dd();
FUSE.init(dd, ini, act);
FUSE.digest(dd);

Screen Shot 2023-06-19 at 3 06 17 PM

FUSE.ActorWholeFacility(dd, act);
FUSE.digest(dd);
[ Info: Iteration = 1 , convergence error = 0.486, threshold = 0.05
[ Info: Iteration = 2 , convergence error = 0.195, threshold = 0.05
[ Info: Iteration = 3 , convergence error = 0.055, threshold = 0.05
[ Info: Iteration = 4 , convergence error = 0.014, threshold = 0.05

Screen Shot 2023-06-19 at 3 06 38 PM

# run with TEQUILA 
act.ActorEquilibriumTransport.do_plot = true
act.ActorEquilibrium.model = :TEQUILA
act.ActorEquilibriumTransport.max_iter = 5
act.ActorCXbuild.rebuild_wall = true
dd.ActorTEQUILA.free_boundary = true
dd = IMAS.dd();
FUSE.init(dd, ini, act);
FUSE.digest(dd);

Screen Shot 2023-06-19 at 3 08 21 PM

FUSE.ActorWholeFacility(dd, act);
FUSE.digest(dd);

This does not produce any output, seemingly hanging before the 1st EquilibriumTransport iteration is completed.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions