OpenHPL includes both SimpleGen and SynchGen. For learning FCR, the simple generator is a useful starting point because it exposes the essential rotational energy balance without burying it inside electromagnetic states.
Differentiating gives
$$\frac{dK}{dt}=J\omega\dot\omega.$$OpenHPL documents the simple generator through
$$\frac{dK}{dt}=P_s-P_f-P_g,$$where $P_s$ is turbine shaft power, $P_f$ is mechanical friction loss, and $P_g$ is the mechanical power converted by the generator.
Hence, for $\omega\neq0$,
$$J\dot\omega=\frac{P_s-P_f-P_g}{\omega}.$$A simple bearing-loss model is
$$P_f=\frac12k_f\omega^2.$$With electrical efficiency $\eta_e$,
$$P_e=\eta_e P_g.$$This model can be loaded directly by an electrical power-demand input or coupled mechanically/electrically to a grid model.
For a synchronous machine with $p$ pole pairs, mechanical speed and electrical frequency satisfy
$$\omega_m=\frac{2\pi f}{p},$$so speed deviations map directly to frequency deviations.
After choosing nominal speed $\omega_0$ and linearizing, the generator balance can be written in familiar power-system form:
$$M\Delta\dot\omega=\Delta P_m-\Delta P_e-D\Delta\omega.$$This is not a separate physical law; it is a reduced representation of the same rotational energy balance.
The SynchGen component introduces more complete synchronous-machine behavior. In that case, electrical states and algebraic network constraints become part of the complete DAE:
When the machine is connected to a larger power system, electrical power becomes a network-dependent quantity:
$$P_e=P_e(\delta,V,E,X,\ldots).$$The hydropower unit then participates in a closed electromechanical loop:
$$P_m\to\omega\to f\to P_e,$$with governor feedback returning from frequency to the turbine guide vane.
A load step can be represented by
$$P_L(t)=P_{L0}+\Delta P_L H(t-t_d),$$which initially creates
$$\Delta P_m-\Delta P_e<0.$$The rotor decelerates, frequency falls, and the governor responds by opening the guide vanes.