Hi Ben
I think I asked you something similar to this in the past, in relation
to 'block connections', but now I have a slightly different issue.
Just now, I was working with a colleague on some modelling for a heat
transfer problem. We have a model that looks a bit like this:
MODEL submodel(geom WILL_BE geometry_data);
L[1..3] IS_A distance;
L[1], geom.d_r ARE_THE_SAME;
L[2], geom.h_r ARE_THE_SAME;
L[3], L[1] ARE_THE_SAME;
L_char IS_A distance;
L_char = SUM[L[i] * .... | i IN [1..3]];
END submodel;
However, the above code does not work, because it allegedly modifies the
'geom' parameters in some disallowed way. As I recall, it is not
permitted to merge parameters of a model: that's what's at issue here,
right?
Is there any way to allow us to link array elements to parameters in a
submodel, as specified above? OR is there a more elegant way of
achieving something comparable?
The only thing I could think of was (a) to manually write L1, L2, L3 and
eliminate the array syntax or (b) to use '=' to create a local copy of
the variable, unmerged.
Cheers
JP
------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages,
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
Ascend-sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ascend-sim-users