A model oriented to the thermoelectric devices design