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

Re: [TRNSYS-users] TRNSYS control cards



Makram,

You did a nice job with the include file, but you didn't use the names that you defined there as the names for the simulation start time, stop time and timestep in the control cards of your project.  Change the units of those three cards to string (or variable name) and specify TStart, TStop and Tstep.  See attached; a version 18 screen capture, v17 will look differently but you get the idea.

 

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 01/16/2019 2:21 am, Makram ABDELLATIF wrote:

Jeff,

 

I tried your solution: I created an inc file (file.inc), I added the line "include file" to the deck file. Unfortunately, it didn't work, I don't recieve any errors and the simulation works but the values of the simulation cards don't change.

You will find attached, my deck file and the inc file.

 

Thank you in advance for your help.

 

 

Makram ABDELLATIF

Doctorant

Département Construction Civile et Mécanique

HEI, une école d’Yncréa Hauts-de-France

Laboratoire Génie Civil et géo-Environnement

makram.abdellatif@yncrea.fr  

Tél. : 07.54.15.03.53

 

www.hei.fr / www.yncrea.fr

www.lgcge.fr

 

 

Image result for sbnodessg

 

 

De : Jeff Thornton <thornton@tess-inc.com>
Envoyé : jeudi 10 janvier 2019 16:49
À : Makram ABDELLATIF <makram.abdellatif@yncrea.fr>
Cc : TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org>
Objet : Re: [TRNSYS-users] TRNSYS control cards

 

Makram,

 

You can use an INCLUDE file.  Details can be found in the documentation.  The include file must also follow the TRNSYS requirements on structure.

 

So it may look like:

EQUATIONS 3

Tstart = 0

Tstop = 8760

Tstep = 0.05

 

Then these variable names appear in your control cards.  You could also put your control cards in an include file but then you have to edit the input file manually.

 

Jeff

Sent from my iPhone


On Jan 10, 2019, at 9:35 AM, Makram ABDELLATIF <makram.abdellatif@yncrea.fr> wrote:

Thank you for your answer Jeff.

Is there a way to change control cards externaly? For example:

Simulation start time= tstart

Simulation stop time= tstop

simulation time step= tstep

 

Where tstart and tstop and tstep are given in a external file (.txt).

 

Thank you.

 

<image001.png>

Makram ABDELLATIF

Doctorant

Département Construction Civile et Mécanique

HEI, une école d’Yncréa Hauts-de-France

Laboratoire Génie Civil et géo-Environnement

makram.abdellatif@yncrea.fr  

Tél. : 07.54.15.03.53

 

www.hei.fr / www.yncrea.fr

www.lgcge.fr

 

 

<image002.jpg>

 

 

De : Jeff Thornton <thornton@tess-inc.com>
Envoyé : mercredi 9 janvier 2019 16:28
À : TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org>
Cc : Makram ABDELLATIF <makram.abdellatif@yncrea.fr>
Objet : Re: [TRNSYS-users] TRNSYS control cards

 

Makram,

 

You can use equations to set the control card variables.  For example:

 

STARTSIM= 0

DAYS= 57

STOPSIM= STARTSIM+DAYS*24

 

Then use these names in the appropriate spots in the control cards.  The only caveat is that they can’t change during the simulation.

 

Jeff / TESS

Sent from my iPhone


On Jan 9, 2019, at 2:39 AM, Makram ABDELLATIF via TRNSYS-users <trnsys-users@lists.onebuilding.org> wrote:

Hello everyone,

 

Is there a way to change control cards automatically?

For example, by creating a parametr (or equation) or by calling a variable from an external txt file.

Thank you.

 

Best Regards,

Makram ABDELLATIF

PhD student

<image001.png>

Makram ABDELLATIF

PhD student

Civil and Mechanical Construction Department

HEI, a school of Yncréa Hauts-de-France

Laboratory Civil Engineering and géo-Environment

makram.abdellatif@yncrea.fr  

Tél. : 07.54.15.03.53

 

www.hei.fr / www.yncrea.fr

www.lgcge.fr

 

 

<image002.jpg>

 

 

 

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

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