PSCAD Course Notes
PSCAD Course Notes
+
(
=
(
ib
ia
Rb o
o Ra
ib
ia
dt
d
Lb Mab
Mab La
vb
va
Use the transformers section to enter the L and R values.
Connect the model to a source and verify the model.
Two coupled
wires with capacitance
a1
b1
a2
b2
Use the Branch section to add stray capacitance between the wires on the input side.
69 / 72
PSCAD Advanced Training - Tutorial 4
Electrical Component A simple DC Machine
Purpose:
I nterface an electric component as a voltage source. (Branch based interface)
Design a simple model of a DC machine.
Field circuit - Series L and R
Armature circuit A series branch of L, R and a voltage source of magnitude Eb.
w k Eb u = _
speed w =
( )
kf if
e k
/
1
5 . 188
150
_
= u
if Field current
kf Input parameter (constant)
The inductances and resistances are the other inputs.
f1
a1
a2
w
f2
Simple
DC Machine
70 / 72
FORTRAN CODES
Integrator:
!
SUBROUTINE INTEGRATOR(x,y,YINI)
!
! Purpose - integration of a real signal
! Language - Fortran 77/90
! Date -
! Author -
!
! Include Files
! -------------
INCLUDE 'nd.h'
INCLUDE 's1.h'
INCLUDE 'emtstor.h'
!
! Variable Declarations
! ---------------------
REAL x,y,YINI
REAL YOLD
INTEGER ISTORF
!
! Program begins
! --------------
! ISTORF = NSTORF
NSTORF = NSTORF + 1
! it is good to assign NSTORF to ISTORF and
! have all the user assigned STORx locations at the
! top, then you can even use the other functions
! available in EMTDC in your code without worrying
! about which STORx locations are
! used by them
YOLD = STORF(ISTORF)
! here NSTORF points to the first STORF location
! used in the routine, in the old method in V2, NEXC
! pointed to the last STOR location in the previously
! called subroutine/function.
Y = x*DELT + YOLD
! output at time zero
IF (TIMEZERO) THEN
Y = YINI
ENDIF
! save the data for next time step
STORF(ISTORF) = y
!
RETURN
END
71 / 72
Simple DC Machine:
SUBROUTINE SIMPLEDC(Kf,w,A1A2,F1F2,SS)
!
! Dharshana : 04 Aug 2002
!
INCLUDE 'nd.h'
INCLUDE 's0.h'
INCLUDE 's1.h'
INCLUDE 's2.h'
INCLUDE 'branches.h'
REAL Kf,Ifld,w,k_pi
INTEGER A1A2,F1F2,SS
! Activate the source on branch A1A2
SOURCE(A1A2,SS)=.TRUE.
!
! Read the field current and the armature current during the previous time step
Ifld=CBR(F1F2,SS)*1000
!
! Define the noload excitation charactersitics for the machine
!
k_pi = (150/188.5)*(1 -EXP(-Ifld/Kf))
!
EBR(A1A2,SS)=-k_pi*w/1000
!
RETURN
END
!
72 / 72
That concludes the Introduction to PSCAD and Applications course. Thank
you for your attention and participation. As you work with PSCAD in the
future, please remember we are available to provide assistance with any
simulation or modeling difficulties you may encounter. Please do not
hesitate to contact us at:
[email protected]
As well, additional training courses are available, please refer to
www.pscad.com for more information. We are also able to offer customized
courses to suit your specific requirements. Please do not hesitate to contact
us for more information at:
[email protected]
Manitoba HVDC Research Centre Inc.
244 Cree Crescent
Winnipeg, Manitoba, Canada R3J 3W1
T 204 989 1240 F 204 989 1277
[email protected] www.hvdc.ca
F A X
Page 72 of 10
Urgent
For Review
Please Comment
Please Reply
Please Recycle
The information contained in this
facsimile is strictly for the personal
attention of the addressee.
The Manitoba HVDC Research Centre Inc.
accepts no responsibility for consequences
arising from receipt of this facsimile
by a party other than the addressee.
If you have received this facsimile in error,
please notify us immediately. Thank you.