PowerGridModel / power-grid-model

Python/C++ library for distribution power system analysis
Mozilla Public License 2.0
145 stars 30 forks source link

[FEATURE] Support current measurement in state estimation #547

Open TonyXiang8787 opened 7 months ago

TonyXiang8787 commented 7 months ago

Background

Currently the state estimation supports two types of sensors: voltage_sensor and power_sensor. Their meaning is self explanatory. In distribution grids, we have also many current measurements. Supporting current magnitude measurement is difficult since we do not know the direction of active/reactive power. To decouple the current, we need the voltage as a reference, with which we can calculate power. Therefore, we only support power measurements as this moment.

Current measurement with relative phase angle to the local voltage

Sometimes we have both voltage and current measurements in practice. However, certain voltage magnitude measurement has prohibitable high error margin which makes the calculated power value useless. Meanwhile, the phase angle between the voltage and current is actually accurately measured. In this case, we have current magnitude + relative phase angle measurement.

Current measurement using PMU with global phase angle

If we install PMU current measurement in the grid, we can measure the current magnitude and the global phase angle with regarding the reference angle in the HV/MV substation. In this way we measure the current phasor.

Feature request

This issue proposes to support decoupled current measurement into PGM state estimation. Concretely, the following tasks:

petersalemink95 commented 3 months ago

@TonyXiang8787 you mention that a sym/asym current_sensor should have i_p_measured and i_q_measured, which means the decoupling lies at the end-user. Wouldn't we in this case want to have i_measured and i_angle_measured, i.e. the current magnitude and angle, where we would do the decoupling? From a user perspective it would be beneficial if they can just provide the measured values, instead of calculating i_p_measured and i_q_measured themselves

TonyXiang8787 commented 3 months ago

@TonyXiang8787 you mention that a sym/asym current_sensor should have i_p_measured and i_q_measured, which means the decoupling lies at the end-user. Wouldn't we in this case want to have i_measured and i_angle_measured, i.e. the current magnitude and angle, where we would do the decoupling? From a user perspective it would be beneficial if they can just provide the measured values, instead of calculating i_p_measured and i_q_measured themselves

I agree with you and will adjust the issue. Also we might want to support current phasors, and this interface can be re-used.