function TapEstimation
extends Icons.Function;
input Types.ComplexImpedancePu ZPu " Transformer impedance in pu (base U2Nom, SnRef)";
input Types.PerUnit rTfoMinPu "Minimum transformation ratio in pu: U2/U1 in no load conditions";
input Types.PerUnit rTfoMaxPu "Maximum transformation ratio in pu: U2/U1 in no load conditions";
input Integer NbTap "Number of taps";
input Types.ComplexVoltagePu u10Pu "Start value of complex voltage at terminal 1 in pu (base UNom)";
input Types.ComplexCurrentPu i10Pu "Start value of complex current at terminal 1 in pu (base UNom, SnRef) (receptor convention)";
input Types.VoltageModulePu Uc20Pu "Voltage set-point on side 2 in pu (base U2Nom)";
output Integer Tap0 "Estimated tap";
end TapEstimation;