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

Re: [TRNSYS-users] ??



Hi Jeff,


In fact I am calling Matlab in my simulation to calculate some outputs, but the input is constant for the entire simulation which means the outputs would be also the same. So I need to call Matlab for the first time step only and hold the values for the remaining time (8760 hour). Basically, I don't mind making the calculation each time step, BUT it's consuming time especially if I am running an optimization. 

In your suggestion, the values could be hold (25 hours max) but the call for Matlab is done anyway right?

I need the trnsys not to make the call at all after the first time step.
Hope you get what I intend to do.
Thanks..


Houssein


From: Jeff Thornton via TRNSYS-users <trnsys-users@lists.onebuilding.org>
Sent: Thursday, June 9, 2016 5:36 AM
To: trnsys-users@lists.onebuilding.org
Subject: Re: [TRNSYS-users] ??
 

While I'm not quite sure why you might want to do that, there are certainly ways to do it.  The easiest is probably to use the input delay controller in the TESS controls library if you have it and set the "hold" time to something large.  I'm sure there are other clever ways that accomplish the same thing.  You could integrate an equation that has the output multiplied by a forcing function where the forcing function is one only at the first timestep and 0 otherwise.

 

Jeff

 

---
Jeff Thornton President - TESS LLC 22 N. Carroll Street, Madison WI USA 53703 Office: (608) 274-2577 Fax: (608) 278-1475 www.tess-inc.com E-Mail: thornton@tess-inc.com

On 06/08/2016 7:43 pm, Hsein Moussawi via TRNSYS-users wrote:

Hi guys,

In certain simulation, can I make a component run for one time step only and give the same outputs for the rest of the simulation??

 


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