Dear Sir,
we use "nlread()" to save scf time in calculation, now I have a problem:
eg: I want to get the H-H bond length through a loop calculation , and I build a script as below:
vector_a = [10.0, 0.0, 0.0]*Angstrom
vector_b = [0.0, 10.0, 0.0]*Angstrom
vector_c = [0.0, 0.0, 10.0]*Angstrom
lattice = UnitCell(vector_a, vector_b, vector_c)
# Define elements
elements = [Hydrogen]*2
for dis in (a1,a2,a3,a4): # ai is the distance
fractional_coordinates = [[ 0. , 0. , 0. ],
[ 0. , 0. , dis]]
bulk_configuration = BulkConfiguration(
bravais_lattice=lattice,
elements=elements,
fractional_coordinates=fractional_coordinates
)
calculator = LCAOCalculator()
bulk_configuration.setCalculator(calculator)
bulk_configuration.update()
nlsave('energy.nc', bulk_configuration)
total_energy = TotalEnergy(bulk_configuration)
nlsave('energy.nc', total_energy)
nlprint(total_energy)
In the above script, I hope to import the "a1-scf" as the initial scf guess, for the next "a2-scf" calculation. Here, I just want to import the scf of a1, not the bulk_configuration of a1.
So, is there any method to change the above script to get that ?
Thanks~
FangYong