[TRNSYS-users] TRNSYS-users Digest, Vol 67, Issue 65

ghetu mariana ghetu_mariana at yahoo.co.uk
Thu Jul 29 04:23:26 PDT 2010


Roberto,

You can use this:

 if(Ta.LT.15)then
    Ta=15
     if(Ta.GT.23)then
       Ta=23
    end if
end if

Best regards,
Mariana




________________________________
From: "trnsys-users-request at cae.wisc.edu" <trnsys-users-request at cae.wisc.edu>
To: trnsys-users at cae.wisc.edu
Sent: Wed, 28 July, 2010 14:13:10
Subject: TRNSYS-users Digest, Vol 67, Issue 65

Note: Forwarded message is attached.

Send TRNSYS-users mailing list submissions to
    trnsys-users at cae.wisc.edu

To subscribe or unsubscribe via the World Wide Web, visit
    https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
or, via email, send a message with subject or body 'help' to
    trnsys-users-request at cae.wisc.edu

You can reach the person managing the list at
    trnsys-users-owner at cae.wisc.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of TRNSYS-users digest..."
Today's Topics:

   1. Equation (caria.roberto at tiscali.it)
   2. Re: Equation (PERRIER R?mi 226004)
   3. Re: Equation (Jaime Gonzalez Rodriguez)
   4. Re: Equation (Mehdi Shahrestani)
   5. Re: Equation (keilholz, werner)
   6. Re: Equation (a8304506 at graduate.hku.hk)
   7. Re: Equation (keilholz, werner)
   8. Re: Equation (Nikolai Artmann)
   9. Re: Equation (Jaime Gonzalez Rodriguez)
dear trnsys users,
I have to add the following algorithm into the equation:

if Ta < 15 ta= 15 and if Ta> 23 Ta=23

How can I do this?
Thanks
Roberto


Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 19,95 € al mese 
per un anno!SCONTO DI 120 EURO! L’offerta è valida solo se attivi entro il 
29/07/10http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw



Well, you have to combine the gt() and lt() functions.
Unfortunately, there is no if in the equation...

Rémi PERRIER


CEA INES
Laboratoire DTS / LETh
Bâtiment PUMA 3, P112
BP 332 - 50, avenue du Lac Léman - 73377 Le Bourget du Lac  FRANCE
Mobile : +33 (0)6 76 95 91 86
Email : remi.perrier at cea.fr


-----Message d'origine-----
De : caria.roberto at tiscali.it [mailto:caria.roberto at tiscali.it] 
Envoyé : mercredi 28 juillet 2010 13:12
À : trnsys-users at cae.wisc.edu
Objet : [TRNSYS-users] Equation

dear trnsys users,
I have to add the following algorithm into the equation:

if Ta < 15 ta= 15 and if Ta> 23 Ta=23

How can I do this?
Thanks
Roberto


Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 19,95 € al mese 
per un anno!SCONTO DI 120 EURO! L’offerta è valida solo se attivi entro il 
29/07/10http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users


maybe I'm wrong, but I don't think you can program that into an equation.
If I were you I'd program it in a type. It is really easy, you need onw input 
and one output, and you could even program the type with two parameters max and 
min and these numbers (15 and 23) would be parameters and you could easily 
change them anytime you want.
Regards.
Jaime


On 28 July 2010 13:11, caria.roberto at tiscali.it <caria.roberto at tiscali.it> 
wrote:

dear trnsys users,
>I have to add the following algorithm into the equation:
>
>if Ta < 15 ta= 15 and if Ta> 23 Ta=23
>
>How can I do this?
>Thanks
>Roberto
>
>
>Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 19,95 € al mese 
>per un anno!SCONTO DI 120 EURO! L’offerta è valida solo se attivi entro il 
>29/07/10http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw
>
>
>_______________________________________________
>TRNSYS-users mailing list
>TRNSYS-users at cae.wisc.edu
>https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>


-- 
Jaime. González Rodríguez

Roberto 

First you need to add an equation from assembly folder
Second, add input as tainput 
Third, add output as taoutput
Forth, insert this expression on the taoutput "   
lt(tainput,15)*15+gt(tainput,23)*23   "   for sure without " "
Just this

