## Calculation of base values of power

Two base values of reactive power are defined, one used when the reactive power is positive or provided. And another, when the reactive power is negative or absorbed. These values depend on the options of the RefReactivePower property as shown below:

- For VARMAX, the base values of reactive power are calculated according to Equation 46 and Equation 47 to be used when the reactive power is positive (capacitive) and negative (inductive), respectively.

- For VARAVAL, both base values are calculated according to Equation 48.

If Qbase[t]j calculated above results in 0, then Qbase[t]j is set to be equal to kvarMax.

The base value of active power depends on the options of the VoltwattYAxis property as shown below:

- For PMPPPU, the base value is equal to the Pmpp property of the PVSystem, as can be seen in the Equation 49.

- For PAVAILABLEPU, the base value corresponds to the available active power of the PVSystem in the time step t, which is calculated according to Equation 50.

Where Pdc[t] = Pmpp * irradiance * irradiance[t] * PTCurve(Temperature[t]), as shown in Equation 1.

- For KVARATING, the base value corresponds to the kVA rating of the inverter, as can be seen in the Equation 52.