Mathematical research solves industrial problems about clean energy