Mehdi

-----Original Message-----
From: caria.roberto at tiscali.it [mailto:caria.roberto at tiscali.it] 
Sent: 28 July 2010 12:12
To: trnsys-users at cae.wisc.edu
Subject: [TRNSYS-users] Equation

dear trnsys users,
I have to add the following algorithm into the equation:

if Ta < 15 ta= 15 and if Ta> 23 Ta=23

How can I do this?
Thanks
Roberto


Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 19,95 € al mese 
per un anno!SCONTO DI 120 EURO! L’offerta è valida solo se attivi entro il 
29/07/10http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users



lt(Temp,15)*15+gt(Temp,23)*23+Temp*and(le(Temp,15),ge(Temp,23))

-----Message d'origine-----
De : Mehdi Shahrestani [mailto:mahdishahrestani at yahoo.com] 
Envoyé : mercredi 28 juillet 2010 13:48
À : caria.roberto at tiscali.it
Cc : trnsys-users at cae.wisc.edu
Objet : Re: [TRNSYS-users] Equation

Roberto 

First you need to add an equation from assembly folder
Second, add input as tainput 
Third, add output as taoutput
Forth, insert this expression on the taoutput "   
lt(tainput,15)*15+gt(tainput,23)*23   "   for sure without " "
Just this

Mehdi

-----Original Message-----
From: caria.roberto at tiscali.it [mailto:caria.roberto at tiscali.it] 
Sent: 28 July 2010 12:12
To: trnsys-users at cae.wisc.edu
Subject: [TRNSYS-users] Equation

dear trnsys users,
I have to add the following algorithm into the equation:

if Ta < 15 ta= 15 and if Ta> 23 Ta=23

How can I do this?
Thanks
Roberto


Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 19,95 € al mese 
per un anno!SCONTO DI 120 EURO! L’offerta è valida solo se attivi entro il 
29/07/10http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users


Hello, Roberto.

You can define an output (say Ta1) in the equation proforma where

Ta1=Max(Min(Ta,23),15)

Best Regards
LEE, Chun Kwong


Quoting "caria.roberto at tiscali.it" <caria.roberto at tiscali.it>:

> dear trnsys users,
> I have to add the following algorithm into the equation:
> 
> if Ta < 15 ta= 15 and if Ta> 23 Ta=23
> 
> How can I do this?
> Thanks
> Roberto
> 
> 
> Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 19,95 ??al
> mese per un anno!SCONTO DI 120 EURO! L?垴fferta 癡 valida solo se attivi
> entro il
>
29/07/10http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw

> 
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
> 





Nice one, I like it :-)

-----Message d'origine-----
De : a8304506 at graduate.hku.hk [mailto:a8304506 at graduate.hku.hk] 
Envoyé : mercredi 28 juillet 2010 13:56
À : caria.roberto at tiscali.it
Cc : trnsys-users at cae.wisc.edu
Objet : Re: [TRNSYS-users] Equation

Hello, Roberto.

You can define an output (say Ta1) in the equation proforma where

Ta1=Max(Min(Ta,23),15)

Best Regards
LEE, Chun Kwong


Quoting "caria.roberto at tiscali.it" <caria.roberto at tiscali.it>:

> dear trnsys users,
> I have to add the following algorithm into the equation:
> 
> if Ta < 15 ta= 15 and if Ta> 23 Ta=23
> 
> How can I do this?
> Thanks
> Roberto
> 
> 
> Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 19,95 
> ??al mese per un anno!SCONTO DI 120 EURO! L?fferta 癡 valida solo se 
> attivi entro il
>
29/07/10http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw

> 
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
> 






You can also use 'min' and 'max', for your example:

max(min(Ta, 15),23)


- Nikolai




Nikolai Artmann

3-Plan Haustechnik AG, Winterthur
Telefon  052 / 234 70 66
Telefax  052 / 234 70 60
e-Mail: nikolai.artmann at 3-plan.ch



