Ejemplo n.º 1
0
 def _configure(self):
   """
   Setup members using inventory.
   """
   try:
     PetscComponent._configure(self)
     ModuleBoundaryCondition.label(self, self.inventory.label)
     self.upDir = map(float, self.inventory.upDir)
     self.perfLogger = self.inventory.perfLogger
   except ValueError, err:
     aliases = ", ".join(self.aliases)
     raise ValueError("Error while configuring boundary condition "
                      "(%s):\n%s" % (aliases, err.message))
Ejemplo n.º 2
0
 def _configure(self):
     """
 Setup members using inventory.
 """
     try:
         PetscComponent._configure(self)
         ModuleBoundaryCondition.label(self, self.inventory.label)
         self.upDir = map(float, self.inventory.upDir)
         self.perfLogger = self.inventory.perfLogger
     except ValueError, err:
         aliases = ", ".join(self.aliases)
         raise ValueError("Error while configuring boundary condition "
                          "(%s):\n%s" % (aliases, err.message))
Ejemplo n.º 3
0
 def initialize(self, totalTime, numTimeSteps, normalizer):
   """
   Initialize boundary condition.
   """
   ModuleBoundaryCondition.initialize(self, self.mesh(), self.upDir)
   return
Ejemplo n.º 4
0
 def initialize(self, totalTime, numTimeSteps, normalizer):
     """
 Initialize boundary condition.
 """
     ModuleBoundaryCondition.initialize(self, self.mesh(), self.upDir)
     return