Bài báo xem xét vấn đề mô hình hóa Hamilton cổng của các hệ động lực với ứng dụng cho các hệ thống điện mà động lực là affine theo đầu vào điều khiển. Hai mô hình Hamilton có ý nghĩa vật lý được đề xuất và so sánh, biểu diễn thứ nhất được thiết lập với một mạch RLC mắc nối tiếp trong khi biểu diễn thứ hai nhận được với một mạch RLC mắc song song. Vì tiêu tán năng lượng gây ra do điện trở, cả hai mô hình được kết hợp với một hàm Hamilton toàn phương mô tả năng lượng tổng. Điểm thú vị là cấu trúc mạch ảnh hưởng kết quả thiết lập. Mô phỏng số được thực hiện để minh họa các kết quả.This work deals with port-Hamiltonian-based modelling of dynamical systems with application to electrical systems whose dynamics are affine in the control input. Two pH models of physical interest are proposed and compared, the first one is established with a series RLC circuit while the second one is obtained with a parallel RLC circuit. As the energy dissipation is due to the resistor, both models are associated with a quadratic Hamiltonian defining the total energy. Importantly, the circuit structure affects the pH formulation. Numerical simulations are carried out to illustrate the developed results.