G Gan Gan functional theory simulation