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

吉永 美香 yoshi at meijo-u.ac.jp
Thu Oct 30 22:25:48 PDT 2014


Dear Jeff and Yasuda-san,

Thanks to you two, the problem was solved and I found that INCLUDE
statement is much more convenient than using equations in this case!!

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
===================================

2014-10-31 12:57 GMT+09:00 Jeff Thornton <thornton at tess-inc.com>:

> Don't use Type 9 to read in the values as they are then set as time
> dependent variables and since the length is a parameter (time independent)
> it gets set once and only once - before Type 9 reads the values.  Instead
> use an INCLUDE statement and set the variables as equations/constants in
> the include file.
>
> Jeff Thornton
> TESS
>
> Sent from my iPhone
>
> > On Oct 30, 2014, at 10:51 PM, Yuichi Yasuda <yasuda at qcd.co.jp> wrote:
> >
> > 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
> >>
> >
> > _______________________________________________
> > TRNSYS-users mailing list
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20141031/3040a37d/attachment-0003.htm>


More information about the TRNSYS-users mailing list