parameters: (self, system, verbose=False)
docstring: Creates electrostatic short-range exclusion bonds for global exclusion
          between Drude particles and core charges and adds the bonds to the cores.
          Has to be called once after all Drude particles have been created.
  
          Parameters
          ----------
  
          system : :class:`espressomd.system.System`
          verbose: :obj:`bool`
              Turns on verbosity.
docstring_summary: Creates electrostatic short-range exclusion bonds for global exclusion
          between Drude particles and core charges and adds the bonds to the cores.
          Has to be called once after all Drude particles have been created.
docstring_tokens: Creates electrostatic short - range exclusion bonds for global exclusion between Drude particles and core charges and adds the bonds to the cores . Has to be called once after all Drude particles have been created .
function: def setup_and_add_drude_exclusion_bonds(self, system, verbose=False):
          """
          Creates electrostatic short-range exclusion bonds for global exclusion
          between Drude particles and core charges and adds the bonds to the cores.
          Has to be called once after all Drude particles have been created.
  
          Parameters
          ----------
  
          system : :class:`espressomd.system.System`
          verbose: :obj:`bool`
              Turns on verbosity.
  
          """
  
          # All Drude types need...
          for td in self.drude_type_list:
  
              # ...exclusions with core
              qd = self.drude_dict[td]["q"]  # Drude charge
              qc = self.drude_dict[td]["qc"]  # Core charge
              subtr_sr_bond = interactions.BondedCoulombSRBond(
                  q1q2=-qd * qc)
              system.bonded_inter.add(subtr_sr_bond)
              self.drude_dict[td]["subtr_sr_bonds_drude-core"] = subtr_sr_bond
              if verbose:
                  print(
                      f"Added drude-core SR exclusion bond {subtr_sr_bond} for drude {qd} <-> core {qc} to system")
  
          for drude_id in self.drude_id_list:
              core_id = self.core_id_from_drude_id[drude_id]
              pd = system.part.by_id(drude_id)
              pc = system.part.by_id(core_id)
              bond = self.drude_dict[pd.type]["subtr_sr_bonds_drude-core"]
              pc.add_bond((bond, drude_id))
              if verbose:
                  print(
                      f"Added drude-core SR bond {bond} between ids {drude_id} and {core_id}")
function_tokens: def setup_and_add_drude_exclusion_bonds ( self , system , verbose = False ) : # All Drude types need... for td in self . drude_type_list : # ...exclusions with core qd = self . drude_dict [ td ] [ "q" ] # Drude charge qc = self . drude_dict [ td ] [ "qc" ] # Core charge subtr_sr_bond = interactions . BondedCoulombSRBond ( q1q2 = - qd * qc ) system . bonded_inter . add ( subtr_sr_bond ) self . drude_dict [ td ] [ "subtr_sr_bonds_drude-core" ] = subtr_sr_bond if verbose : print ( f"Added drude-core SR exclusion bond {subtr_sr_bond} for drude {qd} <-> core {qc} to system" ) for drude_id in self . drude_id_list : core_id = self . core_id_from_drude_id [ drude_id ] pd = system . part . by_id ( drude_id ) pc = system . part . by_id ( core_id ) bond = self . drude_dict [ pd . type ] [ "subtr_sr_bonds_drude-core" ] pc . add_bond ( ( bond , drude_id ) ) if verbose : print ( f"Added drude-core SR bond {bond} between ids {drude_id} and {core_id}" )