NREL-Sienna/PowerSimulationsDynamics.jl

review saturation function implementation in GENR/GENS models

jd-lara opened this issue · 0 comments

The current implementation of the saturation always calculates the total field ψ_pp = sqrt(ψd_pp^2 + ψq_pp^2) and later passes the value through the function. This adds an unnecessary calculation if the saturation parameters are 0.0.

Implement a saturation function that takes the values of ψd_pp and ψq_pp directly.