A ducted heat exchanger system for a gas turbine engine includes an additive manufactured heat exchanger core with a contoured external and/or internal geometry. A method of additively manufacturing a heat exchanger for a gas turbine engine includes additively manufacturing a core of a heat exchanger to set a ratio of local surface area to flow area to control a pressure drop per unit length along the core.