Introduction

Novel defect structures can form in systems for which the lattice structure is not commensurate with the confining geometry. A regular triangular lattice on a sphere requires twelve positive disclinations, while toroidal crystals exhibit arrangements with negative and positive disclinations on the interior and exterior of the torus respectively1,2. Moreover, close packed particles on curved surfaces, at large enough system size, exhibit additional defects in the form of grain boundary scars3,4,5,6,7,8 or pleats9 in order to relieve the lattice strain energy.

Under cylindrical confinement, objects including discs10, spheres11,12,13,14,15, nanoparticles16,17,18 and radially repulsive point-like particles19,20 arrange into regular structures which can be described as phyllotactic states. Phyllotaxis, most commonly used to describe the regular arrangement of leaves or other lateral organs in plants, describes the arrangement of objects into regular spirals which intersect to form a triangular tiling. Phyllotactic state transitions, often accompanied by lattice defects, are observed when an incompatibility arises between a state and the confining geometry. Circularly symmetric phyllotaxis in constant curvature spaces leads to transitions characterised by circular grain boundaries21,22, as observed in sunflower heads23. Moreover, deviations from regular cylindrical confinement, by either varying the radius of the particles being packed24 or the geometry of the system25,26,27,28, allow transitions between phyllotactic states. Understanding these transitions, as well as the resulting defect structures at the transitions, could give important insight into phyllotactic transitions in plants, such as are observed in some cacti29 and Agave Parryi30, which is important for understanding plant growth.

In this study, we numerically investigate the ground states of repulsive point-like particles, modelled as vortices in a type II superconductor, confined to the surface of a conical frustum. Recent work by two of the authors20 investigated the ground state structures of this system under cylindrical confinement. This study showed that the ground state triangular lattice structures can be classified as phyllotactic states. Which state is the ground state depends on both the density of particles \(\rho \) and the cylinder circumference \(c\) through the value of a dimensionless parameter \(\alpha (c,\rho )\). The phyllotactic ground state changes when the value of \(\alpha \) crosses a transition value. Away from these transition points, the value of \(\alpha \) uniquely determines the ground state. In the current investigation, we first determine the ground state structures on the conical frustum. For the ground state \(\rho \) is fixed but the value of \(c\), and therefore \(\alpha \), varies with position. We show that the local \(\alpha \) value within the system determines the locally preferred state and we observe transitions between phyllotactic states when the value of \(\alpha \) crosses a transition point. These transitions are mediated by topological defects in the lattice structure, the nature of which we classify according to a set of phenomenological rules. Having established that the value of \(\alpha \) controls the local behavior of the system, we use this to our advantage to create a state free from defects by introducing a density gradient to reduce variation in \(\alpha \) within the system. We find that on the conical surface there is still variation in the value of \(\alpha \), limiting the range of parameters for which this approach is possible. We therefore seek out a surface, the horn, for which \(\alpha \) can be kept constant and the single state can be sustained for a wider parameter range. Finally, we discuss how the state of constant \(\alpha \) provides an example of a conformal crystal31.

System model

Vortices in type-II superconductors provide an excellent platform for studying soft lattice systems due to the large range of lattice parameters for which the lattice is stable, as well as the possibility of controlling the density with an external magnetic field. Here we numerically model a system of vortices which interact along the surface via the pairwise interaction potential \(V(r) = V_0 K_0(r/\lambda )\), where \(K_0\) is a modified Bessel function of the second kind, \(r\) is the separation between the vortex pair, measured along the surface, and \(\lambda \) is the London penetration depth. We set \(\lambda =1\) and the constant \(V_0=1\) throughout. The interaction potential is repulsive, with logarithmic divergence at small vortex separations and exponential decay in the large separation limit. We impose a cut off radius \(r_c = 5a_0\) to all simulations, where \(a_0\) is the average lattice parameter in the system.

