Modeling and Simulation of Functionalized Materials for Additive Manufacturing and 3D Printing: Continuous and Discrete Media