Energy Minimization In Nematic Liquid Crystal Systems Driven By Geometric Confinement And Temperature Gradients With Applications In Colloidal Systems