Ejemplo n.º 1
0
 def allocateBCs(self, velname='_bc', maskname='bc_mask'):
     self.vel_bc = util.standard2dVelocityVec(
         self.grid,
         name=velname,
         desc='SSA velocity boundary condition',
         intent='intent')
     self.bc_mask = util.standardBCMask(self.grid, name=maskname)
Ejemplo n.º 2
0
 def write(self,filename):
   SSATestCase.write(self,filename)
   
   grid=self.grid
   exact = util.standard2dVelocityVec(grid,name="_exact",desc="SSA exact solution",intent="diagnostic")
   exact.begin_access()
   for (i,j) in grid.points():
     exact[i,j] = self.exactSolution(i,j,grid.x[i],grid.y[j])
   exact.end_access();
   exact.write(filename);
Ejemplo n.º 3
0
    def write(self, filename):
        SSATestCase.write(self, filename)

        grid = self.grid
        exact = util.standard2dVelocityVec(grid,
                                           name="_exact",
                                           desc="SSA exact solution",
                                           intent="diagnostic")
        exact.begin_access()
        for (i, j) in grid.points():
            exact[i, j] = self.exactSolution(i, j, grid.x[i], grid.y[j])
        exact.end_access()
        exact.write(filename)
Ejemplo n.º 4
0
 def allocateBCs(self,velname='_bc',maskname='bc_mask'):
   self.vel_bc     = util.standard2dVelocityVec( self.grid, name=velname, desc='SSA velocity boundary condition',intent='intent' )
   self.bc_mask    = util.standardBCMask( self.grid,name=maskname )