Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ steps:
- label: ":julia: Run tests on Julia LTS"
plugins:
- JuliaCI/julia#v1:
version: 1.6
version: 1.10
- JuliaCI/julia-test#v1:
command: |
julia -e 'using Pkg;
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
fail-fast: false
matrix:
version:
- "1" # Latest Release
- "1.6" # LTS
- "1" # Latest Release
- "1.10" # LTS
os:
- ubuntu-latest
- macOS-latest
Expand All @@ -31,12 +31,12 @@ jobs:
- os: windows-latest
arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v2
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@latest
with:
version: '1.6'
version: '1.10'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
Expand Down
17 changes: 17 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2025 Jonathan Salmerón-Hernández and Pablo Zubieta-Rico

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
66 changes: 63 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# LiquidsCrystals.jl
# LiquidCrystals.jl

Library to solve the Landau-de Gennes model for nematic liquid crystals.
**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.

## Features

- 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.

## Installation

Expand All @@ -12,10 +18,64 @@ julia> ]
pkg> dev https://github.com/depablogroup/LiquidCrystals.jl.git
```


## Dependencies

The Finite Element aspect will be handled through `Gridap.jl`

## Usage

Look at the `examples/notbooks` folder to see the library in action.
Examples and notebooks demonstrating the library can be found in the `examples/notebooks` folder.

## Examples

### Binary mixture with topological defects
The figure below shows a simulated binary mixture: two isotropic droplets immersed in a nematic environment.


<p align="center">
<img src="assets/Picture8b.png" width="500"/>
<br><i>Figure: Two isotropic droplets immersed in a nematic environment. Director vectors (white lines) and scalar order parameter (color map 0–0.75).</i>
</p>

---

### Droplet under semi-Couette flow
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).

<p align="center">
<img src="assets/Picture9.png" width="220"/>
<img src="assets/Picture10.png" width="220"/>
<img src="assets/Picture11.png" width="220"/>
<img src="assets/Picture12.png" width="220"/>
<br><i>Figures: Time evolution of an axial droplet under semi-Couette flow. Successive time steps from initial conditions to final state.</i>
</p>

---

### Droplet under parabolic flow
The figure below shows a snapshot of an axial droplet simulation immersed in an isotropic fluid under parabolic (Poiseuille-like) flow.

<p align="center">
<img src="assets/Picture16.png" width="500"/>
<br><i>Figure: Axial droplet under parabolic flow. Director vectors (gray lines), scalar order parameter, concentration and velocity profile shown.</i>
</p>

---

### Active nematic
The figure below shows a snapshot of an active nematic system.

<p align="center">
<img src="assets/Picture22.png" width="500"/>
<br><i>Figure: Active nematic snapshot. Director vectors, scalar order parameter and velocity field shown.</i>
</p>

---

## Citation

If you use this package in your research, please cite the repository and relevant publications associated with LiquidCrystals.jl.
1 change: 1 addition & 0 deletions assets/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added assets/Picture10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Picture11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Picture12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Picture16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Picture22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Picture8b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Picture9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading