ipas.crystals module

Classes representing ice crystals (monomers) and ice clusters (aggregates).

class ipas.crystals.IceCluster(crystal, size=1)

Bases: object

add_crystal_from_above(crystal, lodge=0)
aspect_ratio(method)
center_of_mass()
crystals(i=None)
fit_ellipse()
max(dim)
min(dim)
move(xyz)
plot()
plot_ellipse()
projectxy()
recenter()
reorient(method='random', rotations=50)
rotate_to(angles)
write_obj(filename)
class ipas.crystals.IceCrystal(length, width, center=[0, 0, 0], rotation=[0, 0, 0])

Bases: object

A hexagonal prism representing a single ice crystal.

bottom()
min_vert_dist(crystal2)
move(xyz)
plot()
projectxy()
reorient(method='random', rotations=50)
rotate_to(angles)
top()
write_obj(filename)