OpenXAL is an open source multi-purpose accelerator physics software platform based on a pure Java open source development environment used for creating accelerator physics applications, scripts and services. Currently, the software has been used with an ellipsoidal (bunched) beam to account for space-charge effects. Applications developed so far for ESS, such as the Virtual Machine for the ESS Low Energy Beam Transport (LEBT) section, would profit from a DC beam description. In this paper, the space-charge component for a continuous beam is derived taking into account beams with different transverse charge distributions (uniform, gaussian, etc). The implementation in OpenXAL and a comparison with other simulation codes is also presented.