Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
Device_gate.h
Go to the documentation of this file.
1#ifndef DEVICE_GATE_H
2#define DEVICE_GATE_H
3
9#include "Certificate_spec.h"
11
12#include <string>
13
14class Element;
15
18 std::string device_id;
20 bool allow = false;
21 bool pass_passivity = false;
22 bool pass_phase = false;
23 bool pass_shifted = false;
24 bool pass_nr_phase = false;
25 bool pass_nr_zero = false;
26 bool pass_small_gain = false;
27 bool pass_dw = false;
28 bool pass_sector = false;
29 std::string reason;
30};
31
39 Element& elem,
40 const std::string& device_id,
41 const CertificateSpec& spec);
42
44void reportDeviceGate(const DeviceGateResult& result, bool plotting_enabled = true);
45
46#endif // DEVICE_GATE_H
Shared thresholds and frequency-grid settings for device certificates.
DeviceGateResult evaluateDeviceGate(Element &elem, const std::string &device_id, const CertificateSpec &spec)
Evaluate passivity / phase / geometric certificates on device Y(jω).
Definition Device_gate.cpp:9
void reportDeviceGate(const DeviceGateResult &result, bool plotting_enabled=true)
Register gate plots and print a one-line verdict.
Definition Device_gate.cpp:53
Device-level passivity / phase / geometric metrics and plots.
Base class for multi-phase network elements with Y-parameters and MNA stamping hooks.
Definition Element.h:29
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
Verdict of a device-level certificate gate.
Definition Device_gate.h:17
bool pass_sector
Definition Device_gate.h:28
std::string device_id
Definition Device_gate.h:18
bool pass_nr_phase
Definition Device_gate.h:24
bool pass_passivity
Definition Device_gate.h:21
CertificateSweep sweep
Definition Device_gate.h:19
bool pass_small_gain
Definition Device_gate.h:26
std::string reason
Definition Device_gate.h:29
bool pass_dw
Definition Device_gate.h:27
bool pass_phase
Definition Device_gate.h:22
bool pass_nr_zero
Definition Device_gate.h:25
bool pass_shifted
Definition Device_gate.h:23
bool allow
Definition Device_gate.h:20