3 Modeling carbon-based smart materials