/[escript]/trunk/modellib/py_src/geometry.py
ViewVC logotype

Diff of /trunk/modellib/py_src/geometry.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 910 by gross, Thu Nov 23 06:39:39 2006 UTC revision 911 by gross, Tue Dec 5 23:39:39 2006 UTC
# Line 36  class FinleyReader(ParameterSet): Line 36  class FinleyReader(ParameterSet):
36            @return: the domain            @return: the domain
37            @rtype: L{Domain}            @rtype: L{Domain}
38            """            """
39            if not self.__domain:            if self.__domain == None:
40               self.__domain=finley.ReadMesh(self.source.getLocalFileName(),self.integrationOrder)               self.__domain=finley.ReadMesh(self.source.getLocalFileName(),self.integrationOrder)
41               self.trace("mesh read from %s"%self.source)                         self.trace("mesh read from %s"%self.source)          
42            return self.__domain            return self.__domain
# Line 79  class RectangularDomain(ParameterSet): Line 79  class RectangularDomain(ParameterSet):
79             @return: the domain             @return: the domain
80             @rtype: L{Domain}             @rtype: L{Domain}
81             """             """
82             if not self.__domain:             if self.__domain==None:
83                if self.dim==2:                if self.dim==2:
84                     self.domain=finley.Rectangle(n0=self.n[0],\                     self.__domain=finley.Rectangle(n0=self.n[0],\
85                                                  n1=self.n[1],\                                                  n1=self.n[1],\
86                                                  l0=self.l[0],\                                                  l0=self.l[0],\
87                                                  l1=self.l[1],\                                                  l1=self.l[1],\
# Line 151  class UpdateGeometry(Model): Line 151  class UpdateGeometry(Model):
151           """           """
152           self.__reset=False           self.__reset=False
153    
154  class ScalarConstrainer(Model):  class ScalarConstrainerOverBox(Model):
155        """        """
156        Creates a characteristic function for the location of constraints        Creates a characteristic function for the location of constraints
157        for a scalar value and selects the value from an initial value        for a scalar value and selects the value from an initial value
# Line 222  class ScalarConstrainer(Model): Line 222  class ScalarConstrainer(Model):
222            if self.value:            if self.value:
223                self.__value_of_constraint=self.__location_of_constraint*self.value                self.__value_of_constraint=self.__location_of_constraint*self.value
224    
225  class VectorConstrainer(Model):  class VectorConstrainerOverBox(Model):
226        """        """
227        Creates a characteristic function for the location of constraints vector value.        Creates a characteristic function for the location of constraints vector value.
228        In the case that the spatial dimension is two, the arguments front and        In the case that the spatial dimension is two, the arguments front and

Legend:
Removed from v.910  
changed lines
  Added in v.911

  ViewVC Help
Powered by ViewVC 1.1.26