Hello everybody I was trying to follow the trnsys guide line to create the new
components in simulation studio. I faced problems in compiling the exported
fortran skeleton. Regarding to trnsys instruction “creating new
component” in page 1-65 of the manual “Getting started”; I
was looking for right place to add the equation in the fortran skeleton. After
search and asking trnsys users I have got it and I think every beginner in trnsys
would face the same. I hope it helps. Simple example: Generation
of a new component via simulation studio Generation of the component which is able to evaluate this equation: Opt = inp + par Input: inp Output: opt Parameter: par
Call SetOutputValue(1, 0) ! opt
Call SetOutputValue(1, opt)
Finally as attached you
can find two fortran program as references: 1- The
automatically exported fortran script in CVF6.6b from simulation studio without
modification which could not be compiled 2- Modified
script which could be compiled (the modifications are highlighted) Thanks to David Bradley, Stefan Thiemann and Jaime
Gonzalez Rodriguez for their replies. Regards Mehdi Shahrestani |
Attachment:
Type211 after modification.doc
Description: MS-Word document
Attachment:
Type211 before modification.doc
Description: MS-Word document