Download a design file¶
In this example we will demonstrate how to download a design file from the Breathe Design. These parameter set can later be used in Breathe Model to run more advanced battery or pack simulations.
In [3]:
Copied!
from breathe_design import api_interface as api
from breathe_design import api_interface as api
In [4]:
Copied!
base_params = api.get_design_parameters("Molicel P45B")
base_params = api.get_design_parameters("Molicel P45B")
In [5]:
Copied!
designs = [
{"designName": "Lower NP", "NPratio": base_params["NPratio"] * 0.95},
{"designName": "Higher NP", "NPratio": base_params["NPratio"] * 1.05},
]
designs = [
{"designName": "Lower NP", "NPratio": base_params["NPratio"] * 0.95},
{"designName": "Higher NP", "NPratio": base_params["NPratio"] * 1.05},
]
In [6]:
Copied!
base_format = api.get_battery_format("Molicel P45B")
base_format = api.get_battery_format("Molicel P45B")
In [7]:
Copied!
smaller_format = api.get_updated_format(
base_battery="Molicel P45B",
name="smaller_format",
height_mm=0.9 * base_format["height_mm"],
)
smaller_format = api.get_updated_format(
base_battery="Molicel P45B",
name="smaller_format",
height_mm=0.9 * base_format["height_mm"],
)
You can save both cells with design as well as format changes. You can now use your virtual designs to run more advanced battery or pack simulations with Breathe Model. You can request access Breathe Model by going to our website: https://www.breathebatteries.com/
In [8]:
Copied!
api.download_designs(
base_battery="Molicel P45B",
designs=designs,
formats=[smaller_format],
output_tag="design",
)
api.download_designs(
base_battery="Molicel P45B",
designs=designs,
formats=[smaller_format],
output_tag="design",
)