[TRNSYS-users] How to pass variable defined by equation to parameters

Yuichi Yasuda yasuda at qcd.co.jp
Thu Oct 30 20:51:10 PDT 2014


Dear Dr. Yoshinaga,

I'm digging into the source code of the type31. The type checks the
parameters at START TIME.
I guess that the type9 has not begun to read data file at this stage.
So, as a result, the variable is treated as default (=0) and causes the
error you reported.

Does anyone has workarounds?

Best regards,

Yuichi Yasuda


(2014/10/31 10:59), 吉永 美香 wrote:
> Dear Sasuda-san,
> Nice to hear you. Thanks for your comment.
> Yes, I selected "string" as unit and, additionally, optimised the order 
> of the components.
> I attached very simple sample that creates error #125.
>  >TRNSYS Message    125 : The referenced Unit has a bad parameter value.
>  >Reported information  : Parameter # 2, Reported Problem: The pipe 
> length must be greater than 0.
> Best regards,
> Mika
> ===================================
> Dr. Mika Yoshinaga
> Associate Professor
> Meijo University
> Shiogamaguchi1-501,Tempaku, Nagoya
> Phone: +52-838-2385
> Email: yoshi at meijo-u.ac.jp <mailto:yoshi at meijo-u.ac.jp>
> ===================================
> 
> 2014-10-31 10:19 GMT+09:00 Yuichi Yasuda <yasuda at qcd.co.jp 
> <mailto:yasuda at qcd.co.jp>>:
> 
>     Dr. Yoshinaga,
> 
>     If you want to use the variable as a parameter, you have to choose
>     'String' for the unit.
> 
>     Yuichi Yasuda
>     Quattro Corporate Design
> 
>     (2014/10/30 18:35), 吉永 美香 wrote:
>      > Dear all,
>      > Does anyone know the way to pass some variables which are defined by
>      > "equation" to parameters? I want to give them from an external
>     file via
>      > type9.
>      >
>      > Actually, we can see this example in the project semi-automatically
>      > created with TRNSYS 3D. Type 15(Weather data) has a variable named
>      > "AA_H_0_0" on parameter field and it is defined in an "equation".
>     So I
>      > thought it is easy thing.
>      >
>      > But I tried this in generic types, for example Parameters#2(pipe
>     length)
>      > of type31(pipe), and the simulation would stop with error saying the
>      > parameter is invalid.
>      >
>      > Thanks in advance.
>      >
>      > Best regards,
>      > Mika
>      > ===================================
>      > Dr. Mika Yoshinaga
>      > Associate Professor
>      > Meijo University
>      > Shiogamaguchi1-501,Tempaku, Nagoya
>      > Phone: +52-838-2385
>      > Email: yoshi at meijo-u.ac.jp <mailto:yoshi at meijo-u.ac.jp>
>     <mailto:yoshi at meijo-u.ac.jp <mailto:yoshi at meijo-u.ac.jp>>
>      > ===================================
>      >
>      >
>      >
>      > _______________________________________________
>      > TRNSYS-users mailing list
>      > TRNSYS-users at lists.onebuilding.org
>     <mailto:TRNSYS-users at lists.onebuilding.org>
>      >
>     http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
>      >
> 
>     _______________________________________________
>     TRNSYS-users mailing list
>     TRNSYS-users at lists.onebuilding.org
>     <mailto:TRNSYS-users at lists.onebuilding.org>
>     http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
> 
> 
> 
> 
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
> 




More information about the TRNSYS-users mailing list