[TRNSYS-users] How can I add a TRNLIB component to TRNSYS ?

David BRADLEY d.bradley at tess-inc.com
Wed Jul 3 09:10:39 PDT 2019


Nicolas,

  It depends a bit on what version of TRNSYS you are using. If you are 
using v18 then there is a built-in Fortran compiler and you should be 
able to take the source code file (which is just a text file with a 
different extension), compile it and make a dll. If you are using an 
earlier TRNSYS version then it is a bit more complicated and you will 
need to have access to a Fortran compiler. The Intel Fortran compiler 
plugs into the same Visual Studio that already contains your C++ compiler.

kind regards,

  David


On 07/03/2019 04:05, Nicolas Poitrenaud via TRNSYS-users wrote:
> Hello everyone,
>
> I would like to know how to add a component from the TRNLIB library to TRNSYS.
> The TRNLIB library is mostly only providing the fortran source code and a component description in .txt format.
> However, to get to use a component, one also needs the proforma file, the project file and to create (to "build") a DLL, linking the component to TRNSYS.
>
> To create my own components, I actually use the "new component" interface in TRNSYS, export the component in C++ format and complete the source code via Visual Studio.
>
> I guess that there is some easy way to generate the proforma/DLL/project file by compiling the Fortran code, but I am not so gifted when it comes to computer science.
>
> Can someone please give me hints on how to use the TRNLIB components ? The software to use ?
>
> Thank you very much and have a nice day !
>
-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20190703/4ade5163/attachment.html>


More information about the TRNSYS-users mailing list