Numerical modelling of liquid crystal flows in confined domains