LiquidCrystals.jl is an open-source Julia package for simulating the GENERIC concentration-dependent nematohydrodynamic equations of liquid crystals, providing researchers with a reproducible, efficient, and flexible tool for studying binary mixtures of liquid crystals.
- Finite-difference upwind schemes for concentration and tensorial liquid-crystal ordering
- Galerkin Lattice Boltzmann methods for mass and momentum balance in combination with Trixi.jl
- Open-source, designed for reproducibility and community use.
From a Julia REPL session run
julia> ]
pkg> dev https://github.com/depablogroup/LiquidCrystals.jl.git
The Finite Element aspect will be handled through Gridap.jl
Examples and notebooks demonstrating the library can be found in the examples/notebooks
folder.
The figure below shows a simulated binary mixture: two isotropic droplets immersed in a nematic environment.
Figure: Two isotropic droplets immersed in a nematic environment. Director vectors (white lines) and scalar order parameter (color map 0–0.75).
The figures below show the evolution of an axial droplet immersed in an isotropic fluid under semi-Couette flow.
- Left: director vectors (gray lines, scaled according to order parameter values) and scalar order parameter (color map 0–0.8).
- Top right: concentration profile (color map 0–1).
- Bottom right: velocity profile (x-component from -0.07 to 0.07).
Figures: Time evolution of an axial droplet under semi-Couette flow. Successive time steps from initial conditions to final state.
The figure below shows a snapshot of an axial droplet simulation immersed in an isotropic fluid under parabolic (Poiseuille-like) flow.
Figure: Axial droplet under parabolic flow. Director vectors (gray lines), scalar order parameter, concentration and velocity profile shown.
The figure below shows a snapshot of an active nematic system.
Figure: Active nematic snapshot. Director vectors, scalar order parameter and velocity field shown.
If you use this package in your research, please cite the repository and relevant publications associated with LiquidCrystals.jl.