Expand description
Typed views over PSS/E DYR records, and model-aware linking of DYR records
to the generators of a crate::BalancedNetwork.
crate::dynamic keeps every DYR record loss-preserving and untyped. This
module adds a schema-backed view on top of it for the models whose
parameter layout is documented in the PSS/E Model Library: it never changes
the retained records, so DynamicCase::to_dyr_string still writes the
source back byte for byte.
Parameters keep PSS/E names, order, units and bases (machine parameters
are on the machine base MBASE). Converting them into the parameters of a
particular simulator’s equations is the simulator’s job.
Supported models: machines GENCLS, GENROU, GENROE, GENSAL,
GENSAE; exciters SEXS, ESAC1A, EXST1; governors TGOV1, GAST, HYGOV;
stabilizer IEEEST. Any other model name is reported as
ModelError::Unsupported and stays available as a raw record.
Structs§
- Esac1a
- IEEE 421.5 AC1A excitation system
ESAC1A. - Exst1
- IEEE type ST1 static excitation system
EXST1. - Gast
- Gas turbine-governor
GAST. - Gencls
- Classical machine
GENCLS: inertia and damping. The transient reactance is the generator’sZSORCEin the static case. - Hygov
- Hydro turbine-governor
HYGOV. - Ieeest
- IEEE stabilizer
IEEEST. - Linked
Model - One typed model and the DYR line it came from.
- Machine
Dynamics - The dynamic models attached to one generator of the static case.
- Machine
Linking - The result of linking a
DynamicCaseto a network’s generators. - Round
Rotor - Round-rotor machine data shared by
GENROU(quadratic saturation) andGENROE(exponential saturation), in DYR order. - Salient
Pole - Salient-pole machine data shared by
GENSALandGENSAE, in DYR order. - Sexs
- Simplified excitation system
SEXS. - Tgov1
- Steam turbine-governor
TGOV1.
Enums§
- Dynamic
Model - A DYR record read through its PSS/E parameter schema.
- Link
Issue - A DYR record that did not attach to a generator as a typed model, or replaced one that had.
- Model
Error - Why a record has no typed view.
- Model
Role - The role a model plays in a generating unit.
Constants§
- SUPPORTED_
MODELS - The model names this module reads, with the parameter count each record states after its device id.
Functions§
- generator_
source_ impedance - The generator’s source impedance
ZSORCE = ZR + jZXon its machine base, as the static case states it (PSS/E defaults0 + j1when absent);Nonewhen the network has no such generator. - link_
machines - Attach the typed DYR models to the generators they name by
(bus, machine id). - psse_
machine_ ids - The PSS/E machine id of every generator, aligned with
BalancedNetwork::generators, trimmed: the id the PSS/E writer states for it and the.conresolver matches (the retained id, else the lowest positional id still free on the bus). DYR records name generators by(bus, machine id). - typed_
model - Read a DYR record through its PSS/E parameter schema.