This paper presents a sectional Eulerian aerosol model for size-dependent droplet deposition at walls of the domain, driven by both diffusion and inertia. The model is based on the internally mixed assumption and employs the formulation for compressible aerosols. It is validated in a bent pipe geometry against models and experimental and numerical data from literature. Good agreement is found in both the diffusion and inertial deposition regimes. To improve the overprediction of inertial deposition by a boundary treatment that adopts zero-gradient droplet wall velocity, we use a corrected wall velocity, based on an analytical solution of the droplet motion near the wall. In the bent pipe setting the corrected wall velocity is found to reduce the overprediction of deposition and is less sensitive to grid refinement. We also show that refining the computational mesh near the pipe wall improves the predicted deposition efficiency, significantly. Finally, we present a parameter study varying the Reynolds number and the bend curvature. The deposition efficiency curve is recorded for droplet diameters ranging from the nanometer scale to beyond the micrometer scale, which is a unique contribution of this paper. The complete size range is simulated in only one simulation, due to the sectional approach. In the diffusion-dominated regime an increase in Reynolds number leads to a gradual enhancement of deposition. In the inertial regime, where droplet drift dominates deposition, a much stronger dependence on the Reynolds number is found. The dependence of the deposition on the bend curvature is less pronounced. The results shown in this paper establish the role of Eulerian simulation in predicting deposition of aerosol droplets and are useful for understanding size-dependent aerosol deposition in other more complex confined geometries.