[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Reading Parameter from Types



Hey David,

 

thank you for your hint.

I´ll use your solution for the parameter-issue.

And concerning the code, I found the problem. The values for lamdaa,tetaa etc. are also arrays. So I tried to write an array(x) to a single “slot” of my SPEICHER-Array.

 

Kind regards,

Tom

 

Von: TRNSYS-users <trnsys-users-bounces@lists.onebuilding.org> Im Auftrag von David BRADLEY via TRNSYS-users
Gesendet: Montag, 5. März 2018 22:02
An: s0537085 via TRNSYS-users <trnsys-users@lists.onebuilding.org>
Cc: David BRADLEY <d.bradley@tess-inc.com>
Betreff: Re: [TRNSYS-users] Reading Parameter from Types

 

Tom,

 Parameters cannot be passed from one component to another. The best solution, I think, would be to take the pipe diameter as a parameter to your model. In the simulation studio you can then set the value of that parameter as the result of an equation (select units of "string" in Trnsys17 or units of "variable name" in Trnsys18). Then define an equation such as

pipe_dia = 0.02

and use pipe_dia as the value of the parameter for both components.

kind regards,

 David

 

 

On 03/04/2018 14:45, s0537085 via TRNSYS-users wrote:

Dear TRNSYS-Community,

 

for my own type I need to know the diameter of type 31, in order to apply Torricelli´s Law. There for I´m looking for an solution to get the parameter of type 31. Is there a way?

 

Kind regards

Tom




_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org



-- 
***************************
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@tess-inc.com
 
http://www.tess-inc.com
http://www.trnsys.com