Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
Tuning_assistant.h
Go to the documentation of this file.
1#ifndef TUNING_ASSISTANT_H
2#define TUNING_ASSISTANT_H
3
9#include "Certificate_spec.h"
11
12#include <string>
13#include <vector>
14
15class MMC;
16
19 double Kdroop_P = 0.0;
20 double Kdroop_Q = 0.0;
21 bool certified = false;
22 double worst_passivity = 0.0;
23 double worst_phase_deg = 0.0;
24};
25
28 bool found = false;
29 double Kdroop_P_best = 0.0;
30 double Kdroop_Q_best = 0.0;
31 double Kdroop_P_nominal = 0.0;
32 double Kdroop_Q_nominal = 0.0;
35 std::vector<GfmTuningSample> samples;
36 std::string message;
37};
38
46 MMC& mmc,
47 const CertificateSpec& spec,
48 const GfmTuningBounds& bounds = {});
49
50void reportGfmTuning(const GfmTuningResult& result, bool plotting_enabled = true);
51
52#endif // TUNING_ASSISTANT_H
Shared thresholds and frequency-grid settings for device certificates.
Device-level passivity / phase / geometric metrics and plots.
GfmTuningResult tuneGfmDroops(MMC &mmc, const CertificateSpec &spec, const GfmTuningBounds &bounds={})
Grid-search GFM P/Q droops; pick the feasible point with largest passivity margin.
Definition Tuning_assistant.cpp:12
void reportGfmTuning(const GfmTuningResult &result, bool plotting_enabled=true)
Definition Tuning_assistant.cpp:106
Modular Multilevel Converter with arm dynamics and control loops.
Definition MMC.h:21
Frequency-domain certificate evaluation settings.
Definition Certificate_spec.h:12
Frequency-domain certificate sweep for one device (or one H).
Definition Stability_certificate.h:22
GFM droop search bounds for the tuning assistant.
Definition Certificate_spec.h:54
Result of a GFM tuning search.
Definition Tuning_assistant.h:27
CertificateSweep before
Definition Tuning_assistant.h:33
std::vector< GfmTuningSample > samples
Definition Tuning_assistant.h:35
double Kdroop_P_best
Definition Tuning_assistant.h:29
CertificateSweep after
Definition Tuning_assistant.h:34
std::string message
Definition Tuning_assistant.h:36
double Kdroop_P_nominal
Definition Tuning_assistant.h:31
bool found
Definition Tuning_assistant.h:28
double Kdroop_Q_best
Definition Tuning_assistant.h:30
double Kdroop_Q_nominal
Definition Tuning_assistant.h:32
One candidate in the GFM droop search.
Definition Tuning_assistant.h:18
double Kdroop_P
Definition Tuning_assistant.h:19
double worst_passivity
Definition Tuning_assistant.h:22
double worst_phase_deg
Definition Tuning_assistant.h:23
bool certified
Definition Tuning_assistant.h:21
double Kdroop_Q
Definition Tuning_assistant.h:20