We create our conical frustum with its axis of revolution along the \(\hat{\mathbf{z}}\) direction and give all system dimensions in terms of the scaled system length, which spans the range \(0<z<1\). The spatially varying circumference is \(c(z)=c_0 + \Delta c\,z\), where \(c_0\) is the circumference at \(z=0\) and \(\Delta c =c_1-c_0>0\) determines the slope of the surface. Positions on the surface are described by their coordinates \((z,\theta )\), where \(0\le \theta <2\pi \) is an angular coordinate. We minimise the effect of hard boundaries at the ends of the system by attaching vortex reservoirs of fixed density to these regions and only analysing states at least a distance \(r_c\) from the hard boundaries. We utilise the zero Gaussian curvature of the conical frustum and consider the ‘unwrapped’ surface in the plane, with boundary conditions identifying the two cut edges as equivalent, as shown in the schematic in Fig. 1a.

Experimentally vortices can be confined to channels in thin film superconductors, the exact geometry of which can be controlled using nanofabrication techniques32,33,34. A variant of our flattened system could therefore be fabricated and an appropriate choice of pinning array could be used to observe lattice states equivalent to those in our system. We note that the numerically observed ground states for cylindrical confinement are the same for the Bessel function, Yukawa and radially repulsive Gaussian potentials up to an overall energy scaling20. We therefore expect that the results presented in this work are generic for point-like particles confined to the surfaces considered here for the case of repulsive pairwise interactions along the surface.

States on the surface are identified according to their phyllotactic notation, which gives a way of classifying the arrangement of the lattice structure on the surface. To determine the phyllotactic notation of a state, we assign each lattice site to a set of rows10. A row is the set of vortices visited by hopping along the direction of one of the lattice vectors from a chosen starting point. Each vortex belongs to three rows, which correspond to the directions of the three lattice vectors of the triangular lattice. The phyllotactic notation for a state is written as three integers \((P, Q, R)\), which correspond to the number of rows of each orientation required to form the state. The three integers are written in descending order and satisfy \(P=Q+R\). The right side of Fig. 1c shows the \((4, 2, 2)\) state with the lattice vectors \((\mathbf{a}, \mathbf{b}, \mathbf{c})\) labelled. The state consists of four rows of lattice parallel to the \(\mathbf{c}\) direction, and two rows parallel to each of the \(\mathbf{a}\) and \(\mathbf{b}\) directions. Sections of the two rows of lattice parallel to the \(\mathbf{b}\) direction are highlighted in light and dark blue and trace out spirals on the surface. All lattice rows forming a state span the length of the system except those parallel to the periodicity direction \(\hat{\mathbf{e}}_{\theta }\), which form closed loops around the circumference at particular \(z\) values. These states have \(R=0\), such as the \((3, 3, 0)\) state on the left of Fig. 1c. All rows which are not parallel or perpendicular to \(\hat{\mathbf{e}}_{\theta }\) trace out spirals on the surface.

Ground state structures on a conical frustum

Figure 1
figure 1

Ground state structures on a conical frustum show transitions between phyllotactic states. (a) Schematic of the conical system and cutting procedure to form the unwrapped shape. The red and blue edges are identified as equivalent. (b) System snapshot showing the transition between the (3, 3, 0) (left) and (4, 2, 2) (right) states on the conical surface. (c) Unwrapped version of the snapshot in (b) with Voronoi cells shown for all vortices. Dislocations, which mark the transition location, are pairs of vortices in which one has five (red square) and the other has seven (blue diamond) nearest neighbours. The lattice vectors for each state are labelled in orange. The alternating light and dark blue arrows on the right highlight the two rows of lattice parallel to the b direction of the \((4, 2, 2)\) state. The number of rows of lattice along each of the three lattice directions determines the phyllotactic state. (d) Local density \(\rho \) for this transition plotted as a function of position \(z\). The vertical dashed line at \(z=0.32\) indicates the location of the transition, which also corresponds to a region with some local variation in the density. (e) Positional variation of \(\alpha =c^2\rho \), which dictates the preferred state. The dark dashed line at \(z=0.32\) marks the observed location of the transition while the light dashed lines mark the expected \(\alpha \) value at the transition (\(\alpha =12\)) and its corresponding position within the system (\(z=0.67\)). The measured \(\alpha \) value at the transition is 11.4.

