aayushGaur / stac

Steady-State AC Network Visualization in the Browser - Developed at DATA61/Faculty of IT, Monash University - as a part of the summer research project.
http://immersive.erc.monash.edu.au/stac/
MIT License
16 stars 13 forks source link

Thermal Limit Violations for Rate B and Rate C #9

Closed ccoffrin closed 8 years ago

ccoffrin commented 9 years ago

Add thermal limit violation errors for Rate B and C, along the lines of Rate A.

aayushGaur commented 8 years ago

Added a validation to check if the values of RateB and RateC are less than zero. The error message is - Rate B (Thermal Limit) is Negative.

Also the following check has been included in the validation - ((((data.edgeData.angmax - data.edgeData.angmin) * Math.PI)/180) > (2 * Math.max(Math.abs(data.source.Vmax - data.target.Vmin), Math.abs(data.source.Vmin - data.target.Vmax))))

Please advise if these need to be updated.