Run · module 18
DPD
Mesoscale dissipative particle dynamics: describe species as bead strings, set χ between bead types, and watch blends and block copolymers segregate into domains.
Open it Modules›Mesoscale (DPD)…
- You start with
- Species written as bead strings (for example A5B5) and χ parameters between bead types.
- You get
- The segregation ψ, domain spacing, structure factor and the final domains.
Step by step
Add the species
Under Species, Add each one with its name, its beads (for example
A5B5for a symmetric diblock) and the number of molecules.Set χ between bead types
Under χ between bead types, Add each pair with its Flory–Huggins χ.
Set the run
Steps (dt 0.04) 20 000, density ρ 3, r_c 6.46 Å. Start from a random mix, or seed lamellae, cylinders or spheres. Chain stiffness k_θ is optional.
Compose the start from regions (optional)
Under Regions of the start, Add droplets, rods (across the box), slabs, shells and tubes, each with its centre as fractions of the box edge, its radius, thickness or inner radius, axis and priority (where regions overlap, the higher priority claims the space). Name a region in a species' row and its molecules start there; a region no species names stays empty, a void or a filler. Amphiphiles can start with their first bead on the region's surface and the rest along the normal, into the region or out of it.
Box edge · r_c fixes where the regions sit. With regions, the random or templated start is not used.
Press Run DPD
Follow Segregation over the run and the structure factor of the first bead type; the result gives ψ, the domain spacing and the domains at the end, and the page's view shows the beads of the last frame coloured by bead type.
Density fields for larger morphologies
As density fields runs the same molecules and χ as Gaussian chains on a grid (dynamic mean-field density functional theory): choose a 2D or 3D grid, the steps and the noise Ω, then Fields. Keep χ per bead pair near 1 or below and chains of 20 beads or fewer on these grids. A narrower interface than that, a/√(6χ) under about a third of a grid spacing, makes the run warn and can empty cells. A 3D grid takes far longer than a 2D one: start with nz 1, since the default 32 × 32 × 32 grid for 2000 steps takes tens of minutes on one core. There is no shear, mask or electrostatics in this version.
Measure the domains
In Analyze, the Domains chip labels the domains of a group's density field in each frame, across the periodic boundaries: their volumes, radii and ellipsoid axes, whether they percolate, and their spacing.
caps domainsalso writes slices on any plane.
The same without the Studio
Every Studio page calls the same core as the caps command and the caps Python package, so a step you clicked can be repeated in a script.
caps dpd --molecules 'AAAABBBB:300@shell:in; C:9000' \
--regions 'core droplet r=3 prio=2; shell shell r=5 in=3 prio=1' --box 16 --chi AB=5 -o dpd.xyz
caps fields --molecules 'A8B8:1' --chi AB=0.8 --grid 32,32,1 --steps 2000 --vtk fields.vtk