1 Introduction

1.1 The Liquid Crystal Model

We consider the following simplified Ericksen–Leslie’s problem in \(Q=(0,T)\times \Omega \) modeling a nematic liquid crystal fluid filling a bounded domain \(\Omega \subset \mathbb {R}^N\) (\(N=2\) or \(3\) in practice) with boundary \(\partial \Omega \) and \(\Sigma =(0,T)\times \partial \Omega \):

$$\begin{aligned}&\partial _t d+\left( u\cdot \nabla \right) d-\gamma \Delta d+ q \, d = 0, \end{aligned}$$
(1)
$$\begin{aligned}&|d| = 1,\end{aligned}$$
(2)
$$\begin{aligned}&\partial _t u+(u\cdot \nabla ) u-\nu \Delta u+\nabla p +\lambda (\nabla d)^t\Delta d = f,\end{aligned}$$
(3)
$$\begin{aligned}&\nabla \cdot u = 0,\end{aligned}$$
(4)
$$\begin{aligned}&u|_{\Sigma }=0,\ d|_{\Sigma } = l,\end{aligned}$$
(5)
$$\begin{aligned}&u|_{t=0}=u_0,\ d|_{t=0} = d_0. \end{aligned}$$
(6)

The unknowns of this problem are:

  • \(d:Q\rightarrow \mathbb {R}^N\) the orientation of liquid crystal molecules,

  • \(q :Q\rightarrow \mathbb {R}\) the Lagrange multiplier associated with the unitary constraint (2),

  • \(u:Q\rightarrow \mathbb {R}^N\) the fluid velocity,

  • \(p=\widetilde{p}+\lambda |\nabla d|^2/2\) the Lagrange multiplier associated with the incompressibility constraint (4), where \(\widetilde{p}:Q\rightarrow \mathbb {R}\) is the pressure.

The data are:

  • \(f:Q\rightarrow \mathbb {R}^N\) the external force,

  • \(l:\Sigma \rightarrow \mathbb {R}^N\) the Dirichlet boundary data for \(d\), and

  • \(u_0,d_0:\Omega \rightarrow \mathbb {R}^N\) the initial data.

Finally, \(\gamma ,\nu , \lambda >0\) are given constants. Hereafter, \(|d|\) and \(|\nabla d|\) denotes the euclidean norm of the vector \(d\in \mathbb {R}^N\) or the matrix \(\nabla d\in \mathbb {R}^{N\times N}\), respectively. \((\nabla d)^t\) denotes the transpose matrix of \(\nabla d\).

Eventually, the Dirichlet condition \(d|_{\Sigma }=l\) can be changed by the homogeneous Neumann condition

$$\begin{aligned} (\nabla d)n |_{\Sigma }=0 \end{aligned}$$

where \(n\) is the unit outward normal to \(\partial \Omega \).

It is easy to deduce, multiplying (1) by \(d\) and applying (2), that \(q =-\gamma |\nabla d|^2\), hence the Lagrange multiplier \(q\) has an explicit expression in function of \(d\). Nevertheless, we are going to keep the unknown \(q\) because in the fully-discrete numerical scheme this explicit expression will be not maintained.

1.2 Known Results

First numerical results related to problem (1)–(6) are based on the discretization of a penalized problem of (1)–(6) by means of a Ginzburg–Landau functional depending on the penalized parameter \(\varepsilon \) (see for instance [5, 9, 10, 1416]). All these schemes suffer from the disadvantage of being sensitive to the choice of the penalty parameter \(\varepsilon \).

Becker et al. [3] considered two nonlinear fully discrete \(C^0\)-finite element methods. The first scheme discretizes the Ginzburg–Landau penalized problem and it is unconditionally energy-stable (conserving decreasing the energy associated with the continuous problem) and converges towards the penalized problem. The second algorithm in [3] discretizes directly (1)–(6) and is unconditionally energy-stable, although the convergence when the discrete time and space parameters go to zero remains as an open problem. This second algorithm is based on a reformulation of the \(d\)-system (1) by using vectorial products, arriving at a non-linear and fully coupled scheme, which is implemented in practice via the iterative Newton’s method.

On the other hand, a finite element scheme based on a saddle-point formulation of the director vector is proposed in [1], allowing to consider the limit problem (1)–(6) and the penalized problem (via a Ginzburg–Landau functional) in a unified way. In this case, a linear time semi-implicit algorithm is introduced which is unconditionally stable (satisfying a discrete energy inequality), although the resulting scheme is fully coupled.