We first examine the ground states of the system by maintaining a fixed vortex density \(\rho \). The parameter \(\alpha \) is defined by \(\alpha =c^2\rho \), which is equivalent to the definition used in Ref.20 for cylindrical confinement but which highlights the two dimensional nature of our system. We expect that the ground state structures of our system will depend on the local value of \(\alpha (z)=c^2(z)\rho \) and will be consistent with the ground state structures of the system under cylindrical confinement20 (Supplementary Tab. S1 online lists each of the states and their corresponding \(\alpha \) values). When the value of \(\alpha \) crosses a transition point, we expect to observe a state transition on the conical surface.

We numerically search for the zero-temperature ground states using both molecular dynamics (MD) and Monte Carlo (MC) algorithms (see Methods). In the cylindrical system, the energy difference between some ground states and other higher-energy states is very small. We therefore use two methods for the conical system to ensure we have indeed found the ground states. We find that our results are consistent for the two methods, and provide an example comparing the two in Figs. S1 and S2 of the Supplementary Information online. We focus our investigation on the transition points between states and choose values of \(c_0\), \(\Delta c\) and \(\rho \) so that the resulting variation in \(\alpha \) leads to the value of \(\alpha \) crossing a single transition point at a position around \(z=1/2\). We note that under cylindrical confinement, some transitions involve a change of lattice vectors without the three-index phyllotactic notation changing. These transitions are not included in this investigation due to distortions of the states on the conical surface making the states too difficult to distinguish.

Using these techniques, we have observed all expected transitions between phyllotactic states which appear sequentially as \(\alpha \) is increased over the range \(4\le \alpha \le 95.3\). As an example, the transition between the (3, 3, 0) and (4, 2, 2) states, which is predicted to occur at \(\alpha =12\) is shown in Fig. 1b,c, where Fig. 1b shows the state on the conical surface while Fig. 1c shows the flattened state. The system parameters are \(c_0=0.12\) and \(\Delta c = 0.01\). Transitions are mediated by lattice defects in the form of dislocations. These are vortex pairs in which one has five (red square) and the other has seven (blue diamond) nearest neighbours instead of the usual six neighbours (black circles). The Voronoi cells, which indicate the region closer to a given point than any other point, are shown for all vortices in Fig. 1c. We calculate the local density of each vortex as the inverse of its Voronoi cell area and use this to calculate its corresponding \(\alpha \) value. Plots of the local \(\rho \) and \(\alpha \) values for our example transition are shown in Fig. 1d,e respectively. As expected, \(\rho \) is constant while \(\alpha \) increases with \(z\). Both plots show spreading in the data around the transition point.

We find state transitions occur at \(\alpha \) values consistent with transition points for cylindrical confinement, although small differences between the expected and measured transition points are observed. In the example in Fig. 1d, the expected transition is at \(\alpha =12\) (horizontal dashed line) while the actual transition occurs at \(\alpha =11.4\). These deviations are likely due to the competing energetics of lattice strain and defect formation as well as the way in which the states form during the annealing process and finite-size effects in the \(z\) direction.

At the transitions, we find that the number and arrangement of lattice defects depends on the relative orientation of the two states at either side of the transition point. We have observed defect patterns which can be classified into distinct classes: single dislocations, multiple isolated dislocations, grain boundary scars, and domain walls. In the case of one or more isolated dislocations, as shown in Fig. 2a,b for the (5, 4, 1) to (5, 5, 0) and (7, 7, 0) to (8, 6, 2) transitions respectively, the defects are completely surrounded by vortices with six nearest neighbours. Grain boundary scars are lines of two or more adjacent dislocations at the transition, an example of which is shown in Fig. 2c for the (6, 6, 0) to (7, 4, 3) transition. Finally, a domain wall, in which a line of dislocations spans the entire circumference, is shown in Fig. 2d for the (5, 5, 0) to (6, 3, 3) transition.

