Cad Cell#

cad_cell is used to build the CAD object of battery cells

classes:

Cell

class basd.cad.cad_cell.Cell(x_pos: float, y_pos: float, z_pos: float, cell_type: str, dimensions: CellDimensions, rotate: bool = False)[source]#

Cell is the class to build a CAD object for all three cell types (prismatic, cylindrical and pouch)

Variables:
  • x_pos – x position of the cell

  • y_pos – y position of the cell

  • z_pos – z position of the cell

  • data_json – Path to json file with cell dimensions

  • key – identifier of the cell

  • definition – cell definition read from the data_json file

  • rotate – if yes the system is rotated 90 degrees around z-axis

__init__(x_pos: float, y_pos: float, z_pos: float, cell_type: str, dimensions: CellDimensions, rotate: bool = False)[source]#
create_object(alternate: bool = False) Workplane[source]#

create_object builds based on the cell definition the CAD object of the prismatic cell

Parameters:
  • rotate – should enable battery system rotated 90 degrees

  • alternate – rotates the cell 180 degree which is used for a later serial connection

Returns:

workplane object with the prismatic cell on the stack