Skip to content

Commit

Permalink
update_build rebuild_wall uses strike_points_weight=0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Dec 17, 2024
1 parent eaf3322 commit 8dc7eaa
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/actors/compound/whole_facility_actor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ end
function _step(actor::ActorWholeFacility)
dd = actor.dd
par = actor.par
act = actor.act
act = deepcopy(actor.act)

if par.update_build && act.ActorCXbuild.rebuild_wall
# when we rebuild the wall, we let the strike points do whatever they want, since the wall will adapt instead
act.ActorPFactive.strike_points_weight = 0.0
end

if !isempty(dd.build.layer) && par.update_build
# we start by optimizing coil location, so that when we go solve the equilibrium we can hold it in place
Expand Down Expand Up @@ -119,18 +124,19 @@ function _step(actor::ActorWholeFacility)
actor.CXbuild = ActorCXbuild(dd, act)

actor.PFdesign = ActorPFdesign(dd, act)
if act.ActorPFactive.update_equilibrium && act.ActorCXbuild.rebuild_wall
if act.ActorCXbuild.rebuild_wall
ActorEquilibrium(dd, act; ip_from=:equilibrium, j_p_from=:equilibrium)
actor.CXbuild = ActorCXbuild(dd, act)
end

else
actor.FluxSwing = ActorFluxSwing(dd, act)
actor.Stresses = ActorStresses(dd, act)
actor.PFactive = ActorPFactive(dd, act)
end

actor.PFactive = ActorPFactive(dd, act)

actor.Neutronics = ActorNeutronics(dd, act)

actor.Blanket = ActorBlanket(dd, act)
actor.CXbuild = ActorCXbuild(dd, act)

Expand Down

0 comments on commit 8dc7eaa

Please sign in to comment.