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

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



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@cae.wisc.edu" <trnsys-users-request@cae.wisc.edu>
To: trnsys-users@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@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@cae.wisc.edu

You can reach the person managing the list at
    trnsys-users-owner@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@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@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@cea.fr


-----Message d'origine-----
De : caria.roberto@tiscali.it [mailto:caria.roberto@tiscali.it]
Envoyé : mercredi 28 juillet 2010 13:12
À : trnsys-users@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@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@tiscali.it <caria.roberto@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@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@tiscali.it [mailto:caria.roberto@tiscali.it]
Sent: 28 July 2010 12:12
To: trnsys-users@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@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@yahoo.com]
Envoyé : mercredi 28 juillet 2010 13:48
À : caria.roberto@tiscali.it
Cc : trnsys-users@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@tiscali.it [mailto:caria.roberto@tiscali.it]
Sent: 28 July 2010 12:12
To: trnsys-users@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@cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@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@tiscali.it" <caria.roberto@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@cae.wisc.edu
> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>





Nice one, I like it :-)

-----Message d'origine-----
De : a8304506@graduate.hku.hk [mailto:a8304506@graduate.hku.hk]
Envoyé : mercredi 28 juillet 2010 13:56
À : caria.roberto@tiscali.it
Cc : trnsys-users@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@tiscali.it" <caria.roberto@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@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@3-plan.ch



-----Ursprüngliche Nachricht-----
Von: PERRIER Rémi 226004 [mailto:remi.perrier@cea.fr]
Gesendet: Mittwoch, 28. Juli 2010 13:35
An: caria.roberto@tiscali.it; trnsys-users@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@cea.fr


-----Message d'origine-----
De : caria.roberto@tiscali.it [mailto:caria.roberto@tiscali.it]
Envoyé : mercredi 28 juillet 2010 13:12
À : trnsys-users@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@cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users

_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@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@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@3-plan.ch



-----Ursprüngliche Nachricht-----
Von: PERRIER Rémi 226004 [mailto:remi.perrier@cea.fr]
Gesendet: Mittwoch, 28. Juli 2010 13:35
An: caria.roberto@tiscali.it; trnsys-users@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@cea.fr


-----Message d'origine-----
De : caria.roberto@tiscali.it [mailto:caria.roberto@tiscali.it]
Envoyé : mercredi 28 juillet 2010 13:12
À : trnsys-users@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@cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users

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

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



--
Jaime. González Rodríguez