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 with specified alignment
meso = ba.Mesocrystal(crystal, outer_shape, ba.AlignAt_Bottom)

and requires the objects crystal and outer_shape to be defined. The alignment argument specifies how the mesocrystal is positioned relative to the reference plane (layer interface). Options are AlignAt_Bottom, AlignAt_Center, or AlignAt_Top.

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, ba.AlignAt_Bottom)

# 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 composition:

node = ba.Compound(ba.AlignAt_Bottom)

or

node = ba.CoreAndShell(core, shell, ba.AlignAt_Bottom)

or even

node = ba.Mesocrystal(crystal_node, outer_shape_node, ba.AlignAt_Bottom)

Example