Finally, for the director vector only problem [i.e. problem (1)–(2) with \(u=0\)], Glowinski et al. describe in [5], a splitting in time scheme based on the Chorin–Temam projection method for fluids. Moreover, a scheme is given for the limit problem (1)–(2) and another one for the corresponding penalized version.

1.3 Novelty of the Paper

In this paper we design a new fully discrete algorithm approximating directly the problem (1)–(6), which is completely different from the second scheme presented in [3] and the schemes given in [1, 5]. This new scheme will be based on a viscosity-splitting scheme in time, an iterative fixed-point method for the coupled non-symmetric problem without constraints and the augmented Lagrangian algorithm in space associated with two symmetric mixed problems:

  • a Stokes type problem for the fluid part;

  • a director vector problem with the unitary constraint \(|d|=1\), introducing the Lagrange multiplier associated to this non-convex constraint.

Then, our scheme decouples the Lagrange multipliers from the primal variables velocity and director vector. Moreover, the vectorial systems for the velocity and director vector will be decoupled by components. To our knowledge, this is the first fully decoupled linear scheme applied to the Ericksen–Leslie’s problem (1)–(6). Some numerical computations are presented performing the convergence and viability of this new scheme.

1.4 Organization of the Paper

The rest of the paper is organized as follows. In Sect. 2 a time scheme is presented, splitting the convection nonlinear terms from the constraints (incompressibility and director vector in the unit sphere). Then, fully decoupled strategies for the three different problems appearing in the previous time-splitting scheme will be described in Sects. 3, 4 and 5, respectively. Finally, the numerical results are presented in Sect. 6, by using only linear finite elements in space.

2 A Viscosity-Splitting Time Discrete Scheme

The time interval \([0, T]\) is divided into \(M\) subintervals of equal length \(k=T/M\) (by simplicity), considering the partition \(\{ t_n=n\,k\}_{n=1}^{ M}\). We would like to compute \(\{ u^n,p^n,d^n,q^n \}\) as approximations of \(\{ u(t_n),p(t_n),d(t_n),q(t_n) \}\).

For this, let us start with the following time discrete scheme, which is related to the so-called viscosity-splitting algorithm, see [2, 11, 12] for the Navier–Stokes case:

Initialization: Let \(u^0=u_0\) and \(d^0=d_0\).

Step \(n\ge 1\): Given \((u^{n-1},d^{n-1})\), we compute \((u^{n},p^{n},d^{n},q^n)\) via the following two sub-step scheme.

Sub-step 1. :

Given \((u^{n-1}, d^{n-1})\), compute \((\widetilde{u}^n,\widetilde{d}^n)\) as the solution of the coupled linear system

$$\begin{aligned}&\frac{1}{k}(\widetilde{d}^n-d^{n-1})+(\widetilde{u}^n\cdot \nabla ) d^{n-1} -\gamma \Delta \widetilde{d}^n = 0, \end{aligned}$$
(7)
$$\begin{aligned}&\frac{1}{k}(\widetilde{u}^n\!-u^{n-1})+ (u^{n-1}\cdot \nabla )\widetilde{u}^n \!+\frac{1}{2}(\nabla \cdot u^{n-1}) \widetilde{u}^n \!- \nu \Delta \widetilde{u}^n\!+\lambda (\nabla d^{n-1})^t\Delta \widetilde{d}^n \!=\! f^n.\quad \end{aligned}$$
(8)
Sub-step 2. :

Given \((\widetilde{u}^n,\widetilde{d}^n)\), compute \((u^n,p^n)\) and \((d^n,q ^n)\) as the solution of the following two uncoupled systems

$$\begin{aligned} (u^n,p^n)&s.t.&\frac{1}{k}(u^n-\widetilde{u}^{n})-\nu \,\Delta (u^n - \widetilde{u}^n) +\nabla p^n = 0,\quad \nabla \cdot u^n=0,\end{aligned}$$
(9)
$$\begin{aligned} (d^n,q ^n)&s.t.&\frac{1}{k}(d^n-\widetilde{d}^{n})-\gamma \, \Delta (d^n - \widetilde{d}^n ) + q ^n d^n = 0,\quad |d^n|=1, \end{aligned}$$
(10)

Obviously, systems (7)–(8), (9) and (10) must be endowed with the exact boundary conditions related to (5):

