{ "cells": [ { "cell_type": "markdown", "id": "1b6dcb4d47b19764", "metadata": {}, "source": "# Tutorial 07 - BatteryConfig, battery_config_wrapper" }, { "cell_type": "markdown", "id": "ce6fb4898783429d", "metadata": {}, "source": "## Step 0: Setup the project and prepare the data" }, { "cell_type": "code", "id": "initial_id", "metadata": { "collapsed": true, "ExecuteTime": { "end_time": "2026-06-13T20:50:02.072859600Z", "start_time": "2026-06-13T20:50:01.590234300Z" } }, "source": [ "import pydpeet as eet" ], "outputs": [], "execution_count": 1 }, { "cell_type": "markdown", "id": "4f302be97e66e26c", "metadata": {}, "source": "## Step 1: BatteryConfig" }, { "cell_type": "markdown", "id": "388edc100efeaa2e", "metadata": {}, "source": "A battery Config cotnains the following parameters:" }, { "cell_type": "markdown", "id": "53d6329877493167", "metadata": {}, "source": [ "
\n", "Hint: You can type in \"eet.BatteryConfig.\" to see all other availiable BatteryConfig in most IDEs\n", "
" ] }, { "cell_type": "code", "id": "769306b5d50705c9", "metadata": { "ExecuteTime": { "end_time": "2026-06-13T20:50:02.080019500Z", "start_time": "2026-06-13T20:50:02.073362700Z" } }, "source": [ "eet.BatteryConfig.DEFAULT" ], "outputs": [ { "data": { "text/plain": [ "_BatteryConfigClass(cell_name='Default', c_ref=None, soc_start=0, max_voltage=4.2, min_voltage=2.5, threshold_current=0.075, voltage_intervall=0.01, minimal_current_for_capacity=-1.2, maximal_current_for_capacity=-0.8, min_current_diff=1, max_time_diff=0.5, min_voltage_diff=0, ignore_negative_resistance_values=False)" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "execution_count": 2 }, { "cell_type": "markdown", "id": "2a85f99b7b9c2d5b", "metadata": {}, "source": [ "
\n", "Hint: Use battery_config_wrapper to create your own custom BatteryConfig that overwrites the standard values\n", "
" ] }, { "cell_type": "code", "id": "ddf6f5469fcfb474", "metadata": { "ExecuteTime": { "end_time": "2026-06-13T20:50:02.085833200Z", "start_time": "2026-06-13T20:50:02.080574500Z" } }, "source": [ "eet.battery_config_wrapper(\n", " cell_name=\"Example\",\n", " max_voltage=4.6,\n", " min_voltage=2.4,\n", ")" ], "outputs": [ { "data": { "text/plain": [ "_BatteryConfigClass(cell_name='Example', c_ref=None, soc_start=0, max_voltage=4.6, min_voltage=2.4, threshold_current=0.075, voltage_intervall=0.01, minimal_current_for_capacity=-1.2, maximal_current_for_capacity=-0.8, min_current_diff=1, max_time_diff=0.5, min_voltage_diff=0, ignore_negative_resistance_values=False)" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "execution_count": 3 } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.6" } }, "nbformat": 4, "nbformat_minor": 5 }