Skip to main content

Module dynamic_models

Module dynamic_models 

Source
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’s ZSORCE in the static case.
Hygov
Hydro turbine-governor HYGOV.
Ieeest
IEEE stabilizer IEEEST.
LinkedModel
One typed model and the DYR line it came from.
MachineDynamics
The dynamic models attached to one generator of the static case.
MachineLinking
The result of linking a DynamicCase to a network’s generators.
RoundRotor
Round-rotor machine data shared by GENROU (quadratic saturation) and GENROE (exponential saturation), in DYR order.
SalientPole
Salient-pole machine data shared by GENSAL and GENSAE, in DYR order.
Sexs
Simplified excitation system SEXS.
Tgov1
Steam turbine-governor TGOV1.

Enums§

DynamicModel
A DYR record read through its PSS/E parameter schema.
LinkIssue
A DYR record that did not attach to a generator as a typed model, or replaced one that had.
ModelError
Why a record has no typed view.
ModelRole
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 + jZX on its machine base, as the static case states it (PSS/E defaults 0 + j1 when absent); None when 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 .con resolver 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.