$$\begin{aligned} \widetilde{u}^n|_{\partial \Omega }=0=u^n|_{\partial \Omega }\quad \hbox {and}\quad \widetilde{d}^n|_{\partial \Omega }=l(t_n)=d^n|_{\partial \Omega }. \end{aligned}$$

In order to describe a fully decoupled the above time discretization scheme, we will analyze separately the three different previous subproblems: the coupled problem (7)–(8) of sub-step \(1\), and the two decoupled problems (9) and (10) of sub-step \(2\).

3 Solution of the Problem (7)–(8)

For simplicity, in this Section we will use the notations \(u=\widetilde{u}^n\), \(d=\widetilde{d}^n\), \(u^*=u^{n-1}\), \(d^*=d^{n-1}\) and \(f=f^n\). Hence, given \((u^*,d^*)\), the problem (7)–(8) can be rewritten as:

Find \((u,d)\) such that

$$\begin{aligned}&\frac{1}{k}(u-u^*)+ (u^*\cdot \nabla ) u + \frac{1}{2}(\nabla \cdot u^*) u-\nu \Delta u+ \lambda (\nabla d^*)^t\Delta d = f,\end{aligned}$$
(11)
$$\begin{aligned}&\frac{1}{k}(d-d^*)+u\cdot \nabla d^*-\gamma \Delta d = 0. \end{aligned}$$
(12)

As in [9], we subtract from \(d\) a “lifting” function \(\overline{d} ^n\) as a solution of the Laplace–Dirichlet problem

$$\begin{aligned}&\Delta \overline{d} ^n = 0,\quad \text{ in } \Omega ,\\&\overline{d}^n = l(t_n),\quad \text{ on } \partial \Omega . \end{aligned}$$

If we set

$$\begin{aligned} \widehat{d}=d-\overline{d}^n, \end{aligned}$$

then \(\widehat{d}\) is the solution of the problem \(\Delta \widehat{d}=\Delta d\) and \(\widehat{d}=0\) on \(\partial \Omega \). Again as in [9], we also introduce the auxiliary variable

$$\begin{aligned} w=-\sqrt{\lambda }\Delta d=-\mu \Delta d=-\mu \Delta \widehat{d}, \end{aligned}$$

where \(\mu =\sqrt{\lambda }\). Then \((u,d)\) is a solution of (11)–(12) if, and only if, \((u,d=\widehat{d}+\overline{d}^n,w)\) is a solution of the coupled system

$$\begin{aligned}&\frac{1}{k}(u-u^*)+ (u^*\cdot \nabla ) u + \frac{1}{2}(\nabla \cdot u^*) u -\nu \Delta u-\mu (\nabla d^*)^tw = f,\end{aligned}$$
(13)
$$\begin{aligned}&\frac{\mu }{k}(d-d^*)+\mu (u\cdot \nabla ) d^*+\gamma \, w = 0, \end{aligned}$$
(14)
$$\begin{aligned}&\mu \,\Delta \widehat{d}+w = 0. \end{aligned}$$
(15)

To introduce the variational formulation of (13)–(15), we define the following trilinear form

$$\begin{aligned} c(u^*,u,\bar{u})=((u^*\cdot \nabla ) u,\bar{u})+\frac{1}{2}(\nabla \cdot u^*,u\cdot \bar{u}), \quad \forall \,u^*,u,\bar{u}\in H_0^1(\Omega )^N. \end{aligned}$$

Hereafter we denote by \((\cdot ,\cdot )\) the scalar product in \(L^2(\Omega )\). The variational formulation of (13)–(15) can be written as follows:

Find \((u,d=\widehat{d}+\overline{d}^n,w)\in H^1_0(\Omega )^N\times H^1(\Omega )^N \times L^2(\Omega )^N\) such that

$$\begin{aligned}&\frac{1}{k}(u-u^*,\bar{u})+\nu (\nabla u,\nabla \bar{u})+c(u^*,u,\bar{u})-\mu ((\nabla d^*)^t w,\bar{u}) = (f,\bar{u}),\quad \forall \bar{u}\in H^1_0(\Omega )^N, \nonumber \\\end{aligned}$$
(16)
$$\begin{aligned}&\frac{\mu }{k}(d-d^*,\bar{w})+\mu ((u\cdot \nabla ) d^*,\bar{w})+\gamma (w,\bar{w}) = 0,\quad \forall \bar{w}\in L^2(\Omega )^N, \end{aligned}$$
(17)
$$\begin{aligned}&\mu (\nabla \widehat{d},\nabla \bar{d})--(w,\bar{d}) = 0,\quad \forall \bar{d}\in H^1_0(\Omega )^N. \end{aligned}$$
(18)

