[TRNSYS-users] Modification in a library component and output files

David Bradley bradley at tess-inc.com
Mon Feb 2 10:41:03 PST 2009


>
>  
>
> I am trying to modify a component that is already put (or embedded) 
> into my project in the simulation studio. The output parameters of the 
> component are not able to change. If somebody wants to make some 
> changes, then it has to make changes to the library component, and put 
> it again to the simulation studio. Is that correct?
>
if the parameters  inputs and outputs of the model do not change then 
there is no need to modify the proforma and the user is not obligated to 
replace the component in the Simulation Studio project. All they have to 
do at that point is make sure that they are using a DLL that contains 
the modified, recompiled, relinked source code that incorporates the 
change. If the list of parameters, inputs, and output changes then the 
user needs to update the proforma, then update all instances of that 
proforma in the project (either by performing an "edit: replace" or by 
deleting and readding the component.
>
> I create some new “outputs” to a library component, defining the name, 
> the role, the dimension and the unit. How can I be sure that the 
> program really “understands” what is about? For example, the new 
> parameters created by me are total and beam solar radiation in 4 
> elevations. As a result I get error messages. On the other hand, if I 
> copy the same component from another project (that solar radiation in 
> 4 elevations are already set), I don’t get error messages, but I 
> cannot change some options (for example the unit of solar radiation 
> that is an output). Have you got any idea about solving this problem?
>
the list of inputs, outputs, and parameters in the proforma must 
correspond exactly to the list of inputs, outputs, and parameters that 
are expected by the source code. You cannot just change the proforma 
without also changing the source code and recompiling the appropriate 
DLL. Without knowing what the error message says, it is a bit hard to 
guess what the problem might be.
>
> There is an additional question about simulation. Using type 65a, 
> gives me a result file in *.plt form. When I read the results using 
> the software named “WordPad” I get the correct results. When I 
> transform the same file in order to be able to read it with excel, the 
> numbers seems to change. For example a temperature that is 
> +2.0008191901532996E+01, is viewed through excel as 2,00E+17!!!! Is 
> there I can do for that. Maybe using another software?
>
you should be able to open those files with either Wordpad or Excel. The 
*.plt file generated by Type65 is just a tab (or space, I am not sure) 
delimited text file. I would guess that if Excel is showing you some 
strange numbers, it is just misinterpreting the format of the data that 
it is reading. I use Excel (2003) all the time to open output files 
generated by TRNSYS. Typically, I open Excel first, then select "File: 
Open" browse to find the file and then follow through all of the import 
screens to teach Excel that both spaces and tabs are field delimiters.

Kind regards,
 David

-- 
***********************************************************************
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/20090202/158e8803/attachment-0005.htm>


More information about the TRNSYS-users mailing list