Yes it works, you help me a lot. I am much closer form finding "final solution", I think. Now I want to go for expressing function by Unit-A(X,Y,U)=Find(X,Y,U) - this should be more universal, I suppose.
I would like to create a set of functions, that will be able to solve thermodynamic cycle or its part, for example HRSG. Suppose we have a single pressure HRSG, which is composed of economiser, evaporator, and superheater. Given data are gas turbine exhaust parameters (m, p, h), superheated steam p and h, feedwater temperature and internal parameters of the units (pressure drops, heat exchange efficiencies, evaporator pinch point, economiser approach point etc) - just enough to solve all the remaining parameters of all the streams. Some parameters in streams can be expressed implicitly, for example feedwater enthalpy before economiser is a function of p and T, where T is known, but p will be calculated according to pressure drops during computation. So we know only selected stream parameters, and they can be input or output params. I solved such a case in an equation oriented approach. Now I would like to solve it in "modular" approach, so I need to have 3 functions, one for every unit. Connections of the units by streams could be expressed for example by connectivity / incidence matrix. Can you tell me if it is possible to do this in such a manner in Mathcad?
I enclose two worksheets. First is a slightly changed version of your last, I changed names a bit that now looks more consistent from my point of view. Just for your information. The second is my first try in expressing function by Unit-A(X,Y,U)=Find(X,Y,U), but this does not work. Somewhere I went wrong.
I appreciate your involvement in this topic, Harvey.
Piotr