Dear Tom,
This analysis starts with processing a file which contains lines of component description.
There are arrays used to do this. This works quite well because the text strings can be processed with existing MathCad routines.
For each component , there is a description that indicates what type of component it is, where it is connected and has a variable name or function associated with it.
Example
V1 1 0 Vin
R1 1 2 Rx
R2 2 0 Ry
The number of connections and the component type will set the size of the matrices used to solve for the desired response.
There are three general matrices used:
************************************************
When generating these matrices the issue is that the terms from the variable name (Rx,Ry, Vin) or function (not shown: but is an expression like (G*(V1-V2)) ) for each component will need to be able to be:
A) Simply inserted into appropriate matrix location.
B) Inverted (1/Rx) and then inserted into appropriate matrix location.
C) Inverted (1/Rx) and then added ((1/Rx)+(1/Ry)) or subtracted ((1/Rx)-(1/Ry)) to other terms for components connected to same point and then inserted into appropriate matrix location.
**********************************************
I was using text strings and concatenating terms to do steps A, B and C outlined above. Unfortunately, the result achieved is ugly as you could see from the simple spreadsheet provided.
So your answer is that arrays are used to hold the expressions (Rx,Ry,Vin, (G*(V1-V2))) and then the matrices are loaded by steps A,B,C above followed subsequently by symbolic analysis.
So in summary, the inputs are text strings like �Rx� or �Ry� or �Vin� or �(G*(V1-V2))� from an input file like excel and then to load appropriate matrix locations with 1/Rx or 1/Ry or Vin or 1/(G(V1-V2)) or 1/Rx + 1/Ry or 1/Rx � 1/Ry or 1/Rx + 1/(G(V1-V2)) .
Re-stating some previous thoughts:
If there is a way to strip the quotes ("") from the symbolic response post symbolic processing then goal is achieved.
If there is a way to programmable way to provide steps A,B,C without quotes ("") during load of matrices, then goal could be achieved. Basically, if a programmable version of the windows drop down box to create a matrix could be created, then this is also ok.
Regards,
Vince C.