UDEC (Universal Distinct Element Code) is a numerical modeling code for advanced geotechnical analysis of soil, rock, and structural support in two dimensions. UDEC simulates the response of discontinuous media (such as jointed rock) that is subject to either static or dynamic loading.

UDEC is a discontinuum code that simulates either the quasi-static or dynamic response to loading of rock media containing multiple, intersecting joint structures. Because it is not limited to a particular type of problem or initial condition, UDEC may be applied to any case where an understanding of the two-dimensional response of such structures is needed. UDEC provides rigid or deformable blocks, multiple material models, full dynamic capability, and high resolution graphics to expedite the modeling process.

Solution parameters may be specified by the user, maximizing the user's control over the duration, extent, and efficiency of the model run. Additional control and customization are available to the user through UDEC's powerful built-in programming language, FISH.