Comments (10)
When cutting you should do it in opposite order of the tiling, for instance.
from sisl.
I wonder how to make tile work in this case. In current situation, I have not used tile at all. Maybe I am wrong...
from sisl.
Then yes, you are doing it wrong.
Think that:
g = sisl.geom.graphene()
gxyz = g.tile(4, 0).tile(3, 1).tile(2, 2)
G = gxyz.cut(2, 2).cut(3, 1).cut(4, 0)
assert np.allclose(g.xyz, G.xyz)
I.e. your input geometry in GULP must come from the tiling routine.
from sisl.
As for the optimization flag. No, that will prevent the cut
method to extract supercell connections as the atomic coordinates will not be translational invariant. You should, however, do an optimization before tiling the structure for extracting the dynamical matrix.
from sisl.
I am following your suggestions: using tile first. But when doing those tiling operation, how to keep track of the atom species information?
from sisl.
What do you mean? The sisl geometry keeps track of everything for you?
from sisl.
Here is how I try to do it:
I first run a GULP calculation for a small cell.
Then I read the geometry and generate the supercell using
gxyz = geo1.tile(3, 0).tile(3, 1).tile(3, 2) leftpos = gxyz.xyz
What you suggests is that in the variable leftpos, there is no longer more atom species information?
from sisl.
I don't get what you mean? gxyz
contains all species informations.
How would you want the species?
gxyz = geo1.tile(3, 0).tile(3, 1).tile(3, 2)
# gxyz contains species information!
leftpos = gxyz.xyz
species = [atom.symbol for atom in gxyz.atom]
For further details look for the Atoms
and Atom
class in the sisl documentation.
from sisl.
Well, I think you just answered my question. Sorry for the confusion.
from sisl.
Great!
from sisl.
Related Issues (20)
- Grid.isosurface for complex values? HOT 5
- sisl.nodes warnings in tests HOT 1
- Usability suggestions -- Atom, bilayer HOT 15
- Reading wannier Hamiltonian with out '_centres.xyz' present HOT 6
- tests running with FORTRAN=OFF
- Rename `stdoutSileVASP` to `outcarSileVASP` HOT 4
- Dispatch methods does not work
- Documentation of SileBinder methods HOT 2
- Math in sisl documentation HOT 5
- Change CLI to click HOT 1
- how can i use param_circle for graphene HOT 4
- use tocartesian HOT 11
- Change neighborfinder returns to a tuple of indices and supercell indices HOT 21
- Sisl files not available in readthedocs documentation HOT 18
- Ufuncs could support external classes HOT 4
- `Geometry ` coordinates as f-contiguous array HOT 4
- Streamlining spin/index arguments on `read_grid` methods
- Writing Hamiltonian with sisl from Wannier HOT 3
- `translate2uc` should use boundary conditions (?) HOT 7
- Transport routines within the kubo approach HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sisl.