Computational Macroeconomics for the Open Economy