reactor modeling