code: def _new_object(self, objtype, name=None):
          r
          if objtype.startswith('net'):
              obj = openpnm.network.GenericNetwork(project=self, name=name)
          elif objtype.startswith('geo'):
              obj = openpnm.geometry.GenericGeometry(project=self, name=name)
          elif objtype.startswith('pha'):
              obj = openpnm.phases.GenericPhase(project=self, name=name)
          elif objtype.startswith('phy'):
              obj = openpnm.physics.GenericPhysics(project=self, name=name)
          elif objtype.startswith('alg'):
              obj = openpnm.algorithm.GenericAlgorithm(project=self, name=name)
          else:
              obj = openpnm.core.Base(project=self, name=name)
          return obj
docs: r"""