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

Re: [TRNSYS-users] circular reference error



As far as I see it;

1.
MF21 = x * A + not(x)*B
MF12 = x * C + not(x)*D

2. Substitute
MF21 = x * A + not(x)*(MF12 + constants)
MF12 = x * (MF21 + constants) + not(x)*D

This IS circular!

What about:
MF21 = x*A + not(x)*(D+constants)
MF12 = x*(A+constants) + not(x)*D

Does that handle the two cases?

Otherwise, you might have to write a type in Fortran with an iterative solver...

Cheers,

Marcus
--
Marcus Jones, LEED AP, M.Sc.
Freelance energy consultant
Vienna, Austria



On Fri, Apr 29, 2011 at 10:26 PM, Linda Lam <lam@transsolar.com> wrote:
Hi all,

I am getting a self-referencing error for the following:

MF21 = x * A + not(x)*B
MF12 = x * C + not(x)*D

A = constant
B = MF12 + constants
C = MF21 + constants
D = constant

Theoretically, it should only calculate EITHER [A and C]  OR [B and D].  But it seems as if it sees all of the equations and thinks it's a circular reference. Any thoughts?

Also, does anyone know of some sort of conditional logic Type?


--

Linda Lam
212 219 2255 | lam@transsolar.com
Transsolar Inc. | 134 Spring Street Suite 601 | New York, NY 10012

Transsolar Climate Engineering
Technical consulting for energy efficiency and environmental quality in buildings.
New York - Stuttgart - Munich


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