A Molecular Simulation of A Liquid-crystal Model