🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.graphics.explorer
1 messages
1 total messages Started by B.Cowie,E8,3589,060641500 Wed, 05 Aug 1992 13:21
Entering Crystal Structures using ReadPDB
#35
Author: B.Cowie,E8,3589,060641500
Date: Wed, 05 Aug 1992 13:21
34 lines
1865 bytes
I have a workaround for anyone who wants to enter crystal 
structures as Molecules with ReadPDB

First you need to get your crystal structure into atomic
coordinates ala the files nutrasweet.pdb given in the chemistry
module example.  The vital data is ATOM element number of atom
and its position in space.  Now if you use Readpdb it will take
the file in however it will also attempt to make bonds with 
the closest atoms.  You can fool the program into not making
bonds by taking a copy of the elements.h file and reducing the
first radius value of the element in question. 
This radius appears to define the bonding
the second radius value affects the size of the sphere displayed
in the render module.  By reducing the size you can globally
alter the bonding of all the atoms.  By playing around with the
size you can selectively suppress some longer bonds or turn them 
all off.  You can override the bond generation by putting the
line CONECT    2    5 in the pdb file on a seperate line
this forces the generation of a bond between the two numbered
atoms.  No matter how far apart they are.

You can then use Ball and Stick to change the atom sizes like
the chemistry example.  

This isn't the most elegant way of using Explorer.
the syntax for CONECT is :-
first Field CONECT,next 5 characters first atom number, next 5 characters
second atom number

Does anybody else look at crystal structures with explorer?

Bruce Cowie
  
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads