Skip to content

Feature: Apply force on element.set_energy() #90

Description

@JeanLucPons

Description, motivation and use case
Today Element.set_energy() just set the $B\rho$ but does not recompute and apply power supply setpoints.
It would be useful for ramp machine that changing the $B\rho$ also apply power supply setpoint.

Proposed solution
Add an apply_flag to the Element.set_energy() method with a default to true.
In MagnetModel.set_magnet_rigidity() , apply setpoint when apply_flag=True.
Change the $B\rho$ initialisation phase using Element.set_energy(E,apply_flag=False)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions