# Define the geometry of the stimulus at one end of the block
# Units are um
stim=['-num_stim',2,
'-stimulus[0].name','S1',#index 0 because only one type of electrode
'-stimulus[0].stimtype',0,#0 means intracellular stim
'-stimulus[0].strength',args.S1_strength,#uA/Cm^2
'-stimulus[0].duration',args.S1_dur,
'-stimulus[0].start',args.S1_start,
'-stimulus[1].name','S2',
'-stimulus[1].stimtype',0,
'-stimulus[1].strength',args.S2_strength,
'-stimulus[1].duration',args.S2_dur,
'-stimulus[1].start',args.S2_start]
#electrode = mesh.block_boundary_condition(geom, 'stimulus', 0, 'x', True) #True refers to a BC between tissue and bath
E1_lower_bound=nplist([0.0,0.0,0.0])
E1_upper_bound=nplist([2.0,0.3,0.2])
electrode=mesh.block_region(geom,'stimulus',0,E1_lower_bound,E1_upper_bound,False)# introudce a stimulus in the region defined by the lower and upper bounds
#===========================================
# 4: Defining simulator options:
#===========================================
# Get basic command line, including solver options
cmd=tools.carp_cmd(os.path.join(EXAMPLE_DIR,'basic.par'))#cmd is a carp command