In order to model plasma interaction with full complexity of the geometry of PFCs, an immersed method to impose boundary conditions has been implemented in the transport code SOLEDGE2D. This penalization technique has proven to properly recover Bohm boundary conditions, including supersonic solutions at the sheath entrance. The role of the ionization source has been taken into account by coupling SOLEDGE2D with the 3D kinetic neutral code EIRENE. Density regimes are properly recovered and major differences between core located and divertor located ionization source regimes are emphasized. One also presents main chamber wall recycling regime simulations that can now be addressed with simulations of the entire edge plasma up to the wall.