[TRNSYS-users] Add component

David Bradley bradley at tess-inc.com
Fri Jul 10 09:56:29 PDT 2009


Fortran code has to be compiled and linked to form a DLL. The DLL is 
placed in the ..\Trnsys16_1\UserLib\ReleaseDLLs directory and is 
accessed by TRNSYS during the simulation. In order to generate a DLL you 
need to have a Fortran compiler. The two most commonly used compilers are:

the Compaq Visual Fortran compiler (whose workspace is called a *.dsw 
file and which is created automatically by the Simulation Studio as 
Werner mentioned)
the Intel Visual Fortran compiler

There is also a freely available compiler which some have successfully 
used to compile and link types (http://www.g95.org/).

The procedure for creating a DLL differs depending on which compiler you 
plan to use. Do you have access to one of these three?
Regards,
 David


dias.marcos at portugalmail.pt wrote:
> Sorry, but i still don't understand.
> I accept if you think i'm stupid, but i have seen all the chapter 8  
> but it only debuts code and how we can make codel. I have a component  
> already made wich i have downloaded. The file is in FORTRAN format.  
> So, after create the proforma what must i do? And, what is *.dsw? I  
> don't know where i open de compile project...
>
> Dear Werner,
>
> Why do you tell me that in the end of the procedure that you describe,  
> this will no work???
>
> THANKS FOR THE COMPREHENSION!!!
>
>
> Quoting "keilholz, werner" <werner.keilholz at cstb.fr>:
>
>   
>> If you're new to making components, I recommmend to start by making  
>> a new simple component (x=2*y) first. Then, try with yours:
>>
>> 1. Create the Proforma in Simulation Studio
>> 2. Save it (.tmf file)
>> 3. Use File/Export to ... FORTRAN
>> 4. Replace the generater .FOR file by yours
>> 5. Open the compile project (.dsw ) and compile
>> 6. Read the Programmer's Guide manual to find out why it doesn't work.
>>
>> Werner
>>
>> -----Message d'origine-----
>> De : dias.marcos at portugalmail.pt [mailto:dias.marcos at portugalmail.pt]
>> Envoyé : vendredi 10 juillet 2009 14:54
>> À : TRNSYS-users at cae.wisc.edu
>> Objet : Re: [TRNSYS-users] Add component
>>
>> Hi! Thanks for the answers.
>>
>> Sincerly, i have checked severeal times that chapter, but i stil can't
>> find what i want.
>> Can anyone specify for me please where is the detailed procedure?
>>
>> Thanks
>>
>>
>> Quoting David Bradley <bradley at tess-inc.com>:
>>
>>     
>>> Look in the 08-Programmer's Guide manual. The procedure is explained
>>> in there.
>>> Regards,
>>> David
>>>
>>>
>>> dias.marcos at portugalmail.pt wrote:
>>>       
>>>> Hi,
>>>>
>>>> Can anyone tell me what is the procedure to add a new component?
>>>> I have a *.for file....
>>>>
>>>> thanks!
>>>>
>>>> _______________________________________________
>>>> TRNSYS-users mailing list
>>>> TRNSYS-users at cae.wisc.edu
>>>> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>>>>
>>>>
>>>>
>>>>
>>>>         
>>> --
>>> ***********************************************************************
>>> Thermal Energy System Specialists (TESS), LLC David BRADLEY
>>>             22 N. Carroll Street - Suite 370 Partner
>>>            Madison, WI 53703                                   USA
>>> P: +1.608.274.2577 F: +1.608.278.1475
>>> E-mail: bradley at tess-inc.com Web Pages:  http://www.tess-inc.com
>>> and      http://www.trnsys.com
>>>
>>> ***********************************************************************
>>>
>>>
>>>       
>>
>> _______________________________________________
>> TRNSYS-users mailing list
>> TRNSYS-users at cae.wisc.edu
>> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>>
>>     
>
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>   

-- 
***********************************************************************
Thermal Energy System Specialists (TESS), LLC 
David BRADLEY                      22 N. Carroll Street - Suite 370 
Partner                            Madison, WI 53703 
                                   USA
P: +1.608.274.2577 
F: +1.608.278.1475
E-mail: bradley at tess-inc.com 
Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com

***********************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20090710/89b8b535/attachment-0001.htm>


More information about the TRNSYS-users mailing list