1D simulation models for aftertreatment components