Create topsim.lua

Initial commit.