class_docstr: Abstract class for body type objects.
class_docstr_tok: ["Abstract","class","for","body","type","objects","."]
code: def __init__(self, name, masscenter=None, mass=None):
      # Note: If frame=None, no auto-generated frame is created, because a
      # Particle does not need to have a frame by default.
      if not isinstance(name, str):
          raise TypeError("Supply a valid name.")
      self._name = name
      if mass is None:
          mass = Symbol(f"{name}_mass")
      if masscenter is None:
          masscenter = Point(f"{name}_masscenter")
      self.mass = mass
      self.masscenter = masscenter
      self.potential_energy = 0
      self.points = []
  
file_path: sympy/sympy/physics/mechanics/body_base.py
imports: from abc import ABC, abstractmethod
  from sympy import Symbol, sympify
  from sympy.physics.vector import Point
label_desc: Use image node_id 1 to create a new BodyBase object from inherited base classes: ABC with example: obj = BodyBase(name, masscenter, mass)