I don't have your full script, but the main idea is to do
device_configuration = geometry
for bias in some voltages:
set bias on calculator
device_configuration.update()
nlsave("file bias.nc", device_configuration)
transmission = TransmissionSpectum()
nlsave("file bias.nc", transmission)
some other quantity = Analysis()
nlsave("file bias.nc", some other quantity)
If you are only seeing the configuration in the NC file, you are probably missing the indentation, so you are doing
device_configuration = geometry
for bias in some voltages:
set bias on calculator
device_configuration.update()
nlsave("file bias.nc", device_configuration)
transmission = TransmissionSpectum()
nlsave("file bias.nc", transmission)
some other quantity = Analysis()
nlsave("file bias.nc", some other quantity)
See the difference? The last lines are not part of the loop.