The mathematical model of the solenoid valve under varying temperatures is constructed to investigate itsperformance and enhance heat dissipation balance. The relationship between temperature and electromagnetic force isdetermined. Electrothermal coupling simulation using COMSOL is conducted, optimizing the outer diameter and lengthstructure parameters of the coil. It is established that the heat dissipation of the coil is influenced by its outer diameter.Subsequently, based on optimized coil structure parameters, an orthogonal experimental design method combinedwith Ansys Maxwell is employed for simulation solution analysis to study the impact of structural parameters such aslength, position, front and rear angles of the magnetic barrier ring in the iron core, armature length, and through-holesize on electromagnetic force. Optimal structural parameters are identified. Results indicate a decrease in steady-stateelectromagnet temperature by 3–4℃, an increase in the initial electromagnetic force by 32.63%, and a rise in the maximumelectromagnetic force by 27.10%.