We observe that domain walls form when one state at the transition has one of its lattice vector parallel to \(\hat{\mathbf{e}}_{\theta }\) while the other state has a lattice perpendicular to this. States with these properties have the general notation \((Q, Q, 0)\) and \((2R, R, R)\) respectively. Grain boundary scars are observed when the transition is between states with general notation \((Q, Q, 0)\) and \((2R+1, R+1, R)\). The \((2R+1, R+1, R)\) states have a lattice vector with a large component perpendicular to \(\hat{\mathbf{e}}_{\theta }\). In both of these cases, the competing structures are incompatible so the transition requires defects to span much or all of the circumference.

Furthermore, we can predict the number of dislocations \(n_d\) at a transition. Dislocations in a lattice structure are signatures of a change in the number of rows of lattice in different regions. We observe \(n_d = |\Delta R|\), where \(\Delta R\) is the difference between the smallest indices of the two phyllotactic states either side of the transition. The \(R\) index of the phyllotactic state corresponds to the number of rows along the direction of the lattice vector with the largest \(\hat{\mathbf{e}}_{\theta }\) component. Due to the commensurability constraint between the periodicity of the lattice structure and circumference of the surface, it is easier for the lattice to distort perpendicular to \(\hat{\mathbf{e}}_{\theta }\) than along it. The \(R\) index therefore corresponds to the most confined set of rows forming the state and it is the change in this number of rows between the competing states which determines the value of \(n_d\).

Figure 2
figure 2

Examples of the different classes of defect patterns observed at transitions between states. (a) A single dislocation is present in the (5, 4, 1) to (5, 5, 0) transition. (b) Two separated dislocations mediate the (7, 7, 0) to (8, 6, 2) transition. (c) A grain boundary scar consisting of three dislocations is observed for the (6, 6, 0) to (7, 4, 3) transition. (d) A domain wall consisting of three dislocations forms for the (5, 5, 0) to (6, 3, 3) transition.

Maintaining a single lattice structure with a density-driven flow

We now turn our attention to designing a vortex configuration on the conical surface which is free from topological defects. We have established that the ground state behaviour of our system is dependent on the local value of the parameter \(\alpha \), which varies due to the changing system circumference. In a type-II superconductor, the vortex density is directly proportional to the magnitude of the applied external magnetic field. We therefore introduce a density gradient, which is equivalent to a magnetic field gradient, to counteract the increasing circumference and reduce variation in \(\alpha \). In this section, we demonstrate that it is possible to create a defect-free state using this approach and discuss the limitations.

Using MD, we create a density gradient \(\rho (z)\) by implementing a source-sink density-driven flow scheme. This is achieved by attaching reservoirs maintained at fixed vortex number to the ends of system, following the methods detailed in Ref.35 (also see Methods). A vortex flow is induced along the \(z\) direction towards the reservoir maintained at the lower density (see schematic, Fig. 3a). A target value \(\alpha _0\) is chosen for vortices entering and exiting the system. This value is chosen to be away from transition values of \(\alpha \) to allow the reservoirs to maintain the desired state. The required vortex densities \(\rho _0\) at \(z=0\) and \(\rho _1\) at \(z=1\) are calculated from the value of \(\alpha _0\) and used to determine the number of vortices in each reservoir.

Using the parameters \(c_0=0.12\) and \(\Delta c = 0.02\) and sampling a range of \(\alpha _0\) values, we have observed all of the expected configurations which are successive ground states on the cylinder from (2, 2, 1) through to (7, 7, 0), as listed in Supplementary Tab. S1 online. After steady state is reached, which typically takes around \(10^5\) time steps, a single state is maintained throughout the system provided that the variation in \(\alpha \) is small enough for the state to be maintained. For higher \(\alpha \) values, the states become more unstable to fluctuations in the system and are much more difficult to maintain. Figure 3b–d show snapshots of the density-driven flow scheme for three examples: (b) the (4, 2, 2) state in a system with \(\alpha _0 = 13\), (c) the (6, 4, 2) state with \(\alpha _0 = 32\), and (d) the (7, 7, 0) state with \(\alpha _0 = 57\). In each case, the colour gradient indicates the density, from highest (red) to lowest (blue). The direction of flow is from left to right. We observe that the relative orientation between the lattice vectors and the flow direction does not appear to affect the behaviour.

