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

Re: [TRNSYS-users] Initial values to INPUTS



Damian,

Initial values are just used as a placeholder in case the component model that is providing the inputs to your type has not yet been called (first iteration condition).  Most times that initial value won’t even be seen by the model.  If the input is unconnected, however, the input will get that initial value for the duration of the simulation.  Bottom line - don’t do anything special with the initial values in your new type.  

Jeff 

Sent from my iPhone

On Jun 29, 2023, at 6:11 PM, Damian Birchler via TRNSYS-users <trnsys-users@lists.onebuilding.org> wrote:



Hello everyone

 

As a type developer, how should I deal with initial values to the INPUTS of my type. What’s the convention here, in what sense are these values “initial”?

 

Say my type is used like so:

 

UNIT 1 TYPE 1234

INPUTS

MfrIn Tin

0 TInInit

[…]

 

How do I get to know the value of `TInInit` from Fortran, when should I query that value and what should I do with it?

 

Thanks for your help.

 

Cheers,

Damian

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