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

Re: [TRNSYS-users] Ynt: trnsys adding component



Duygu,

The FORTRAN source code for the model you wrote tells the TRNSYS engine how many parameters, inputs, outputs etc it needs based on a call back to the TRNSYS engine. It is usually of the form:

Call SetNumberofInputs;

but could be different depending on which source code format you are using. 

The number of inputs set in the source code must match the number of inputs that are specified in the proforma of that model in the Studio or you generate the error that you are seeing. 

See attached.

 

Jeff

 

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

On 05/20/2020 12:49 pm, Duygu Kemeriz via TRNSYS-users wrote:

Hi Jeff;
 
Thank you for your reply but i do not understand exactly. I added just one value as an input calling electrolyzer current and while connecting other component,i connetted just once. Will i change it from the code i created?
 
Best Kindly
 
 

Gönderen: Jeff Thornton via TRNSYS-users <trnsys-users@lists.onebuilding.org> adına TRNSYS-users <trnsys-users-bounces@lists.onebuilding.org>
Gönderildi: 20 Mayıs 2020 Çarşamba 20:12
Kime: TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org>
Bilgi: Jeff Thornton <thornton@tess-inc.com>
Konu: Re: [TRNSYS-users] trnsys adding component
 

Duygu,

The message is telling you exactly what the problem is.  The proforma that is being used to provide the information to TRNSYS has only one input.  The source code for the component has told TRNSYS that it requires two inputs.  One of these is wrong and should be fixed.

 

Jeff

 

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

On 05/20/2020 11:52 am, Duygu Kemeriz via TRNSYS-users wrote:

Hi;
 
I have added component and  i try to run it. But this gives an error. Do you think i made a mistake in adding the component or am i having a connection problem? Fortran code is not seem to error.  Could you help me,please? You can see an attachment the error.
 
Best Kindly
 
Duygu

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

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

Attachment: InputIssue.bmp
Description: image/ms-bmp