[TRNSYS-users] Using Fortran dll in Trnsys

David Bradley bradley at tess-inc.com
Tue Apr 17 12:38:25 PDT 2007


Marijke,
   Once you have written the Fortran code, you need to compile and 
link it to create a DLL. The DLL then gets placed in either

..\Trnsys16\UserLib\ReleaseDLLs
or
..\Trnsys16\UserLib\DebugDLLs

depending on the mode in which it was compiled. There is no need to 
tell the proforma about the DLL because the Studio simply writes an 
input file based on the information in the proformas that you have 
put into the simulation. The input file will contain a reference to 
your component's Type number and when TRNSYS launches, it will go 
hunting for DLLs containing that (and other) Type numbers in the 
\UserLib directory. The process of creating a DLL is described in the 
08-Programmer's Guide manual.
Cheers,
  David


At 05:01 4/17/2007, Marijke Steeman wrote:
>Dear all,
>
>I want to use a new type, of which I have the fortran-file, in 
>Trnsys. Therefore I made a
>proforma with the inputs-outputs-parameters of the type and I have 
>put it under "Studio"
>< "Proformas". I stored the Fortran- file under "Source-code" < 
>"Types". However, when
>I want to run a simulation with the type, Trnsys seems not to find 
>the dll. Can someone
>tell me how to link the Proforma with the dll. I tried by inserting 
>the dll - path in box
>"Source code file" and "Associated files" in the proforma of the 
>type but this seems not
>to help.
>
>Thanks a lot!
>marijke
>
>
>ir-arch Marijke Steeman
>Universiteit Gent
>Vakgroep Architectuur en Stedebouw
>Jozef Plateaustraat 22
>9000 Gent
>tel 09 264 37 52
>fax 09 264 41 85
><mailto:marijke.steeman at ugent.be>marijke.steeman at ugent.be
>_______________________________________________
>TRNSYS-users mailing list
>TRNSYS-users at engr.wisc.edu
>https://www.cae.wisc.edu/mailman/listinfo/trnsys-users

****************************************************************************************
Thermal Energy System Specialists (TESS), LLC
David BRADLEY                           2916 Marketplace Drive - Suite 104
Partner                                        Madison, WI 53719
Phone: (608) 274-2577 USA
Fax: (608) 278-1475
E-mail: bradley at tess-inc.com
Web Pages:  http://www.tess-inc.com     and      http://www.trnsys.com

"Providing software solutions for today's energy engineering projects"
****************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20070417/65fe6d28/attachment-0005.htm>


More information about the TRNSYS-users mailing list