[TRNSYS-users] How to use TRNLIB - Libraries of User-Written Components for TRNSYS

David BRADLEY d.bradley at tess-inc.com
Mon Feb 3 07:49:50 PST 2014


Mr Singh,
   The procedure for writing new components is covered in the 
07-Programmer's Guide manual (08-Programmer's Guide if you are using 
Trnsys16). The manual assumes that you are writing a new component and 
not that you have a prewritten component. You would need to read the 
information on how to compile and link fortran code (a *.for file) into 
a DLL that can be accessed by TRNSYS. In order to do so, you would need 
to have access to a Fortran compiler (preferably the Intel Visual 
Fortran compiler as that is the one that the TRNSYS developers use). If 
you do not have access to a compiler, it may be less expensive to 
contract with someone who can generate the DLL for you.

   I might also mention that the three-way valve component in TRNLib 
looks like a more complex version of a couple of existing components. 
Type11 in the standard TRNSYS library and Types 647 and 649 in the TESS 
Hydronics library may serve your purpose in a simpler way. The component 
in TRNLib seems to add in the impact of the non-linearity of the valve 
actuator where Types 11, 647 and 649 simply ask the user to specify the 
fraction of flow that comes from each of the two inlet ports.
Kind regards,
  David


On 2/3/2014 01:48, Abhay Pratap Singh wrote:
> Dear Trnsys user's
>                              I want to make a three way valve component
> for which i have .for file from
> http://sel.me.wisc.edu/trnsys/trnlib/library16.htm#hydronics but i do
> not know how to use this file to make a component.

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
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




More information about the TRNSYS-users mailing list