-------- Original Message -------- Subject: Re: [Jmol-users] The miller notation Date: Thu, 17 Jul 2008 09:33:32 -0500 From: Bob Hanson <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Shaul, It should be very interesting to see this sort of thing done in Jmol. Really very nice idea. Finally it will be understandable! Shaul Avraham wrote: > Hello Bob, > > > In the hexagonal and rhombohedral crystal systems the Bravais-Miller > index which has 4 numbers (/h/ /k/ /i/ /l/). i=-h+k, you are correct > to imply that it is a redundant. > Now it's coming back to me.... Be sure to look over the documentation http://chemapps.stolaf.edu/jmol/docs for "hkl" and "fractional coordinates" -- there's a lot of power there. > > i have an additional questions: > > > 1. . how can i represent the hexagon in Jmol? The Mg unit cell (for > example) that appears is one third of the hexagonal unit cell > (http://en.wikipedia.org/wiki/Image:Indices_miller_bravais.png). how > can i represent the hexagon itself in Jmol? The thing to do is to use the DRAW command and some Jmol math. You can work in fractional coordinates by adding "/" to one or more numbers in a point definition: var z = {0 0 0} var a = {1/1 0 0} var b = {0 1/1 0} var c = {0 0 1/1} And you can define planes using points: var x = plane(a, b, c) Not many people have used that, so let me know if you find bugs. Now you can do things like: draw v0a @z @a diameter 0.01 draw vab @a @b diameter 0.01 etc. I recommend "diameter 0.01" because then the cell will scale when you zoom. But you may prefer it without that. > > 2. Is there a convenient editor that can be used for writing long > scripts for Jmol, interacts with Jmol and understand the Jmol syntax? > The Jmol application itself is quite handy, and if you have Java 6 (I think) installed, then browser-based help is available right on the command line. Although it is not an syntax-based editor, it does parse all commands at every keystroke for being OK. I do all my script creation using the application (Jmol.jar) even if I'm working with an applet. By the way -- there is a really nice way to put long scripts in HTML documents if you want to avoid using .spt files. You can see this used at http://chemapps.stolaf.edu/quaternions/PISEMA/pisema.htm -- at the end you will see an embedded Jmol script -- and at Jmol Protein Explorer http://chemapps.stolaf.edu/pe when it creates a "snapshot" > > Thanks, > > > Shaul > > > Bob Hanson wrote: > >> Shaul Avraham wrote: >> >>> 1. How is it possible to draw a direction [hkl] in a >>> crystallographic unit cell by the use of the miller notation >>> (http://en.wikipedia.org/wiki/Miller_index)? >>> >>> >> The way to do this is with Jmol math. my understanding is that hkl is >> a plane, not a direction. So first define the plane: >> >> a = {1/2 0 0} >> b = {0 1/3 0} >> c = {0 0 1/2} >> thePlane = plane(a,b,c) >> >> Jmol 11.5.48, you easily draw lines perpendicular to this plane: >> >> draw line1 {0 0 0} perp @thePlane >> >> or >> >> draw line2 vector {0 0 0} perp @thePlane scale -2.0 >> >> etc. >> >> >>> 2. in the hexagonal >>> <http://en.wikipedia.org/wiki/Hexagonal_crystal_system> and >>> rhombohedral <http://en.wikipedia.org/wiki/Rhombohedral> crystal >>> systems, it is possible to use the Bravais-Miller index which has 4 >>> numbers (/h/ /k/ /i/ /l/). It would be usefully to use this notation >>> in this crystal structures. >>> >>> >>> -- >>> >>> >> show me how they work.... >> >>> Shaul Avraham >>> >>> Department of materials engineering >>> Technion- Israel institute of technology >>> Haifa 32000 >>> Israel >>> >>> Email: [EMAIL PROTECTED] >>> Phone: +972-4-829-5827 >>> Fax: +972-4-829-5677 >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win >>> great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in >>> the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> >>> ------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> Jmol-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/Jmol-users >>> >>> >> >> > -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