To solve (16)–(18), we use a successive iterative method studied in [9] (see Algorithm 1).

figure a

Note that problem (19) in Algorithm 1 is equivalent to \(N\) decoupled convection-diffusion equations, one for each component of the velocity field \(u^{(\ell )}\). Hence \(N\) linear non-symmetric systems depending on the time step must be solved. On the other hand, problem (20) in Algorithm 1 decouples each component of the pair \((\widehat{d}^{(\ell +1)},w^{(\ell +1)})\). Moreover, since \(w^{(\ell +1)}\) will be approximated by \(P_0\) finite elements, we can eliminate each component of \(w^{(\ell +1)}\) from (20)\(_1\) in function of the corresponding component of \(\widehat{d}^{(\ell +1)}\) in (20)\(_2\) by the so-called “static condensation” process. Then, problem (20) is equivalent to solving \(N\) linear symmetric systems independent from the time step \(k\).

4 Solution of the Problem (9)

By using the notations \(u=u^n\) and \(p=p^n\), the problem (9) is rewritten as:

Find \((u,p)\) such that

$$\begin{aligned} \frac{1}{k}(u-\widetilde{u}^n)-\nu (\Delta u-\nu \Delta \widetilde{u}^n)+\nabla p= 0,\quad \nabla \cdot u=0,\quad u_{|\partial \Omega }=0. \end{aligned}$$
(22)

Let us introduce the bilinear and linear forms

$$\begin{aligned}&\varvec{a_1}(u,\bar{u})=\frac{1}{k}(u,\bar{u})+\nu (\nabla u,\nabla \bar{u}),\quad \forall \, u,\bar{u}\in H^1_0(\Omega )^N\\&\varvec{\tau _1}(\bar{u})=\frac{1}{k}(\widetilde{u}^n,\bar{u})+\nu (\nabla \widetilde{u}^n,\nabla \bar{u}) ,\quad \forall \, \bar{u}\in H^1_0(\Omega )^N \end{aligned}$$

and the (quadratic and convex) functional \(F_1 :H^1_0(\Omega )^N\,\rightarrow \,\mathbb {R}\) defined by

$$\begin{aligned} F_1(\bar{u})=\frac{1}{2}\varvec{a_1}(\bar{u},\bar{u})-\varvec{\tau _1}(\bar{u}) \end{aligned}$$

In (22), the pressure \(p\) is the Lagrange multiplier associated with the divergence constraint \(\nabla \cdot u=0\). Therefore, (22) is the (strong) saddle-point formulation of the following constrained minimization problem:

Find \(u\in H^1_0(\Omega )^N\) with \(\nabla \cdot u=0\) such that:

$$\begin{aligned} F_1(u)\le F_1(\bar{u}),\quad \forall \, \bar{u}\in H^1_0(\Omega )^N\hbox { with } \nabla \cdot \bar{u}=0. \end{aligned}$$
(23)

The saddle-point \((u,p)\) of the constrained problem (23) can be computed using Uzawa/conjugate gradient algorithm operating in the space \(H^1(\Omega )\cap L^2_0(\Omega )\) for the pressure, where

$$\begin{aligned} L^2_0(\Omega )=\left\{ p\in L^2(\Omega ),\ \int _\Omega p\, {dx}=0 \right\} . \end{aligned}$$

This space \(H^1(\Omega )\cap L^2_0(\Omega )\) is endowed with the scalar product \( (\nabla p,\nabla q)\).

The resulting conjugate gradient algorithm is then preconditioned by the discrete operator equivalent of \((-\Delta )\), see e.g. [6, 7]. The corresponding Uzawa/conjugate gradient algorithm is described in Algorithm 2.

figure b

Note that the vectorial problems (24) and (25) in Algorithm 2 are decoupled by components.

5 Solution of the Problem (10)

Again for simplicity, in this Section we set \(d=d^n\) and \(q =q ^n\). Hence, problem (10) is rewritten as:

Find \((u,q)\) such that

$$\begin{aligned} \frac{1}{k}(d-\widetilde{d}^n)-\gamma \Delta d+q \, d=-\gamma \Delta \widetilde{d}^n,\quad |d|=1,\quad d_{|\partial \Omega }=l^n. \end{aligned}$$
(30)

