Ask Your Question
1

model writing

asked 2023-10-25 18:36:22 -0500

WN gravatar image

updated 2023-10-25 22:01:44 -0500

I am writing an OLTC model for a 2-winding transformer. I was using IC=302 in the model call in the dyre file. The model is referred to as a CCT type model. My subroutine statement is: SUBROUTINE TAP_CHNG(KM, ISLOT). My question is: how do I identify the Frombus, Tobus and ckt ID of the transformer from KM? I could add ICONs that specify Frombus, Tobus and ckt ID, but that leaves the possibility that these ICONs could be inconsistent with the specification of these in the model call in the dyre file.

It would be greatly appreciated if someone could provide me with an answer to this question.

Willem

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2023-10-26 02:07:12 -0500

perolofl gravatar image

Use GETFTC (external function) to get the internal bus numbers of IBUS and JBUS and the circuit ID.

 CALL GETFTC(KM,IB,IB2,ID)

The external bus number is given by:

IBUS = NUMBUS(IB)
JBUS = NUMBUS(IB2)
edit flag offensive delete link more

Comments

I have tested it, and I confirm that it works! Thank you very much for providing the answer. It is really great, and much appreciated! Willem

WN gravatar imageWN ( 2023-10-26 16:37:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2023-10-25 18:36:22 -0500

Seen: 833 times

Last updated: Oct 26 '23