// This aux file flags any branch in a contingency analysis that had status closed before the contingency and status open after the contingency // with an angle difference after the contingency greater than 20 degrees DATA (FILTER, [ObjectType,FilterName,FilterLogic,FilterPre,Enabled],,Yes) { "Branch" "status open and angle diff >20 deg" "AND" "YES" "YES" LineStatus startswith "open" CustomExpression > 20.00000 "Branch" "status closed" "AND" "YES" "YES" LineStatus startswith "closed" } DATA (CUSTOMEXPRESSION, [ObjectType,ObjectType:1,CustomExpressionString,VariableName,VariableName:1, VariableName:2,VariableName:3,VariableName:4,VariableName:5,VariableName:6, VariableName:7],,Yes) { "Branch:1" "AngleDiff" "abs(x1-x2)" "BusAngle" "BusAngle:1" "" "" "" "" "" "" } DATA (CUSTOMMONITOR, [CustomMonitorName,ObjectType,WhoAmI,VariableName,FilterName,FilterName:1,Enabled],,Yes) { "OpenBranchAngleDifference" "Branch" "" "CustomExpression" "status closed" "status open and angle diff >20 deg" "YES" }