Hi, after i optimize the central region of a device, i only found the nc file contains only GI000 not GID001,
the optimization part of my script is :
...........
...........
#----------------------------------------
# Device Calculator
#----------------------------------------
calculator = DeviceLCAOCalculator(
basis_set=basis_set,
exchange_correlation=exchange_correlation,
numerical_accuracy_parameters=device_numerical_accuracy_parameters,
iteration_control_parameters=device_iteration_control_parameters,
poisson_solver=device_poisson_solver,
dynamical_matrix_parameters=device_dynamical_matrix_parameters,
contour_parameters=contour_parameters,
device_algorithm_parameters=device_algorithm_parameters,
electrode_calculators=
[left_electrode_calculator, right_electrode_calculator],
electrode_voltages=( 0.0*Volt, 0.0*Volt)
)
device_configuration.setCalculator(calculator)
nlprint(device_configuration)
device_configuration.update()
nlsave('au-a-5-h-au.nc', device_configuration, labels=['relax'])
constraints = [FixStrain(x=True, y=True, z=False)]
device_configuration = OptimizeGeometry(
device_configuration,
max_forces=0.05*eV/Ang,
max_stress=0.05*eV/Ang**3,
max_steps=200,
max_step_length=0.5*Ang,
constraints=constraints,
trajectory_filename=None,
optimizer_method=QuasiNewton(),
)
nlsave('au-molecular-au.nc', device_configuration, labels=['relax'])
nlprint(device_configuration)
so my puzzle is why the atoms are not relaxed?
and after the job, how i see the finally geometry of central region, including atomic position.
i need your help!
thanks