Package diffpy :: Package Structure :: Package expansion :: Module makeEllipsoid
[hide private]
[frames] | no frames]

Module makeEllipsoid

source code

Make a spheroid nanoparticle from a template structure.



Functions [hide private]
 
makeSphere(S, radius)
Create a spherical nanoparticle.
source code
 
makeEllipsoid(S, a, b=None, c=None)
Cut a structure out of another one.
source code
Variables [hide private]
  __id__ = '$Id: makeEllipsoid.py 3032 2009-04-08 19:15:37Z juha...
Function Details [hide private]

makeSphere(S, radius)

source code 
Create a spherical nanoparticle.

Arguments
S       --  A Structure instance
radius  --  primary equatorial radius (along x-axis)

Returns a new structure instance

makeEllipsoid(S, a, b=None, c=None)

source code 
Cut a structure out of another one.

Arguments
S       --  A Structure instance
a       --  primary equatorial radius (along x-axis)
b       --  secondary equatorial radius (along y-axis). If b is None
            (default) then it is set equal to a
c       --  polar radius (along z-axis). If c is None (default), then it is
            set equal to a.

Returns a new structure instance


Variables Details [hide private]

__id__

Value:
'$Id: makeEllipsoid.py 3032 2009-04-08 19:15:37Z juhas $'