Skip to content

should cropping update the positions of atoms? #72

@tpchuckles

Description

@tpchuckles

suppose i have a 50 unit cell long structure (25 uc of material A, 25 uc of material B). That's a pretty big area though, and i'm just doing HAADF in the middle, so i can crop it to save memory (and not need to compute such a large potential):

trajectory=trajectory.slice_positions( x_range=[18*a,32*a] ) # crops 25|25 into 7|7 unit cells

when i do the full-length ADF, i get a periodic structure, as expected:

probe_xs = np.linspace(0,50*a,16*8,endpoint=False)
Image

but what i did not expect was to find my interface still at 25*a. in other words, we cropped the system, but atom positions are still referenced to the original origin of the system, not the new origin of the system. is this weird?

this is more apparent if I try to do HAADF over a smaller region, e.g. a 4|4 unit cell length area, i need to choose coordinates centered on the original system:

probe_xs = np.linspace(21*a,29*a,16*8,endpoint=False)
Image

and NOT coordinates centered on the new system:

probe_xs = np.linspace(3*a,11*a,16*8,endpoint=False)
Image

i don't know if this is surprising behavior to anyone else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionthis is not necessarily an issue, but discussion might be good to agree on the right directionquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions