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

Re: [TRNSYS-users] TRNSYS-users Digest, Vol 82, Issue 46



I think you can solve the problem doing the following.
You can use the pipe type31 between two equations, the outputs of one equation must be linked
with the inlet flow rate of type 31, and the output flow rate of type 31 must be linked with the inputs
of the other equation. You must initialize the inlet flow rate value. I send you the *.tpf
Guillermo Gómez
Área de Energías Renovables INTA
email1: renovables1@inta.es
email2: guillermo.gomez@insa.es
telf:915 20 15 35

-----trnsys-users-bounces@cae.wisc.edu escribió: -----

Para: trnsys-users@cae.wisc.edu
De: trnsys-users-request@cae.wisc.edu
Enviado por: trnsys-users-bounces@cae.wisc.edu
Fecha: 24/10/2011 19:00
Asunto: TRNSYS-users Digest, Vol 82, Issue 46

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

To subscribe or unsubscribe via the World Wide Web, visit
    https://mailman.cae.wisc.edu/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. Using operators within the Equation Component
     (Javier Galvan Villamarin)

----- Message from Javier Galvan Villamarin <jgalvan@kth.se> on Mon, 24 Oct 2011 15:27:57 +0000 -----

To:"TechSupport@tess-inc.com" <TechSupport@tess-inc.com>
cc:"trnsys-users@cae.wisc.edu" <trnsys-users@cae.wisc.edu>
Subject:[TRNSYS-users] Using operators within the Equation Component

Dear All.

I am using the Equation component and I need to assign values to the outputs depending on the result of a previous equation.

Could somebody please help me with this?.

Input(1) = Q_dem

Input(2) = Q_eng

Output(1) = Q_need

Output(2) = Q_aux

Output(3) = Q_rej

Q_need = Q_dem - Q_eng

If   Q_need>0 assign   Q_aux= Q_need AND Q_rej=0

If   Q_need<0 assign   Q_rej= Q_need AND Q_aux=0

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

Attachment: answer_Vol82_Issue46.tpf
Description: Binary data