[TRNSYS-users] How to deal with a constant input when programming a type
Arian Bahrami via TRNSYS-users
trnsys-users at lists.onebuilding.org
Fri Mar 10 12:41:15 PST 2017
Dear Jeff/Javier
Thanks for the correction. Please refer to volume 2 of the manual for further information regarding locking and unlocking variables.
Best Regards,
Arian.
Sent from my iPhone
> On 10 Mar 2017, at 9:02 pm, Jeff Thornton via TRNSYS-users <trnsys-users at lists.onebuilding.org> wrote:
>
> <As you probably know if you use the lock button, they are set to the initial value in whole simulation.>
>
> That's not true for inputs. You can try it for yourself (we just did it here). But you are correct in that unconnected inputs take their initial values for the entire simulation.
>
>
>
> 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 at tess-inc.com
>> On 03/10/2017 1:52 pm, Arian Bahrami via TRNSYS-users wrote:
>>
>> Dear Javier
>>
>> It depends if your three input are connected to the output of the other components or not. If not, they will remain the same as initial, other wise if they are connected, their values will change with time. As you probably know if you use the lock button, they are set to the initial value in whole simulation.
>>
>> Best Regards,
>>
>> Arian
>>
>>
>> Sent from my iPhone
>>
>>> On 10 Mar 2017, at 8:21 pm, Javier Vega via TRNSYS-users <trnsys-users at lists.onebuilding.org> wrote:
>>>
>>> Hi TRNSYS users,
>>>
>>> Quick question. I'm programming a self-made type and I have 3 inputs that I'm setting in the model "just in case". The most probable thing is that I will set them to a constant zero through the whole simulation. The three inputs are interface heat transfer resistance coefficients.
>>>
>>> If I set the three inputs values to 0 in the component's project window (like in the example below), will it set that initial zero value for the entire simulation? Is it necessary to write any logical sentences in my program for that to happen?
>>>
>>> Thanks in advance!
>>> Javier Vega Benavente
>>> Mechanical Engineer and Magister Student, Universidad de Concepción, Chile.
>>>
>>>
>>> <image.png>
>>> _______________________________________________
>>> 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/20170310/17c363a6/attachment-0003.htm>
More information about the TRNSYS-users
mailing list