• No results found

Visualisation

Chapter 2 Computer simulations

2.4 Visualisation

In the analysis of nematic textures, especially in regions near the defects, data visualisation of the nematic field plays an important role. In this section we will give a short account of the different methods available, followed by a detailed description of three methods used throughout this thesis.

Traditionally, the director orientation is used to visualise the nematic field. Here the director ˆncan be represented by, for example, ‘nails’ or cylindrical glyphs to visualise a two-dimensional cross-section. An alternative is to utilise the entire order tensor. Each local order tensorQ can be represented by an ellipsoid with its axes along the eigenvectors, and each axis being scaled by the corresponding eigen- value. However both these methods are somewhat limited to two dimensions. To locate and visualise defects in 3D isosurfaces of lower nematic orderSare commonly used [105, 127, 128]. SinceS does not vary much within the bulk, but decreases sig- nificantly around the defect, this approach is sufficient to reliably locate defects. It has the advantages of giving a ‘clean’ picture even in 3D by avoiding unnecessary in- formation. If the biaxiality of the nematic field is of interest, it can be superimposed on the isosurface by the use of colour variations. In addition to these commonly used

methods, more complex ones include the use of streamlines [129], Pontryagin-Thom surfaces, which are based on points which share a common director orientation [130], and splay-bend order parameter visualisation [131].

In molecular dynamics simulations it can be of interest to visualise an instan- taneous snapshot of the system. Since each molecular position and orientation is known, we can visualise the molecules as uniaxial ellipsoids. We used the open source softwareqmga [132], which has a useful feature of colour coding the molecules de- pending on their orientation. Molecules, which are parallel to the director are blue; Molecules, which are perpendicular to the director are red and intermediate orienta- tions are coloured green. (Not that we will use a different colour scheme in Chapter 7 and Chapter 8.) Three snapshots of a slice through a smectic, nematic and isotropic Gay-Berne system are shown in Fig. 2.6. Note the absence of positional order in the

(a) (b) (c)

Figure 2.6: qmga snapshots of slices through the Gay-Berne system µ = 1, ν = 3 at densityρ = 0.3: (a) smectic (T = 2.0), (b) nematic (T = 3.4) and (c) isotropic phase (T = 4.0). Molecular orientation is colour coded with respect to the director. Blue molecules are parallel to the director, whereas red molecules are perpendicular to it.

nematic and isotropic phase and the absence of orientational order in the isotropic phase.

A commonly used approach to visualise defects in liquid crystals is to divide the simulation box into small cubic bins. For each bin the local order tensorQ is calculated. For a better resolution, i.e. smaller bins, we need to time average over a longer time to ‘fill’ the bins. Ideally the bin size should be comparable to the defect core size. For each bin we have full information of the local order tensor as well as the density. Hence we can plot two-dimensional cross sections of these quantities in the regions of interest. In the binning approach, line defects are tracked by analysing planes parallel to the faces of the bins. Within one of these planes, the directornis tracked around a square on the order parameter space sphere. If the final director is on the different hemisphere a disclination line is cutting through the square. The disclination line is perpendicular to the plane of the square [133, 134]. However,

there are many limitations inherent in this approach. Defect loops calculated this way consist of straight lines joined by 90◦

angles, which is not smooth and does not represent the nature of defects very well. For a high resolution, it is necessary to time-average the data to fill each bin with a sufficient amount of molecules. However this prevents us from seeing any short time-scale dynamics of the system.

Our main research focus here is to study the defects in liquid crystals. Since we are particularly interested in the dynamics of these systems, we require a method to visualise defects for instantaneous system snapshots. Callan-Jones et al. [135] suggested an approach, which enables one to visualise defects for a single snapshot by creating a quasi-continuous tensor field. Their method allows to locate disclination lines and it also gives information about the defect core and the director field around the core region. This visualisation process can be described in the following steps. First, the order tensor Q is modified, so that all its eigenvalues are non-negative by adding the identity matrixI. As mentioned earlier, this new diagonalised tensor Ddiag Ddiag =Qdiag+1 3I=     λ1 0 0 0 λ2 0 0 0 λ3     (2.20)

can be represented by a spheroid with the eigenvectors along the principal axes and the corresponding eigenvalues being their respective length [136]. The eigenvalues of Ddiag are labelled λ1 ≥ λ2 ≥ λ3 with λ1 +λ2+λ3 = 1. The main limitation is that Ddiag is only defined by averaging over a region of space containing non- vanishing number of molecules. A weighting function w that interpolates Ddiag within a certain volume is introduced to create a quasi-continuous tensor field

Dαβ(r) = 1 N(Vs) X i∈Vs w(|ri−r|)uimuim′ . (2.21)

HereN(Vs) is the number of molecules in the sampling volumeVs. ri is the position vector of particlei and ui is the component of the orientation vector with mm′

=

x, y, z. w(|ri−r|) is a weighting function with the constraint

X

i∈Vs

w(|ri−r|) = 1. (2.22) For the weighting we choose a cubic b-spline, see Fig. 2.7, which is a piecewise

Figure 2.7: Cubic b-spline weighting function wwith kernel radius rk = 7.3 continuous cubic polynomial approximation to a Gaussian function [137]

w(x) =        1 6(3|x| 36x2+ 4) 0≤ |x| ≤1 1 6(2− |x|)3 1≤ |x| ≤2 0 else, (2.23)

wherex= 2|ri−r|/rk. w is zero if|ri−r|is greater than the kernel radius rk. rk was chosen to be 7.3, which corresponds to having roughly 30 molecules inside the sampling volumeVs. From the eigenvalues λ, the Westin metrics can be calculated using

cl=λ1−λ2, cp= 2(λ2−λ3), cs= 3λ3. (2.24) The Westin metrics have the properties

0cl, cp, cs ≤1, cl+cp+cs= 1. (2.25) Regions of well ordered uniaxial nematic correspond tocl∼1, planar ordering cor- responds tocp∼1 and isotropic regions correspond tocs∼1 [138]. Within the defect core region cl falls below a certain threshold. The choice of this threshold may seem somewhat arbitrary, however by starting at zero and gradually increasing cl we reach a point where all defect lines merge, i.e. we have no ‘loose’ ends. The width of the defect core is roughly the same everywhere, which is an indicator that the defect region was determined correctly. The main advantages of this visualisation approach are that time averaging is unnecessary and that there is no limit to the resolution. We simply have to calculate more weighted order tensors if we choose a smaller grid. The software ParaView[139] was used for the visualisation of the isosurface corresponding to low nematic order with cl<threshold.

Related documents