[TRNSYS-users] Equation

Jaime Gonzalez Rodriguez gonzalezro.jaime at gmail.com
Wed Jul 28 05:13:03 PDT 2010


-----------------------------------------------------------------
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/10
> http://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/20100728/11828273/attachment-0001.htm>


More information about the TRNSYS-users mailing list