PlasmaControl / DESC

Stellarator Equilibrium and Optimization Suite
MIT License
87 stars 22 forks source link

Better Solution to SplineXYZCoil in CoilSets #1148

Open dpanici opened 1 month ago

dpanici commented 1 month ago

Vectorize over knots and intervals instead of enforcing knots and intervals , but we need to make knots and intervals part of params possibly (in the compute function definition)

See curve winding surface PR (I think I do it somewhere in the compute fxns not the objective, but I did it in a way that is jax-differentiable), I think you can use get_params in the build method of the objective, then in the compute, update that params dict with the passed-in params dict, that way the non-optimizable params are present when computing the objective.

YigitElma commented 1 month ago

Better Solution to #1136

dpanici commented 1 month ago

@dpanici update with link to code in the CWS PR