Text this: Algorithmic foundations for the study of electromagnetic processes in the electric drive of a sealed valve