SMS: Computational macroeconomics for the open economy