While the steady state flow shows no defects, there is still underlying variation in \(\alpha \) within the system which restricts the parameter range for which a single state can be maintained. The implementation of the density gradient leads to a linear density profile of the form \(\rho (z) = \rho _0+\Delta \rho z\), where \(\Delta \rho = \rho _1-\rho _0 <0\), as shown in the graph in Fig. 3e. Figure 3f shows the resulting variation in \(\alpha (z)=c^2(z)\rho (z)\), which is therefore cubic in \(z\). For small enough \(\Delta c\) and \(\Delta \rho \) values it is possible to maintain the system within a single state. However, even when the single state is maintained, the structure is frustrated and the vortices are not arranged as would be expected if \(\alpha \) were constant. Figure 4a shows the deviation between expected (orange) and actual (black) vortex positions in a system snapshot of the (4, 2, 2) state with \(c_0=0.126\) and \(\Delta c=0.064\). We find this state is able to accommodate larger \(\alpha \) variation, and therefore larger magnitude \(\Delta c\) and \(\Delta \rho \) values, than many of the other states and can therefore be used to highlight deviations from a constant \(\alpha \) state. In the next section we refine our system to create a setup for which the value of \(\alpha \) can be held constant.

Figure 3
figure 3

Maintaining a single state by inducing a density-driven flow. (a) Schematic of the source-sink density-driven flow scheme. (b) (4, 2, 2) state with target value \(\alpha _0 = 13\), (c) (6, 4, 2) state with \(\alpha _0 = 32\), and (d) (7, 7, 0) state with \(\alpha _0 = 57\). In (bd) the colour gradient indicates the density from highest (red) to lowest (blue). The flow is towards the region of lowest density. (e) Local density variation within the system as a function of distance \(z\). This corresponds to the snapshot in (b) with a linear fit line (red) plotted. (f) Local variation in \(\alpha \) along the system, corresponding to the snapshot in (b). The red line gives a cubic fit for the local \(\alpha \) value.

Surface with constant \(\alpha \)

In order to design a surface with constant \(\alpha \), we must create a system for which we can balance the changing circumference of the surface and the changing density profile. The implementation of the density-driven flow scheme gives us a linear density profile and we therefore solve for the profile \(c(z)\) which gives a constant value of \(\alpha = \alpha _0\). This leads to a horn-shaped surface with

$$\begin{aligned} c(z) = \sqrt{\frac{\alpha _0}{\rho _0+\Delta \rho z}} \equiv \frac{c_0}{\sqrt{1-\eta z}}, \end{aligned}$$
(1)

where \(c_0\) is the circumference at \(z=0\), \(\eta = -\Delta \rho /\rho _0 >0\) and the length of the system is scaled such that \(0<z<1\).

We perform MD on the surface by numerically solving for the geodesics connecting pairs of vortices. The distance between a pair is the length of the geodesic and the forces act along the tangent vectors to the geodesics. As per the conical system, we attach source and sink reservoirs to maintain the required density gradient. Details of the equations and techniques used for MD in this case are given in the Supplementary Information online. We choose the parameters \(c_0 = 0.126\) and \(\eta =0.56\) so that the circumferences at \(z=0\) and \(z=1\) are equivalent to those for the cone example in Fig. 4a.

To verify our results, we need to calculate the expected vortex locations for a state of constant \(\alpha \) on the surface. The value of \(\alpha \) uniquely determines the direction of the lattice vectors used to describe a state, measured relative to the periodicity direction \(\hat{\mathbf{e}}_{\theta }\). The magnitude of the lattice vectors depends on the local value of the circumference. Since the value of \(\alpha \) is constant on the surface, the lattice vectors have the same orientation relative to \(\hat{\mathbf{e}}_{\theta }\) everywhere on the surface. From a given starting point, tracing out a curve by following the direction of a single lattice vector therefore creates a curve whose tangent vector is at a constant angle relative to \(\hat{\mathbf{e}}_{\theta }\). This type of curve is known as a loxodrome and has applications in navigation as well as other physical systems36,37 (see Supplementary Information online for derivation). By tracing out sets of these curves along the three lattice directions, starting from an initial reference point, we can create a series of curves which are equivalent to the rows forming the lattice state. The intersection points of the sets of curves give the expected vortex locations.

