First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
1

model writing

asked Oct 26 '3

WN gravatar image

updated Oct 26 '3

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

1 answer

Sort by » oldest newest most voted
1

answered Oct 26 '3

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)
link

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 (Oct 26 '3)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Oct 26 '3

Seen: 897 times

Last updated: Oct 26 '23