Comments (5)
Hello and welcome!
So, it is possible to do what you want to do, see accessing periodic information
in https://stk.readthedocs.io/en/stable/stk.molecular.topology_graphs.cof.cof.html for an example on COFs.
Also see this issue for some more information: #461
However, the code you sent is constructing an M2L4 metal-organic cage, not a MOF. Cages are not periodic structures and, therefore, what you are trying to do here is not appropriate. You need to construct a molecule using a periodic topology graph, not all topology graphs are periodic. If you can clarify what you would like to construct, we can help you further.
from stk.
Thanks I'll read that. I would like to build a Metal Organic Framework and get the lattice info as well as the .xyz structure so I can create a pymatgen structure object out of it. I don't have a specific topology in mind; I would like to be able to do this for any of the common MOF topologies.
from stk.
I've had a closer look but I don't know how to build a MOF sorry. The metal organic cage topologies are non periodic, but the COF topologies don't have metals and look to all be 2D. Should I build a custom MOF topology? The documentation on adding topologies doesn't mention periodicity but I guess I can combine the code for a metal organic cage with the periodicity of a COF?
Thanks
from stk.
So, stk does not have any limitations in terms of what building block you place on a topology graph, in terms of chemistry. You can place a metal atom in a COF topology, the same way you do for a MOC topology. See here for an example of my placing cages in a COF topology to make a polymer of MOCs: https://github.com/andrewtarzia/stk-examples/blob/main/polymerised_mocs/ligand_connected.py
But, your other point is correct - stk does not currently have 3D MOFs. We have not really given it a full go yet to implement the appropriate rotations/alignments required for MOF generation - but the issue is discussed #204 #421 - Therefore, depending on what topology you intend on building, you will need to implement a custom topology graph, which we are happy to help with if you come across issues.
from stk.
Thanks, I'll have a go.
from stk.
Related Issues (20)
- Include vertex_alignments keyword for metal_complex topology graphs. HOT 1
- Fitness Calcuation should operate on MoleculeRecord HOT 3
- Users need to be able to set core atoms in buliding blocks
- Check import speed HOT 1
- Issue with using tuples in MetalComplex init for metals or ligands
- Add persistent discord link to documentation where the link to github is. HOT 1
- Add Vertex and Edge to side bar in docs.
- Make a new set of topology graphs which use other construction libraries
- Use generator instead of random seed
- Add support for atomlite
- `get_building_blocks` may need to return `BuildingBlock` instances
- Fix links HOT 4
- Improve the vertex positions in cage topology graphs HOT 1
- Add Guest to side bar in docs under Complex in host_guest
- Allow `pathlib.Path` in initialisers
- Add `scale` parameter to topology graph initialisation HOT 1
- FG representation in building blocks now shows as the factory class, not the resulting functional groups.
- Handle bad deduplication in stk.host_guest.Complex HOT 1
- Position matrix size does not need to match number of atoms (it can be greater) HOT 4
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 stk.