lgca.base.calc_nematic_tensor

lgca.base.calc_nematic_tensor(v)

Given a vector field ‘v’, calculate the nematic tensor at each location. This tensor can be used to calculate transition probabilites or characterize order. See https://en.wikipedia.org/wiki/Liquid_crystal#Order_parameter Parameters ———- v: numpy.ndarray Last two dimensions should be length 2.

Returns:

  • (Array of nematic tensors.) – ..

  • (If ‘v’ has shape (nx, ny, 2) then the array of tensors has the shape (nx, ny, 2, 2).) – ..