| 1 |
+++ |
| 2 |
title = "Mesocrystal" |
| 3 |
weight = 80 |
| 4 |
+++ |
| 5 |
|
| 6 |
## Mesocrystal particle |
| 7 |
|
| 8 |
A mesocrystal is a crystal-like grain, defined by an internal crystal lattice |
| 9 |
and an outer shape. |
| 10 |
|
| 11 |
The `Mesocrystal` object is created via |
| 12 |
|
| 13 |
```python |
| 14 |
meso = ba.Mesocrystal(crystal, outer_shape) |
| 15 |
``` |
| 16 |
|
| 17 |
and requires the objects `crystal` and `outer_shape` to be defined. |
| 18 |
|
| 19 |
`outer_shape` is a hard form factor describing the shape and size of the |
| 20 |
mesocrystal: |
| 21 |
|
| 22 |
```python |
| 23 |
outer_shape = ba.Cylinder(20*nm, 50*nm) |
| 24 |
``` |
| 25 |
|
| 26 |
`crystal` is built from the basis particle and a 3D lattice: |
| 27 |
|
| 28 |
```python |
| 29 |
# Basis particle |
| 30 |
inner_ff = ba.Sphere(3*nm) |
| 31 |
basis = ba.Particle(material, inner_ff) |
| 32 |
|
| 33 |
# 3D lattice |
| 34 |
lattice = ba.Lattice3D( |
| 35 |
ba.R3(8*nm, 0, 0), |
| 36 |
ba.R3(0, 8*nm, 0), |
| 37 |
ba.R3(0, 0, 8*nm), |
| 38 |
) |
| 39 |
|
| 40 |
# Crystal |
| 41 |
crystal = ba.Crystal(basis, lattice) |
| 42 |
``` |
| 43 |
|
| 44 |
Alternatively, `basis` can be not just a simple particle, but also another |
| 45 |
composition: |
| 46 |
|
| 47 |
```python |
| 48 |
basis = ba.Compound() |
| 49 |
``` |
| 50 |
|
| 51 |
or |
| 52 |
|
| 53 |
```python |
| 54 |
basis = ba.CoreAndShell(core, shell) |
| 55 |
``` |
| 56 |
|
| 57 |
or even |
| 58 |
|
| 59 |
```python |
| 60 |
basis = ba.Mesocrystal(crystal_node, outer_shape_node) |
| 61 |
``` |
| 62 |
|
| 63 |
[Example](/ref/sample/particle/ex/mesocrystal-particle) |