Figure 4b,c respectively show snapshots of the horn surface and the same snapshot flattened onto the plane. The vortices (black circles) are expected to sit at the intersection points of the plotted curves (white circles). Comparing results for the cone (Fig. 4a) and horn (Fig. 4c), we observe that the locations of the vortices for the horn system are significantly closer to their expected locations than those on the cone. We quantify the deviation between the expected and actual vortex locations for each system in Fig. 4d by plotting \(g(\sigma /d) = \sigma ^2/d^2\), where \(\sigma \) is the distance between a vortex and its expected location and \(d\) is the distance between the vortex and the reference point. For the horn (blue points) we observe that \(g(\sigma /d)\) is very close to zero, as expected for a constant \(\alpha \) system, while for the cone (orange points) there is a clear upward trend in \(g(\sigma /d)\) as \(d\) increases. We therefore conclude that the horn system is displaying a state of constant \(\alpha \).

Using the horn system for simulation is limited by the density variation within the system, and therefore the variation in the horn radius, due to the vortex interaction strength. If the variation is too large, vortices in the dense region will interact very strongly while those in the least dense regions may be far enough apart that the interactions are almost negligible. There are also large computational costs in simulations due to the time required to calculate distances along the curved surface.

Figure 4
figure 4

Comparison between cone and horn systems. (a) Snapshot of the flattened cone in the (4, 2, 2) state showing the actual vortex positions (black) and expected vortex locations (orange) if \(\alpha \) were constant. The expected positions are calculated relative to the red reference point. (b,c) Snapshot of (b) the horn surface and (c) unwrapped surface showing the (4, 2, 2) state with comparable system parameters to the cone example in (a). Actual vortex locations are shown in black. The expected vortex locations (white) are calculated relative to the blue reference point. These sit at the intersections of the plotted loxodrome curves. (d) Plot showing the deviation between the expected and actual vortex positions \(g(\sigma /d)\) (defined in the main text) as a function of distance from the reference point \(d\). The plot corresponds to the images in (ac) for the cone (orange) and horn (blue) respectively. (e) (7, 6, 1) state of constant \(\alpha \) constructed on the surface formed by revolving the curve \(y(x) = \cos {x}+2\) about the \(x\) axis.

Conclusions

We have demonstrated the adaptability of the vortex lattice in both static and dynamic regimes when confined to a geometry that is not commensurate with the local lattice ground state, as well as the importance of the dimensionless quantity \(\alpha \) in controlling this behaviour. By fixing the density, the ground state displays transitions between phyllotactic states as \(\alpha \) crosses a transition value. The number of defects at the transition can be described by a phenomenological rule. By inducing a density gradient in opposition to the changing circumference, we have created defect-free structures in which the entire system is in a single state. However, on the conical surface \(\alpha \) still varies so this approach is limited to small \(\Delta c\) and \(\Delta \rho \). We therefore sought a surface, the horn, for which the value of \(\alpha \) could be kept constant with our chosen density profile and demonstrated that in this case the vortices flow in a state of constant \(\alpha \).

More generally, we note that the method presented for using loxodromes to construct a constant \(\alpha \) configuration can be applied to other surfaces of revolution, such as in the example in Fig. 4e showing the (7, 6, 1) state on the surface of revolution created by revolving the curve \(y(x) = \cos {x}+2\) about the \(x\) axis. For surfaces for which the shape profile \(y(x)>0\) for the range of \(x\) values, all of the intersection points of curves forming states constructed using this method are six-fold coordinated. These states can all be conformally mapped from the surface to a perfect crystal structure in a strip of the plane36,38. They therefore provide a set of examples of conformal crystals, the classic examples of which describe the structural arrangement of repulsive particles under the influence of gravity31,39.

