Comments (3)
Having discussed it with a couple of interest people, we came to the conclusion that the first option is best since it is often the case that the central atom takes a Wyckoff position with site symmetry 1 so it will be the most general option.
from spinw.
I implemented plotting orbitals, it is in the orbital-dev branch submission 1b66d52. Now you can plot p and d orbitals and the code will use the space group information to transform the orbitals on symmetry equivalent positions. For example the following code defines a fictitious crystal with P4 symmetry and puts d_xy orbitals at (1/4,1/4,1/2) and symmetry equivalent positions:
quad = spinw;
quad.genlattice('lat_const',[6 6 4],'spgr','P 4')
quad.addatom('r',[1/4 1/4 1/2],'S',1,'label','atom1')
plot(quad)
swplot.plotorbital('center',r0,'ligand1',[1 0 0],'ligand2',[0 1 0],'type','d_xy','color','red','color2','blue')
The result of the code is the following:
Let me know if it worked for you and if there is any issue with the new code!
from spinw.
from spinw.
Related Issues (20)
- Overplotting Q vectors on 3D crystal structure HOT 1
- Bug with addaniso when using atomIdx and plotting the structure HOT 3
- Very minor typo HOT 1
- Change spinw.addg and spinw.addaniso to accept string options
- Small visualization bug when plotting unit cell? HOT 2
- plotchem plots bonds outside of unit cell HOT 1
- spinw.gencoupling() generates negative hMax2 which causes an error HOT 3
- Octave support HOT 4
- Monte Carlo calculation of critical temperatures HOT 2
- Unicode error in pyspinw HOT 6
- Usage of transplant.MatlabStruct HOT 1
- New preference class needs Matlab 2017a HOT 2
- Question about SpinW manual and pyspinw (ADDCOUPLING) HOT 1
- pyspinw plotting abnormalities
- Symbolic calculation isn't working
- Visualization of Spinwave
- Bug when plotting octahedra
- Hermit = false is wrong? HOT 1
- Defination of biquadratic exchange
- Bug: incorrect computation of instrument limits
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 spinw.