Skip to main content
1-Visitor
July 24, 2018
Solved

Program Creation of Nested Arrays

  • July 24, 2018
  • 1 reply
  • 2979 views

I am preparing a Mathcad V15 computation for Electric Fields at given points across a power line corridor. Long ago I created one with a limited number of circuits (1) and wires (5) that processes correctly. The problem requires consideration of the effects of x energized wires at each point k in the corridor and time position b.  The process is to compute charge and then electric field from each of x wires at each k over all b, sum over all x wires, then select the maximum values of EX and EY at each k. My early slim computation used brute force to eliminate the x dimension of wires.  So I would create QM1 = QM[1 for the charge say and have a function QM1[b,k]. This requires creating a separate equation for each QM, one per wire.  My programming effort is aimed at allowing variable input via a matrix and automatically processing the necessary equations to compute an answer.  My problem is getting the new programs to work through the three variables.  I attach my OK first slim document, a version of my new document and two pdf copies annotated for reference. Really I think all I need is some guidance on how to set up 3-dimensional problems with nested arrays and programs.

Best answer by Werner_E

Look if the attached file helps. I have just done the calculation of EX.

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
July 25, 2018

Look if the attached file helps. I have just done the calculation of EX.

1-Visitor
July 25, 2018

Werner

You helped solve the nested array. Thank you very much.  I will proceed. I have other issues where the results (graphs) are shifted from what I would expect.  That should be a matter of tracking the computations across the corridor and I will sniff it out.

Thanks again for taking the time to help.

Paul