Materials and energy balances are some of the most important tools for analyzing processes for the food industry. In our paper we are trying to establish a connection path between mathematics, computer science and chemistry. The analysis using Petri nets has become a very common technique for modeling specifications and for the evaluation of systems' performances. Petri nets can offer an intuitive approach, use formal techniques and provide some graphical description methods.