hermess.tests.test_avr_algebraic
Controller-side parity test for the device-private algebraic-equation mechanism.
The generalized AVR strategy protocol lets an exciter expose its field voltage
Efd as either a differential state (pure-lag exciter) or a device-private
algebraic variable (direct-feedthrough / lead-lag exciter). This test exercises
the latter via AVRKundur – the Kundur transducer+lead-lag AVR with
Efd as the lead’s algebraic output – and validates it two ways:
The recovered
Efd(indae.y) exactly satisfies its defining equation along the trajectory (internal consistency of the private-algebraic solve).The lead-lag (algebraic
Efd) reproducesAVRKundur_Filter– the same exciter with a parasitic output filter that fakesEfdinto a state – in theTfd -> 0singular-perturbation limit. Theavr_filterfixture uses a smallTfd, so the two systems must agree toO(Tfd).
Attributes
Functions
|
The synchronous-machine device from the most recent run. |
The lead-lag's algebraic field voltage must satisfy its defining equation |
|
AVRKundur (Efd algebraic) must reproduce AVRKundur_Filter (Efd a |
Module Contents
- hermess.tests.test_avr_algebraic.FIXTURE_ROOT
- hermess.tests.test_avr_algebraic._COMMON
- hermess.tests.test_avr_algebraic._machine()[source]
The synchronous-machine device from the most recent run.
runresetssystem(clear_module) on entry, so this must be called immediately after a run and before the next one.