Methods

Ground state structures on a conical frustum

We use Molecular dynamics (MD) methods throughout this investigation and additionally use Monte Carlo (MC) techniques to verify that we have indeed found the ground states. MD is performed by numerically solving the over-damped Langevin equation for the motion of each vortex40,41 up to the imposed cut-off radius \(r_c=5a_0\), where \(a_0\) is the lattice parameter. We control temperature through implementation of a thermostat40,42 and slowly anneal a pseudo-randomly generated initial configuration from a high temperature into the zero-temperature ground state. We simulate the flattened system with length \(L=50\), \(c_0 = 6.0\) and \(\Delta c = 0.5\) as the typical values. These parameters allow for enough variation in \(\alpha \) that there is a single transition point within the system. For higher \(\alpha \) transitions, typically \(\alpha >50\), we instead use \(\Delta c = 0.1\) and \(L = 30\) due to the higher density of the lattices involved in the transitions. Other choices of \(c_0\) and \(\Delta c\) have been investigated to verify they are consistent with the results presented here. Using this method we have investigated a range of densities large enough to observe all transitions in the range \(4\le \alpha \le 95.3\).

We follow the Metropolis prescription for MC integration43 by annealing a pseudo-randomly generated starting vortex configuration from an initially high temperature down to zero temperature. In each step, we propose a position update, selected from a normal distribution, that displaces a pseudo-randomly selected vortex by no more than \(\sqrt{2}L/500\). Temperature \(T\) is reduced linearly from \(T=0.001\) to zero over the course of the simulation, which ends after \(10^7\) proposed updates. The initial temperature is sufficiently high to allow vortices to effectively explore the energetic landscape to enable cooling towards the structural ground state. Snapshots of the systems are compared and the state with the lowest internal energy is selected as the numerically solved ground state. We perform MC minimisation for system sizes in the range \(4.0\le c_0\le 10.5\) with \(\Delta c=0.5\) and \(L=50\), where we increment the value of \(c_0\) by 0.5 over the given range. For each system size, we choose the number of vortices \(N_v\) and find the ground state for each integer value in the range \(100\le N_v \le 256\). Using this range of parameters allows us to extensively explore the phase space for states expected in the range \(4\le \alpha \le 42.1\). The results are consistent with those for MD and show the expected transitions when \(\alpha \) crosses a transition value within the system. The MC sampling techniques do not choose parameters such that a transition is expected to occur at the centre of the system. Rather, as \(N_v\) is increased for fixed system size, the observed position of a transition moves through the system. We use these results to verify our MD results, but focus our analysis on the parameter choices for which transitions occur at the centre of the channel and are therefore as far away from the boundaries as possible.

Density-driven flow on a conical frustum

The vortex reservoirs are created to be larger than \(r_c\) and all vortices are added and removed from the source and sink respectively near to the ends of the reservoirs in order to ensure there are minimal effects on the dynamics within the system. Vortices are added into the source reservoir at pseudo-random locations in a region close to the outside edge of the system. The vortices within this reservoir form into a particular state which then flows into the system. As the state is formed within the source, there are occasions where defects may form in the structure and escape into the system. This noise flows through the system and the expected state is the persistent structure.

If a clean state entirely free from the possibility of defect structures entering from the source is desired for a different application, steps can be taken to produce a more ordered source reservoir. Positioning the vortices at their expected positions for the state of interest within the source helps to eliminate the chance of defects persisting and escaping the source.

Density-driven flow on a horn-shaped surface

We follow the methods used on the conical system as closely as possible, making adaptations to account for the curved surface where necessary. As for the conical system, we impose a cut-off radius of \(5a_0\) for interactions. The density gradient means that the separation between vortices varies with position. We therefore choose the value of \(a_0\) to be the expected lattice parameter at \(z=0.5\). Details of the methodology used for molecular dynamics on the horn surface are given in the Supplementary Information online.