def main(args): global cable dt = args['dt'] makeCable(args) setupDUT(dt) table0 = utils.recordAt('/table0', cable[0], 'vm') table1 = utils.recordAt('/table1', cable[-1], 'vm') simulate(args['run_time'], dt) utils.saveTables([table0, table1], file=args['output'], xscale=dt)
def main(args): global cable dt = args['dt'] makeCable(args) setupDUT( dt ) table0 = utils.recordAt( '/table0', cable[0], 'vm') table1 = utils.recordAt( '/table1', cable[-1], 'vm') simulate( args['run_time'], dt ) utils.saveTables( [ table0, table1 ], file = args['output'], xscale = dt )
def main(args): cableLength = float(args['length']) compNons = int(args['ncomp']) compartmentSize = cableLength / compNons cable = PasiveCable(args) first = 0 last = int(int(args['x']) / compartmentSize) - 1 table1 = utils.recordTarget('/data/table1', cable.cable[first].mc_, 'vm') table2 = utils.recordTarget('/data/table2', cable.cable[last].mc_, 'vm') simTime = args['run_time'] sim_dt = args['dt'] outputFile = args['output'] cable.simulate(simTime, sim_dt) utils.plotTables([table1, table2], xscale=sim_dt, file=outputFile) utils.saveTables([table1, table2], xscale=sim_dt, file='data/rallpack2_moose.dat')
def main( args ): cableLength = args['length'] compNons = args['ncomp'] compartmentSize = cableLength / compNons cable = PasiveCable( args ) first = 0 last = args['x'] table1 = utils.recordTarget('/data/table1', cable.cable[first].mc_, 'vm' ) table2 = utils.recordTarget('/data/table2', cable.cable[last].mc_, 'vm' ) simTime = args['run_time'] sim_dt = args['dt'] outputFile = args['output'] cable.simulate( simTime, sim_dt ) utils.saveTables( [table1, table2 ] , xscale = sim_dt , file = 'data/moose.dat' )