model-related functions moved to fea_model structure