It is shown that the simple Onsager second-virial approximation of density
functional theory can successfully describe the orientational structure of
a Gay-Berne film confined between aligning plates. The theory takes as inpu
t the density profile as determined by computer simulation and semi-quantit
atively reproduces the variation in the nematic order parameter throughout
the film,at different temperatures and for different surface potential stre
ngths, without any adjustable parameters. In this context the validity of a
n earlier analytical approach is discussed where the density, order paramet
er and tilt angle profiles were assumed to be step functions.