book-modeling-and-stability-analysis-of-IBRs codes and Simscape SPS models in the book L. Fan and Z. Miao. Modeling and Stability Analysis of Inverter-Based Resources. Frist Edition. CRC Press, 2023 https://www.taylorfrancis.com/books/mono/10.1201/9781003323655/modeling-stability-analysis-inverter-based-resources-lingling-fan-zhixin-miao