[TRNSYS-users] circular reference error

Marcus jones.0bj3 at gmail.com
Sat Apr 30 08:42:17 PDT 2011


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 at 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 at 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 at cae.wisc.edu
> https://mailman.cae.wisc.edu/listinfo/trnsys-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20110430/36d1648a/attachment-0001.htm>


More information about the TRNSYS-users mailing list