Thank you very much.
But, the Projection(atoms=[Boron], l_quantum_numbers=[0, 1, 2])) is still used by the projection of spin=spin_sum, not the projection of spin=spin_up. and the results of projections=[p3,p1] is the sum of p3 and p1. see the attachments.
By the way,I want to calculate the ProjectOnOrbitalsByElement projections used by the projection of spin=spin_up. How to solve it?
I write this py file according to the manual
http://docs.quantumwise.com/manuals/Types/Projection/Projection.html#NL.Analysis.Projection.Projection# -*- coding: utf-8 -*-
# -------------------------------------------------------------
# Analysis from File
# -------------------------------------------------------------
path = u'C:/Users/ThinkPad/.vnl/graphene-MD/band-Gr-BN.hdf5'
configuration = nlread(path, object_id='BulkConfiguration_0')[0]
# -------------------------------------------------------------
# Fat Bandstructure
#-------------------------------------------------------------
p1 = ProjectOnOrbitalsByElement
p3 = Projection(spin=Spin.Up)
fat_bandstructure = FatBandstructure(
configuration= configuration,
route=['G', 'K', 'M'],
points_per_segment=200,
bands_above_fermi_level=All,
projections=p1*p3, # a list of the projections defined above
)
nlsave('band-Gr-BN.hdf5', fat_bandstructure)
But, it is error:
Traceback (most recent call last):
File "band-Gr-BN.py", line 17, in <module>
projections=p1*p3, # a list of the projections defined above
File "zipdir\NL\Analysis\FatBandstructure.py", line 122, in __init__
File "zipdir\NL\Analysis\FatBandstructure.py", line 563, in setAndCheckProjections
File "zipdir\NL\Analysis\ProjectionGenerator.py", line 271, in generate
AttributeError: 'Projection' object has no attribute 'generate'