Ask Your Question
0

model writing and debugging

asked 2019-03-21 21:43:30 -0600

Gloria.Z gravatar image

updated 2019-03-21 21:44:21 -0600

Hello. we do the dynamic simulation following:
1. Generate a user-defined model file .dll. 2. Calculating the trend 3. Import the .dyr file 4. Initialization. 5. dynamic simulation My qusetion is: In the whole process above, how is the mode 1-8 executed? and What is the order? (MODE4 MODE1 MODE3 MODE2 MODE3 MODE2...) Why does the PSS/E do follow the order?

and how to use the WRITE(LPDEV,*)
and WRITE(DBUF01, 107) STATE(K) CALL PROGRESS(DBUF01,1)?

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-03-22 02:36:59 -0600

perolofl gravatar image

The MODEs are described in Program Application Guide, Volume 2, Chapter 13.5. Only MODE 1-4 are called in a dynamic simulation.

edit flag offensive delete link more

Comments

@perolofl Thank you. the execution order of MODE1-4 is? and how to use the WRITE(LPDEV,*) "STATE1" xxx and how to use the WRITE(DBUF01, 107) STATE(K) CALL PROGRESS(DBUF01,1)?

Gloria.Z gravatar imageGloria.Z ( 2019-03-22 10:33:47 -0600 )edit

From POM: "Any error or progress report messages written in MODEs one through four should be written to the FORTRAN unit number specified by the variable LPDEV" Unit DBUF01 is unknown to me. Where do you find those statements?

perolofl gravatar imageperolofl ( 2019-03-22 11:20:48 -0600 )edit

Mode 4-1-3-2 is called at STRT. Mode 3-2 during each time step of the simulation.

perolofl gravatar imageperolofl ( 2019-03-22 11:21:41 -0600 )edit

@perolofl Thank you. I learn the WRITE(DBUF01, 107) from a friend from Psspy.

Gloria.Z gravatar imageGloria.Z ( 2019-03-22 11:30:36 -0600 )edit

I think DBUF01 is a character variable and the WRITE-statement is writing to the variable using the formatting in 107 FORMAT-statement.

perolofl gravatar imageperolofl ( 2019-03-25 16:17:03 -0600 )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: 2019-03-21 21:43:30 -0600

Seen: 904 times

Last updated: Mar 22 '19