cfs-energy / cfspopcon

POPCONs (Plasma OPerating CONtours)
https://cfspopcon.readthedocs.io/en/latest/
MIT License
22 stars 14 forks source link

Idea: add functionality to extract values along a contour #37

Closed tbody-cfs closed 1 month ago

tbody-cfs commented 5 months ago

In https://github.com/cfs-energy/cfspopcon/blob/main/cfspopcon/point_selection.py there is the possibility of calculating the coordinates maximizing or minimizing some function.

Could use something like https://github.com/cfs-energy/cfspopcon/blob/separatrix_operational_space/cfspopcon/formulas/separatrix_operational_space/LH_transition_power.py#L13 to extract points along a contour.

Would be an interesting way of setting a constraint (i.e. P_aux = 25MW) and then seeing the relationship between other variables.

tbody-cfs commented 1 month ago

Completed: code available in https://github.com/cfs-energy/cfspopcon/blob/main/cfspopcon/shaping_and_selection/line_selection.py