The document summarizes a two-branch parallel RC circuit Simulink model of a lithium polymer battery. The model parameters depend on temperature and state of charge, which are represented using 2D lookup tables. User-defined functions calculate open circuit voltage and internal resistance. A dedicated block autonomously detects charge/discharge transitions and resets the current integrator. Comparisons to experimental data show maximum errors of 3% for dynamic responses and 5% for static discharging responses.