Mesocrystal particle

Mesocrystal is a crystal-like grain, defined by internal crystall lattice and the outer shape.

The Mesocrystal object is created via

# create mesocrystal
meso = ba.Mesocrystal(crystal, outer_shape)

and requires the objects crystal and outer_shape to be defined.

outer_shape is formfactor, describing shape and size of the mesocrystal, for example

outer_shape = ba.Cylinder(20*nm, 50*nm)

crystal is built from the node and lattice:

# Basis node
node = ba.Particle(material_node, formfactor)

# 3D lattice
lattice = ba.Lattice3D(lattice_vec_1, lattice_vec_2, lattice_vec_3)

# Crystal
crystal = ba.Crystal(node, lattice)   

Alternatively, node can be not just simple particle, but also another compositon:

node = ba.Compound()

or

node = ba.CoreAndShell(core, shell)

or even

node = ba.Mesocrystal(crystal_node, outer_shape_node)

Example