/[escript]/trunk/downunder/py_src/domainbuilder.py
ViewVC logotype

Diff of /trunk/downunder/py_src/domainbuilder.py

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

revision 4213 by caltinay, Tue Feb 19 01:16:29 2013 UTC revision 4287 by caltinay, Thu Mar 7 05:26:44 2013 UTC
# Line 203  class DomainBuilder(object): Line 203  class DomainBuilder(object):
203    
204      def setBackgroundMagneticFluxDensity(self, B):      def setBackgroundMagneticFluxDensity(self, B):
205          """          """
206          Sets the background magnetic flux density B=(B_r, B_theta, B_phi)          Sets the background magnetic flux density B=(B_North, B_East, B_Vertical)
207          """          """
208          self.__background_magnetic_field=B          self.__background_magnetic_field=B
209    
# Line 214  class DomainBuilder(object): Line 214  class DomainBuilder(object):
214          B = self.__background_magnetic_field          B = self.__background_magnetic_field
215          # this is for Cartesian (FIXME ?)          # this is for Cartesian (FIXME ?)
216          if self.__dim<3:          if self.__dim<3:
217              return np.array([-B[2], -B[0]])              return np.array([B[0], B[2]])
218          else:          else:
219              return np.array([-B[1], -B[2], -B[0]])              return np.array(B)
220    
221      def getSetDensityMask(self):      def getSetDensityMask(self):
222          """          """

Legend:
Removed from v.4213  
changed lines
  Added in v.4287

  ViewVC Help
Powered by ViewVC 1.1.26