Exemple #1
0
 def _configure(self):
     """
 Setup members using inventory.
 """
     BoundaryCondition._configure(self)
     self.bcQuadrature = self.inventory.quadrature
     ModuleAbsorbingDampers.db(self, self.inventory.db)
     return
 def _configure(self):
   """
   Setup members using inventory.
   """
   BoundaryCondition._configure(self)
   self.bcQuadrature = self.inventory.quadrature
   ModuleAbsorbingDampers.db(self, self.inventory.db)
   return
    def verifyConfiguration(self):
        """
    Verify compatibility of configuration.
    """
        logEvent = "%sverify" % self._loggingPrefix
        self._eventLogger.eventBegin(logEvent)

        BoundaryCondition.verifyConfiguration(self, self.mesh())
        Integrator.verifyConfiguration(self)
        if self.bcQuadrature.cellDim() != self.mesh().dimension() - 1:
            raise ValueError, "Quadrature scheme and mesh are incompatible.\n" "Dimension for quadrature: %d\n" "Dimension of mesh boundary '%s': %d" % (
                self.bcQuadrature.cellDim,
                self.label(),
                self.mesh().dimension() - 1,
            )
        ModuleAbsorbingDampers.verifyConfiguration(self, self.mesh())

        self._eventLogger.eventEnd(logEvent)
        return
Exemple #4
0
    def verifyConfiguration(self):
        """
    Verify compatibility of configuration.
    """
        logEvent = "%sverify" % self._loggingPrefix
        self._eventLogger.eventBegin(logEvent)

        BoundaryCondition.verifyConfiguration(self, self.mesh())
        Integrator.verifyConfiguration(self)
        if self.bcQuadrature.cellDim() != self.mesh().dimension() - 1:
            raise ValueError, \
                  "Quadrature scheme and mesh are incompatible.\n" \
                  "Dimension for quadrature: %d\n" \
                  "Dimension of mesh boundary '%s': %d" % \
                  (self.bcQuadrature.cellDim,
                   self.label(), self.mesh().dimension()-1)
        ModuleAbsorbingDampers.verifyConfiguration(self, self.mesh())

        self._eventLogger.eventEnd(logEvent)
        return
Exemple #5
0
 def _createModuleObj(self):
     """
 Create handle to corresponding C++ object.
 """
     ModuleAbsorbingDampers.__init__(self)
     return
 def _createModuleObj(self):
   """
   Create handle to corresponding C++ object.
   """
   ModuleAbsorbingDampers.__init__(self)
   return