Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TwoWindings and ThreeWindings new Cgmes conversion (#1066)
* Refact generator regulating control Signed-off-by: José Antonio Marqués <marquesja@aia.es> Signed-off-by: Luma Zamarreño <zamarrenolm@aia.es> * Two windings tranformer regulating control refactoring * Static Var Compensator Regulating Control refactoring * Merge master into branch T3xRegulatingControl * Warning message * Sonar Fixes * Unitary test: three windings transformer with two regulating controls enabled. * Reviewer comments * CorrectlySet adjustments * class names and method names: uniformization * Reviewer comments, merge some methods * Add phaseAngleClock to twoWindingsTransformer as an extension * Only one regulating control enabled * Delete unnecessary code * Test adjustments (Now only one regulating control enabled is allowed) * PhaseTapChanger. Fix regulationMode - Regulating * apply previous reviewer comments * Adjust warning message * T3x new api * Only one phaseAngleClock in twoWindingsTransformer * Add phaseAngleClock in ThreeWindingsTransformer as an extension * Improve phaseAngleClock test * pretty code * Test adjustment * ThreeWindingsTransformer: Check if there is more than one tap changer on the leg * Add the method setPhaseAngleClock in the test * Add the methods setPhaseAngleClockLeg2 and setPhaseAngleClockLeg3 in tests * Rename old classes. Add new classes with minimal code. * Apply reviewer comments * extend twoWindingsTransformer phaseAngleClock reviewer comments to threeWindingsTransformer * TxConversion, cgmesModel load * Rename classes * TwoWindingsTransformer and ThreeWindingsTransformer: interpreted model * Add regulating. Pretty code * TwoWindingsTransformer and ThreeWindingsTransformer: set to IIDM * Set phaseAngleClock to IIDM * TwoWindingsTransformer and ThreeWindingsTransformer: RegulatingControl context * Improve isSymmetrical method * Fix alpha in getStepXforAsymmetrical and getStepXforSymmetrical * Fix merging view * add phaseTapChanger compare in threeWindingsTransformer * Sonar fixes * add new tests to increase coverage * Fix warning ratio and phase on the leg * add xml test for a three windings transformer with all tap changers * Fix ThreeWindingsTransformer phaseAngleClock test to the current xml converter version * TwoWindingsTransformer and ThreeWindingsTransformer instead of Connectable * Extend some methods to all tap changers of the threeWindingsTransformer * Do not discard the tapChanger if tapPosition is outside limits. An exception will be generated. * warning when a tapChanger is fixed * Update Three Windings Transformer javadoc * PhaseAngleClock adjustment * Loadflow validation and loadflow resultscompletion adjustments * Use alphaRatio to clarify the code * Symmetrical and Asymmetrical phaseTapChanger refactorization * Update Copyright * Xfmr2RatioPhaseRtc should be Xfmr2RatioPhaseX * Xfmr2 only one negate. Add negate to Xfmr3. Delete Rtc option in ratio0Xfmr2. * Delete unnecessary functions Signed-off-by: José Antonio Marqués <marquesja@aia.es> * Verify interpretation for the location of CGMES tap changers relative to transmission impedance of the corresponding transformer end * current conversion uses configuration for considering phase angle clock Signed-off-by: Luma Zamarreño <zamarrenolm@aia.es> * Set deprecated functions Signed-off-by: José Antonio Marqués <marquesja@aia.es> * check same identifiers instead of ensuring equivalent objects * Identifiables may be null Signed-off-by: Luma Zamarreño <zamarrenolm@aia.es> * Compare current conversion and new conversion. JavaDoc interpretation alternatives. Signed-off-by: José Antonio Marqués <marquesja@aia.es> * consider PhaseTapChangerLinear to keep conversion identical to previous one * Allow PhaseTapChangerTablePoint without angle attribute Although CGMES says it is required, it has been found as a common error in some test cases Signed-off-by: Luma Zamarreño <zamarrenolm@aia.es> * Improve and fix configuration of alternatives Signed-off-by: José Antonio Marqués <marquesja@aia.es> * flows on 3-windings transformer: take into account ratio tap changer at leg 1 * additional tests; avoid static flag to select between current/new transformer conversion Signed-off-by: Luma Zamarreño <zamarrenolm@aia.es> * Fix step adjustment in TwtData Signed-off-by: José Antonio Marqués <marquesja@aia.es> * Delete profiling Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com> * keep angle required in phase tap changer table point, following standard Signed-off-by: Luma Zamarreño <zamarrenolm@aia.es> * structuralRatio instead of ratio0 to be more understable * Delete all conversion code associated with phaseAngleClock * Do the shunt admittance conversion at the convert stage. Signed-off-by: José Antonio Marqués <marquesja@aia.es> * reorganize code to enhance readability Signed-off-by: Luma Zamarreño <zamarrenolm@aia.es> * Review and initial documentation of conversion methods to enhance readability * Xfmr2ShuntInterpretationAlternative: Fix END1_END2 as default * Fix ShuntAdmittance bug in BranchData and TwtData. Test adjustments. * Delete xfmr2PhaseNegate and xfmr3PhaseNegate alternatives * CgmesT2xModel, InterpretedT2xModel, ConvertedT2xModel, CgmesT3xModel, InterpretedT3xModel and ConvertedT3xModel in separated classes * Reduce duplicated code * Delete unnecessary code * Apply reviewer comments Signed-off-by: José Antonio Marqués <marquesja@aia.es> * Fix code smells Signed-off-by: RALAMBOTIANA MIORA <miora.ralambotiana@rte-france.com> Signed-off-by: José Antonio Marqués <marquesja@aia.es> Co-authored-by: Luma <zamarrenolm@aia.es> Co-authored-by: MioRtia <miora.ralambotiana@rte-france.com>
- Loading branch information