7
« on: December 26, 2012, 06:42 »
+------------------------------------------------------------------------------+
| NanoLanguageScript execution started |
+------------------------------------------------------------------------------+
+------------------------------------------------------------------------------+
| |
| Atomistix ToolKit 11.2.2 [Build 3069] |
| |
+------------------------------------------------------------------------------+
File "c:\users\guest\appdata\local\temp\6524251319681072.py", line 11
print 'Gate Voltage = ', gate_voltage
^
IndentationError: expected an indented block
NanoLanguageScript execution failure
+------------------------------------------------------------------------------+
| NanoLanguageScript execution finished |
+------------------------------------------------------------------------------+
this is what i got after i put the following in job manager
#read in the old configuration
filename = 'benzene_set0.nc'
bulk_configuration = nlread(filename,BulkConfiguration)[0]
# Define gate_voltages
gate_voltage_list=[2, 4, 6, 8, -2, -4, -6, -8]*Volt
metallic_regions = bulk_configuration.metallicRegions()
metallic_region0 = metallic_regions[0]
for gate_voltage in gate_voltage_list:
print 'Gate Voltage = ', gate_voltage
bulk_configuration.setMetallicRegions(
[metallic_region0(value = gate_voltage),
metallic_regions[1],
metallic_regions[2] ] )
calculator = bulk_configuration.calculator()
# Set the calculator on the configuration
# and use the old calculation as initial state for the scf loop
bulk_configuration.setCalculator(calculator(),
initial_state=bulk_configuration)
#Analysis
electrostatic_potential = ElectrostaticDifferencePotential(bulk_configuration)
nlsave(filename, electrostatic_potential, object_id='pot'+str(gate_voltage))
molecular_energy_spectrum = MolecularEnergySpectrum(
configuration=bulk_configuration,
energy_zero_parameter=FermiLevel,
projection_list=ProjectionList(All)
)nlsave(filename, molecular_energy_spectrum, object_id='spec'+str(gate_voltage))
nlprint(molecular_energy_spectrum)
total_energy = TotalEnergy(bulk_configuration)
nlprint(total_energy)
nlsave(filename, total_energy, object_id='energy'+str(gate_voltage))
as per written in the manual