To simplify we introduce the forms

$$\begin{aligned}&\varvec{a_2}(d,\bar{d})=\frac{1}{k}(d,\bar{d})+ \gamma (\nabla d,\nabla \bar{d}),\quad \forall \, d,\bar{d}\in H^1(\Omega )^N\\&\varvec{\tau _2}(\bar{d})=\frac{1}{k}(\widetilde{d}^n,\bar{d})+\gamma (\nabla \widetilde{d}^n,\nabla \bar{d}) ,\quad \forall \, \bar{d}\in H^1(\Omega )^N \end{aligned}$$

and the (quadratic and convex) functional \(F_2: H^1(\Omega )^N \longrightarrow \mathbb {R}\), defined by

$$\begin{aligned} F_2(\bar{d})=\frac{1}{2}\varvec{a_2}(\bar{d},\bar{d} )-\varvec{\tau _2}(\bar{d}) \end{aligned}$$

In (30), the term \(q\, d\) is the Lagrange multiplier associated with the constraint \(|d|=1\). Therefore, (30) is the (strong) saddle-point formulation of the following constrained minimization problem (with non-convex restriction):

Find \(d\in H^1_{l^n}(\Omega )^N\) with \(|d|=1\), such that:

$$\begin{aligned} F_2(d)\le F_2(\bar{d}),\quad \forall \, \bar{d}\in H^1_{l^n}(\Omega )^N\hbox { with } |\bar{d}|=1 , \end{aligned}$$
(31)

where \(H^1_{l^n}(\Omega )^N\) is the affine subspace

$$\begin{aligned} H^1_{l^n}(\Omega )^N=\left\{ d\in H^1(\Omega )^N\;:\; d_{|\partial \Omega }=l^n \right\} . \end{aligned}$$

The augmented Lagrangian formulation combines the advantages of both the Lagrange multiplier method and the penalty method without suffering from disadvantage of either. Moreover, there is no need to increase the penalty parameter to infinity.

Let us introduce the set of point-wise constraint

$$\begin{aligned} C=\left\{ d\;:\; d\in L^2(\Omega )^N;\quad |d|=1\ \text{ a.e. } \text{ in } \Omega \right\} \end{aligned}$$

and its characteristic function

