Open avdeevag opened 1 month ago
@avdeevag could you please try running with act_R1.ActorFluxMatcher.do_plot=true
and report how the convergence plot looks?
If I do act_R1.ActorFluxMatcher.do_plot=true
it does not produce any plots when i run FUSE.ActorStationaryPlasma(dd_R1, act_R1);
So, I run FUSE.ActorFluxMatcher(dd_R1, act_R1, do_plot=true)
before the SationaryPlasma
and after
Looks like we take
collect(res.zero),
But like you discvoered maybe when it fails it doesnt' take the best one and uses the last
I noticed that sometimes the flux matching solution is significantly better with less number of iterations than we have in default settings (see illustration below). If it is not too difficult maybe some conditions (based on the reached tolerance for total residual?) can be implemented to the FluxMatcher to stop on the optimal number of iterations?
Solution with 300 iterations for the ITER case
versus default 500 iterations
Script to reproduce these cases