From 96553b1ce6e8222f856cd7cfdad5ed95d96e6037 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 12 Jan 2016 17:30:59 +0000 Subject: [PATCH] Added method call to calculate incident current and voltages; added current output to receivers. --- gprMax/input_cmds_multiuse.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gprMax/input_cmds_multiuse.py b/gprMax/input_cmds_multiuse.py index 22f2ca5d..ce9f8a39 100644 --- a/gprMax/input_cmds_multiuse.py +++ b/gprMax/input_cmds_multiuse.py @@ -279,6 +279,7 @@ def process_multicmds(multicmds, G): t.positionz = positionz t.resistance = resistance t.waveformID = tmp[5] + t.calculate_incident_V_I(G) if len(tmp) > 6: # Check source start & source remove time parameters @@ -328,9 +329,9 @@ def process_multicmds(multicmds, G): r = Rx(positionx=positionx, positiony=positiony, positionz=positionz) - # If no ID or outputs are specified use default, i.e Ex, Ey, Ez, Hx, Hy, Hz + # If no ID or outputs are specified, use default i.e Ex, Ey, Ez, Hx, Hy, Hz, Ix, Iy, Iz if len(tmp) == 3: - r.outputs = Rx.availableoutputs[0:6] + r.outputs = Rx.availableoutputs[0:9] else: r.ID = tmp[3] # Check and add field output names