$$\begin{aligned} \chi _C(d)=\left\{ \begin{array}{ll} 0 &{}\text{ if }\ d\in C\\ +\infty &{}\text{ if }\ d\not \in C. \end{array} \right. \end{aligned}$$

Then, the problem (31) is equivalent to

$$\begin{aligned} d\in H^1_{l^n}(\Omega )^N \ \hbox { s.t. }\ F_2(d)+\chi _C(d)\le F_2(\bar{d})+\chi _C(\bar{d}),\quad \forall \bar{d}\in H^1_{l^n}(\Omega )^N. \end{aligned}$$
(32)

We associate with (32) the Augmented Lagrangian functional \(\mathcal {L}_r:H^1_{l^n}(\Omega )^N\times L^2(\Omega )^N\times L^2(\Omega )^N\), defined by

$$\begin{aligned} \mathcal {L}_r(d,e,\mu )=F_2(d)+\chi _C(e)+\frac{r}{2}\left| d-e\right| ^2_{L^2} +(\mu ,d-e), \end{aligned}$$
(33)

with \(r>0\) an “augmentation” parameter. A saddle-point \((d,e,\mu )\) of (33), can be approximated by a (standard) Uzawa-type algorithm of the form (\(\mu ^{(0)}\) given):

  1. 1.

    Given \(\mu ^{(\ell )}\), find \((d^{(\ell )},e^{(\ell )})\) such that

    $$\begin{aligned} \mathcal {L}_r(d^{(\ell )},e^{(\ell )},\mu ^{(\ell )})\le \mathcal {L}_r(\bar{d},\bar{e},\mu ^{(\ell )}),\quad \forall \, (\bar{d},\bar{e})\in (H^1_{l^n})^N\times L^2(\Omega )^N . \end{aligned}$$
  2. 2.

    Update the multiplier

    $$\begin{aligned} \mu ^{(\ell +1)}=\mu ^{(\ell )}+r(d^{(\ell )}-e^{(\ell )}). \end{aligned}$$

For obvious decomposition properties, we prefer the following (Uzawa) block-relaxation type algorithm [4]. Starting from \((e^{(0)},\mu ^{(0)})\in L^2(\Omega )^N\times L^2(\Omega )^N\) (\(e^{(0)}=\mu ^{(0)}=d^{n-1}\)), we compute successively \(d^{(\ell +1)}\), \(e^{(\ell +1)}\) and \(\mu ^{(\ell +1)}\) as follows:

$$\begin{aligned}&d^{{(\ell +1)}}\in (H^1_{l^n})^N,\quad \mathcal {L}_r(d^{{(\ell +1)}},e^{(\ell )},\mu ^{(\ell )})\le \mathcal {L}_r(\bar{d},e^{(\ell )},\mu ^{(\ell )}),\quad \forall \,\bar{d}\in (H^1_{l^n})^N, \end{aligned}$$
(34)
$$\begin{aligned}&e^{{(\ell +1)}}\in L^2(\Omega )^N,\quad \mathcal {L}_r(d^{{(\ell +1)}},e^{{(\ell +1)}},\mu ^{(\ell )})\le \mathcal {L}_r(d^{{(\ell +1)}},\bar{e},\mu ^{(\ell )}),\quad \forall \, \bar{e}\in L^2(\Omega )^N,\quad \end{aligned}$$
(35)
$$\begin{aligned}&\mu ^{(\ell +1)}=\mu ^{(\ell +1)}+r(d^{{(\ell +1)}}-e^{{(\ell +1)}}).\quad \end{aligned}$$
(36)

Obviously, the discrete approximation space for \(e^{(\ell )}\) and \(\mu ^{(\ell )}\) will be the same as for the director field \(d^{(\ell )}\).

Taking into account some simplifications, (34)–(36) lead to Algorithm 3, where implementation of (35) and (36) will be made explicitly. Moreover, the vectorial problem (37) of Algorithm 3 is decoupled by components.

6 Numerical Experiments

We assume that \(\Omega \) is a \(2D\) polygonal domain which can be entirely triangulated by a family \(\mathfrak {T}_{h}\) furnished by a bigger family \(\mathfrak {T}_{2h}\) dividing each triangle of \(\mathfrak {T}_{2h}\) into four triangles by means of the edge-midpoints. Finite element spaces for \((\widetilde{u}_h , \widetilde{d}_h)\), \((u_h,p_h,w_h)\) and \((d_h,e_h,\mu _h)\) are chosen as in Fig. 1, where all approximations are over \(\mathfrak {T}_{h}\) except for pressure which is approximated in \(\mathfrak {T}_{2h}\) (this approximation for the velocity/pressure is called \(P_1\)-iso-\(P_2/P_1\) which is known to satisfy the Babuska-Brezzi inf-sup condition [8]).

Fig. 1
figure 1

Finite element spaces

figure c

All numerical results were carried out using uniform meshes of the square \(\Omega =(0,1)^2\) and vectorized Matlab codes [13]. As linear solver, we use the generalized minimum residual method (gmres) for the non symmetric systems of Algorithm 1 and the preconditioned conjugate gradient method (pcg) for symmetric (positive definite) systems (i.e. all linear systems in Algorithms 2 and 3). The preconditioner matrices are obtained by incomplete factorizations.

6.1 Test Case with Exact Stationary Solution

We present, in this subsection, computations on a test case with known solution, proposed by Prohl [17]. Contrary to [17], now all numerical simulations are carried out without removing the convection term in Eq. (1). The constants \(\lambda \), \(\nu \) and \(\gamma \) are set to unity, and we adjust right-hand sides in (1)–(3) and (5) such that the following functions be an exact solution:

$$\begin{aligned} u= & {} \left( \begin{array}{c}x^2(1-x)^2(2y-6y^2+4y^3)\\ -y^2(1-y)^2(2x-6x^2+4x^3) \end{array} \right) ,\end{aligned}$$
(38)
$$\begin{aligned} p= & {} x^2-\dfrac{1}{3}, \end{aligned}$$
(39)
$$\begin{aligned} d= & {} \left( \begin{array}{c}\dfrac{1}{2}x (1-\dfrac{1}{4}x^2)^{1/2}\end{array} \right) . \end{aligned}$$
(40)

The exact solution (38)–(40) is approximated as a stationary solution of the corresponding evolution problem, using the time-stepping scheme (7)–(8), (9)–(10), with initialization equal to zero. We assume that a stationary solution is reached if the relative \(L^2(\Omega )\)-error for \((u_h,p_h,d_h)\) is less than \(10^{-8}\). The time step is taken as \(k=0.001\). Tolerance parameter \(\varepsilon \) for the iterative algorithms (Algorithms 1, 2 and 3) is set to \(\varepsilon =10^{-6}\).

The augmented Lagrangian Algorithm 3 is very sensitive to the choice of the augmentation parameter \(r\). In our simulations, we assume that

$$\begin{aligned} r=\alpha \, \frac{h}{k}, \end{aligned}$$
(41)

where \(h\) is the mesh size and \(k\) the time step. We make this (empirical) choice to make the augmentation parameter independent from the mesh size. Figure 2 shows the average number of iterations in Algorithm 3 (required to reach the stationary state) versus the augmentation parameter \(r\), using the mesh size \(h=1/16\). We can notice that the average number of iterations in Algorithm 3 is large for small values of \(r\) (\(r<100\), i.e. \(\alpha <15\)). For sufficiently large values of \(r\) (\(\alpha >400\)), the average number of iterations in Algorithm 3 is between \(5\) and \(6\). Note that large values of \(r\) can lead to numerical instabilities (zero pivots can appear during complete or incomplete factorizations). Table 1 shows that, with (41) for \(\alpha =500\), the average number of iterations in Algorithm 3 is virtually independent from the mesh size.

Fig. 2
figure 2

Average number of iterations in Algorithm 3 versus the augmentation parameter \(r\)

To reduce the number of unnecessary iterations in Algorithm 3, we have computed the min and max values for \(|d_h|\) using several values of the tolerance \(\varepsilon \). The results are summarized in Table 2. We can notice that we do not need high accuracy in Algorithm 3. Indeed, according to the mesh size, the norm of the director field can be considered as satisfactory as soon as \(\varepsilon =10^{-2}\).

Table 3 displays the \(L^2(\Omega )\) and \(H^1(\Omega )\)-errors for \((u_h,p_h,d_h)\), which confirms numerically the convergence of the proposed scheme with respect to the mesh size \(h\).

Table 1 Average number of iterations in Algorithm 3 for various mesh sizes, with \(r=500\, h/k\)
Table 2 Min and max values for \(|d_h|\) with repect to \(\varepsilon \) in Algorithm 3, \(h=1/32\)
Table 3 \(L^2(\Omega )\) and \(H^1(\Omega )\)-errors towards the stationary solution (38)–(40)

6.2 Test Case with Exact Time-Dependent Solution

Again, the constants \(\lambda \), \(\nu \) and \(\gamma \) are set to unity and we adjust right-hand sides in (1)–(3) and (5)–(6) such that the exact solution is (cf. Prohl [17]):

$$\begin{aligned} u= & {} (1+t^3)\left( \begin{array}{c}x^2(1-x)^2(2y-6y^2+4y^3)\\ -y^2(1-y)^2(2x-6x^2+4x^3) \end{array} \right) ,\\ d= & {} \left( \begin{array}{c}tx\\ (1-t^2x^2)^{1/2}\end{array} \right) ,\\ p= & {} t(x^2-\frac{1}{3}). \end{aligned}$$

Tolerance parameter \(\varepsilon \) for the iterative algorithms (Algorithms 1, 2 and 3) are set to \(\varepsilon =10^{-6}\). As in the previous Section, we take the penalty parameter in Algorithm 3 as \(r=\alpha \,h/k\). Figure 3 shows the average number of iterations in Algorithm 3 versus the augmentation parameter \(r\) for \(h=1/16\) and two time steps: \(k=1/10\) and \(k=1/160\). One can notice that for \(k=1/10\), the number of iterations in Algorithm 3 is lower than 10 if \(\alpha >3\times 10^4\). In contrast, for \(k=1/160\), the number of iterations in Algorithm 3 is about 5-6 if \(\alpha >50\). We can conclude that if the time step is not small enough, \(\alpha \) must be chosen large. This property is illustrated in Table 4. For \(k=1/160\), the number of iterations is virtually independent of the mesh size while it is decreasing with respect to the mesh size for \(k=1/10\).

Fig. 3
figure 3

Average number of iterations in Algorithm 3 versus the augmentation parameter \(r\), for \(k=1/10\) (discontinuous line) and \(k=1/160\) (continuous line), and \(h=1/16\)

Table 4 Average number of iterations in Algorithm 3 for \(k=1/10\) and \(k=1/160\), with \(r=3000\, h/k\)

Table 5 displays the \(L^2(\Omega )\) and \(H^1(\Omega )\)-errors at \(t=0.5\) for \(u_h\), \(p_h\) and \(d_h\) and confirms numerically the convergence of the proposed scheme with respect to the time step \(k\). We notice that the approximation of the pressure is better in the stationary problem than in the evolution case.

Table 5 \(L^2(\Omega )\) and \(H^1(\Omega )\)-errors at \(t=0.5\) and time-steps \(k=0.1\times 2^{1-\ell }\) (\(h=1/256\))

6.3 Liquid Crystals on a Square Slab

We consider a test problem, derived from [5], with \(\Omega =(0,\, 1)^2\), \(f=0\), \((\gamma ,\nu ,\lambda )=(1,1,10^{-6})\) and the Dirichlet boundary conditions \(u=0\) and \(d=(\cos (p\theta ),\sin (p\theta ))\), where \(p\) is an integer, \(\cos \theta =(x-1/2)/r\), \(\sin \theta =(y-1/2)/r\) and \(r=((x-1/2)^2+(y-1/2)^2)^{1/2}\) for any \((x,y)\) on the boundary. In fact, integer \(p\) is the number of cycles given by the director boundary data. The initial values \(u_0\) and \(d_0\) have the same formulas except that \((x,y)\) is taken in the whole domain \(\Omega \).

The time step is \(k=0.001\), the mesh size is \(h=1/32\) and, after some tests, we take the augmentation parameter as \(r=320\, h/k\). In order to reduce the number of unnecessary iterations in Algorithm 3, we choose the tolerance in the augmented Lagrangian Algorithm 3 as \(\varepsilon =10^{-4}\). In the other iterative algorithms the tolerance is \(\varepsilon =10^{-6}\). We assume that a stationary solution is reached if the \(L^2(\Omega )\)-error for \((u_h,d_h,p_h)\) is less than \(10^{-5}\) and the corresponding time is denoted by \(t_{stat}\).

Figures 4, 5, 6, and 7 depict the reached stationary director fields. Note that for \(p=1\), \(2\), \(3\) and \(4\), then one, two, three and four singularities are obtained, respectively. We have also computed the stationary director fields for \(p=5\), \(6\), \(7\) and \(8\). As was pointed out in [5], it seems hard to predict the number of point singularities for \(p\ge 7\). Notice that, our results for \(p>1\) are rather different from those of [5] from a qualitative point of view, because pictures of director vector given in [5] and in Figs. 4, 5, 6, and 7 are different, and also from a quantitative one, because for instance for \(p=2\) we obtain two point-singularities while three point-singularities are reached in [5]. Nevertheless, the computations of this paper are not fully comparable to those obtained in [5] where a liquid crystal model involving only the director vector is considered, while our results are obtained for a coupled fluid/director field model.

Fig. 4
figure 4

Director field on a square liquid crystal slab for \(p=1\), \(t_{stat}=0.143\)

Fig. 5
figure 5

Director field on a square liquid crystal slab for \(p=2\), \(t_{stat}=0.229\)

Fig. 6
figure 6

Director field on a square liquid crystal slab for \(p=3\), \(t_{stat}=0.253\)

Finally, Table 6 shows the average number of iterations in Algorithm 3 versus \(p\).

Fig. 7
figure 7

Director field on a square liquid crystal slab for \(p=4\), \(t_{stat}=0.609\)

Table 6 Average number of iterations in Algorithm 3 versus \(p\), with \(r=320\, h/k\)

7 Conclusion

We have designed a fully splitting and decoupled in time linear algorithm for nematic liquid crystal flows with explicit treatment of the unitary constraint for the director field by an augmented Lagrangian technique. This algorithm allows us to use only \(P_1\) finite elements in space, choosing the stable pair \(P_1\)-iso \(P_2/P_1\) for the velocity-pressure approximation.

We study the numerical behavior of the scheme, observing that the fixed-point iterative procedure (19)–(20) works well, because the convergence criterion (21) is satisfied after few (\(\approx \) 4–5) iterations. Moreover, since the augmented Lagrangian Algorithm 3 is sensitive with respect to the augmentation parameter \(r\), we propose an empirical rule for choosing this parameter depending on the quotient of mesh size over time step. Nevertheless, how to make an automatic choice of the optimal value of this augmentation parameter in Algorithm 3 is still an open question.