-----Ursprüngliche Nachricht-----
Von: PERRIER Rémi 226004 [mailto:remi.perrier at cea.fr] 
Gesendet: Mittwoch, 28. Juli 2010 13:35
An: caria.roberto at tiscali.it; trnsys-users at cae.wisc.edu
Betreff: Re: [TRNSYS-users] Equation

Well, you have to combine the gt() and lt() functions.
Unfortunately, there is no if in the equation...

Rémi PERRIER


CEA INES
Laboratoire DTS / LETh
Bâtiment PUMA 3, P112
BP 332 - 50, avenue du Lac Léman - 73377 Le Bourget du Lac  FRANCE
Mobile : +33 (0)6 76 95 91 86
Email : remi.perrier at cea.fr


-----Message d'origine-----
De : caria.roberto at tiscali.it [mailto:caria.roberto at tiscali.it] 
Envoyé : mercredi 28 juillet 2010 13:12
À : trnsys-users at cae.wisc.edu
Objet : [TRNSYS-users] Equation

dear trnsys users,
I have to add the following algorithm into the equation:

if Ta < 15 ta= 15 and if Ta> 23 Ta=23

How can I do this?
Thanks
Roberto


Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 19,95 € al mese 
per un anno!SCONTO DI 120 EURO! L’offerta è valida solo se attivi entro il 
29/07/10http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users

_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users



-----------------------------------------------------------------
You can also use 'min' and 'max', for your example:

max(min(Ta, 15),23)


 - Nikolai
---------------------------------------------------------------
That's a good one, but it would be the opposite

min(max(Ta, 15),23)

anyway, this is definitely the best solution, you don't have to program 
anything.



On 28 July 2010 13:38, Nikolai Artmann <nikolai.artmann at 3-plan.ch> wrote:

You can also use 'min' and 'max', for your example:
>
>max(min(Ta, 15),23)
>
>
> - Nikolai
>
>
>
>
>Nikolai Artmann
>
>3-Plan Haustechnik AG, Winterthur
>Telefon  052 / 234 70 66
>Telefax  052 / 234 70 60
>e-Mail: nikolai.artmann at 3-plan.ch
>
>
>
>-----Ursprüngliche Nachricht-----
>Von: PERRIER Rémi 226004 [mailto:remi.perrier at cea.fr]
>Gesendet: Mittwoch, 28. Juli 2010 13:35
>An: caria.roberto at tiscali.it; trnsys-users at cae.wisc.edu
>Betreff: Re: [TRNSYS-users] Equation
>
>
>Well, you have to combine the gt() and lt() functions.
>Unfortunately, there is no if in the equation...
>
>Rémi PERRIER
>
>
>CEA INES
>Laboratoire DTS / LETh
>Bâtiment PUMA 3, P112
>BP 332 - 50, avenue du Lac Léman - 73377 Le Bourget du Lac  FRANCE
>Mobile : +33 (0)6 76 95 91 86
>Email : remi.perrier at cea.fr
>
>
>-----Message d'origine-----
>De : caria.roberto at tiscali.it [mailto:caria.roberto at tiscali.it]
>Envoyé : mercredi 28 juillet 2010 13:12
>À : trnsys-users at cae.wisc.edu
>Objet : [TRNSYS-users] Equation
>
>dear trnsys users,
>I have to add the following algorithm into the equation:
>
>if Ta < 15 ta= 15 and if Ta> 23 Ta=23
>
>How can I do this?
>Thanks
>Roberto
>
>
>Risparmia con Tutto Incluso Light: telefono + adsl 8 mega a soli 19,95 € al mese 
>per un anno!SCONTO DI 120 EURO! L’offerta è valida solo se attivi entro il 
>29/07/10http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw
>
>
>_______________________________________________
>TRNSYS-users mailing list
>TRNSYS-users at cae.wisc.edu
>https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>
>_______________________________________________
>TRNSYS-users mailing list
>TRNSYS-users at cae.wisc.edu
>https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>
>_______________________________________________
>TRNSYS-users mailing list
>TRNSYS-users at cae.wisc.edu
>https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>


-- 
Jaime. González Rodríguez



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20100729/0df0e0ca/attachment-0005.htm>


More information about the TRNSYS-users mailing list