Ask Your Question
0

Question about coordinated call models

asked 2022-04-12 11:15:46 -0500

PSSE_Learner gravatar image

Hi Guys,

I need some help in coordinated call models in PSSE. I have written a simple user models which takes voltage as input and calcuates the injected current (real and imaginary parts) based on the voltage dip. I set the P and Q fixed.

Some how the injected currents do not match with the hand calculation. Maybe i am missing something or am i doing something wrong ?. Any help would be really appreciated.

It is also very hard to get a working example of a coordinated call model.

Below is the Fortran Code

  SUBROUTINE CCMTRY (MC, ISLOT)
  INCLUDE 'COMON4.INS'  
  INTEGER MC,ISLOT,IB, J, K, L
  COMPLEX PQ
  REAL VM,VFilt
  INTRINSIC ABS,CONJG,AIMAG

  J = STRTIN(1,ISLOT)
  K = STRTIN(2,ISLOT)
  L = STRTIN(3,ISLOT) 

  IB=NUMTRM(MC)
  IF(IB.LE.0)RETURN
  IF (MODE .GE. 4)RETURN

  VM = ABS (VOLT(IB))
  IF (MODE .EQ. 1)THEN
  STATE(K) = VM
  ENDIF

  IF (MODE .EQ. 2)THEN
  DSTATE (K) = (VM-STATE(K))/CON(J)
  ENDIF

  IF (MODE .EQ. 3)THEN
  VFilt = MAX(STATE(K),0.0)
  VAR(L) = VFilt
  ENDIF

  IF (MODE .EQ. 4)THEN
  NINTEG = MAX(NINTEG,K)
  ENDIF
  RETURN     

  ENTRY TCMTRY(MC,ISLOT)

  IB=NUMTRM(MC)
  IF(IB.LE.0)RETURN

  PQ=(0.5,0.3)

  CURNT(IB)=CURNT(IB)+CONJG(PQ/VFilt)

  VAR(L+1) = REAL(CONJG(PQ/VFilt))
  VAR(L+2) = AIMAG(CONJG(PQ/VFilt))

  RETURN
  END

Below is the dyr file i used

  1 'USRMDL' 1 'CCMTRY' 101 1 0 1 1 3/
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2022-04-12 12:20:16 -0500

perolofl gravatar image

Variable VFilt is a local variable and should not be referenced after ENTRY TCMTRY. Use the value stored in VAR(L) instead.

edit flag offensive delete link more

Comments

Thank you for your answer. Do you think that the code is Ok other than that ? . One more question, can i use ISOURCE with wind generator or it can be only be used with synchrnous machine ?. Thank you very much for your kind help.

PSSE_Learner gravatar imagePSSE_Learner ( 2022-04-12 12:24:54 -0500 )edit

Hi, have you solved the problem about ISOURCE? I have the same question about wind generator.

dat gravatar imagedat ( 2022-09-11 21:37:14 -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

1 follower

Stats

Asked: 2022-04-12 11:15:46 -0500

Seen: 374 times

Last updated: Apr 12 '22