You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to generate the monolayer MoS2 from the bulk as follows:
frompymatgen.core.structureimportStructurefrompymatgen.core.surfaceimportSlabGeneratorfrompymatgen.io.vaspimportPoscar# Load the MoS2 structure (assuming you have the CIF file)MoS2=Structure.from_file("MoS2_mp-1434.cif")
# Add oxidation statesMoS2.add_oxidation_state_by_element({"Mo": 4, "S": -2})
# Initialize SlabGenerator for a single layerslabgen=SlabGenerator(MoS2,
miller_index=(0, 0, 1),
min_slab_size=MoS2.lattice.c/3, # Approximate single layer thickness in Åin_unit_planes=False,
min_vacuum_size=10)
# Generate slabsslabs=slabgen.get_slabs()
# Assuming the first slab is the desired single layer, this may need verificationsingle_layer_slab=slabs[0]
# Write the single layer structure to a POSCAR fileposcar=Poscar(single_layer_slab)
poscar.write_file("MoS2_single_layer_POSCAR")
But the result is as follows:
As you can see, obviously it includes multiple layers alongside the (001) plane. Attached are all the files mentioned above:
I try to generate the monolayer MoS2 from the bulk as follows:
But the result is as follows:
As you can see, obviously it includes multiple layers alongside the (001) plane. Attached are all the files mentioned above:
MoS2_ML.zip
Any tips for achieving this goal will be helpful.
Regards,
Zhao
The text was updated successfully, but these errors were encountered: