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

Ask Your Question
0

Question about coordinated call models

asked Apr 12 '2

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/

1 answer

Sort by » oldest newest most voted
0

answered Apr 12 '2

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.

link

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 (Apr 12 '2)

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

dat gravatar imagedat (Sep 12 '2)

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

1 follower

Stats

Asked: Apr 12 '2

Seen: 434 times

Last updated: Apr 12 '22