lcd: Liquid crystal diagrams (LCDs)

Description Usage Arguments Value Examples

View source: R/lcd.R

Description

A function for producing schematic liquid crystal diagrams that can be useful for demonstrating directod alignment through the depth of an LC cell

Usage

1
2
3
4
5
6
lcd(theta1, theta2, phi1 = 0, phi2 = 0, mol = "el", n = 500,
  l = 0.08, lc_asp = 1/3, theta_n = 0, phi_n = 0,
  bg_col = "white", bg_border = "black", lc_col = "grey90",
  lc_border = "black", right = 1, top = 1, strate1 = 0,
  strate2 = 0, strate1_col = "black", strate1_border = "black",
  strate2_col = "black", strate2_border = "black", seed = NULL)

Arguments

theta1

Tilt angle (in degrees) of LC molecules at y = 0 (measured from x, anti-clockwise)

theta2

Tilt angle (in degrees) of LC molecules at y = 1 (measured from x, anti-clockwise)

phi1

Twist angle (in degrees) of LC molecules at y = 0 (measured from x, anti-clockwise)

phi2

Twist angle (in degrees) of LC molecules at y = 1 (measured from x, anti-clockwise)

mol

Molecule type. One of "el" for elipse (default) or "rect" for rectangles

n

Number of molecules in diagram

l

Length of molecule

lc_asp

Aspect ratio of LC molecule (defaults to 1/4, length is 4 times width)

theta_n

Nose added symetrically to theta (random noise between -theta_n and theta_n is added to theta)

bg_col

Colour of diagram background (between molecules)

bg_border

Colour of border of diagram

lc_col

Colour of the LC molecules

lc_border

Colour of LC molecule borders

right

Right dimension (defaults to 1) Increase to make diagram wider

top

Top dimension (defaults to 1)

strate1

Thickness of the substrate

strate2

Thickness of the superstrate

strate1_col

Substrate fill colour

strate1_border

Substrate border coloure

strate2_col

Superstrate fill colour

strate2_border

SUperstrate border colour

seed

Seed for reproducable diagrams

Value

A base R plot in the graphics device

Examples

1
lcd(-45, 45)

dickie-roper/lcdiagrammer documentation built on Nov. 4, 2019, 10:31 a.m.