I'm trying to create a custom block in Simscape that convert energy from pressurized water into a torque. Here is my code:
component pelton_turbine
% Ce composant calcule le couple généré par l'eau sur la turbine.
% 🔹 Déclaration des ports
nodes
H = foundation.hydraulic.hydraulic; % Port...