|
Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
|
#include "Tuning_assistant.h"#include "../../Elements/Converter/MMC.h"#include <cmath>#include <iostream>#include <limits>
Functions | |
| GfmTuningResult | tuneGfmDroops (MMC &mmc, const CertificateSpec &spec, const GfmTuningBounds &bounds) |
| Grid-search GFM P/Q droops; pick the feasible point with largest passivity margin. | |
| void | reportGfmTuning (const GfmTuningResult &result, bool plotting_enabled) |
| void reportGfmTuning | ( | const GfmTuningResult & | result, |
| bool | plotting_enabled | ||
| ) |
| GfmTuningResult tuneGfmDroops | ( | MMC & | mmc, |
| const CertificateSpec & | spec, | ||
| const GfmTuningBounds & | bounds = {} |
||
| ) |
Grid-search GFM P/Q droops; pick the feasible point with largest passivity margin.
Restores the MMC to nominal droops if no feasible point is found. Requires GFM enabled (MMC::hasGfm).
References GfmTuningResult::after, GfmTuningResult::before, GfmTuningSample::certified, MMC::computeABCD(), GfmTuningResult::found, MMC::getGfmDroops(), MMC::hasGfm(), j, GfmTuningSample::Kdroop_P, GfmTuningResult::Kdroop_P_best, GfmTuningBounds::Kdroop_P_max, GfmTuningBounds::Kdroop_P_min, GfmTuningResult::Kdroop_P_nominal, GfmTuningSample::Kdroop_Q, GfmTuningResult::Kdroop_Q_best, GfmTuningBounds::Kdroop_Q_max, GfmTuningBounds::Kdroop_Q_min, GfmTuningResult::Kdroop_Q_nominal, GfmTuningResult::message, GfmTuningBounds::n_P, GfmTuningBounds::n_Q, GfmTuningResult::samples, GfmTuningBounds::scale_P_hi, GfmTuningBounds::scale_P_lo, GfmTuningBounds::scale_Q_hi, GfmTuningBounds::scale_Q_lo, MMC::setGfmDroops(), MMC::solveEquilibrium(), sweepDeviceCertificate(), sweepPassesSpec(), CertificateSweep::worst_passivity, GfmTuningSample::worst_passivity, CertificateSweep::worst_phase_deg, and GfmTuningSample::worst_phase_deg.
Referenced by example_certificate_figures().