To generalize cDFT to more porous materials, the cDFT method is extended to nonorthorhombic unit cells. The unit cell is discretized along its skewed axes and a coordinate transform is applied to obtain Cartesian coordinates, which are required to calculate distances for the external potential. In cDFT, the skewness of the coordinate system also needs to be accounted for when evaluating the (non-local) Helmholtz energy functional.