示例#1
0
 def new_instance_of_capreole_code(self):
     result = Capreole(number_of_workers=self.number_of_workers)
     result.initialize_code()
     self.dimensions_of_mesh = (
         self.number_of_grid_points,
         self.number_of_grid_points,
         3
     )
     return result
示例#2
0
 def new_instance_of_capreole_code(self):
     result=Capreole(number_of_workers=self.number_of_workers)
     result.initialize_code()
     
     result.parameters.x_boundary_conditions = ("reflective","reflective")
     result.parameters.y_boundary_conditions = ("outflow","outflow")
     result.parameters.z_boundary_conditions = ("reflective","reflective")
     
     return result
示例#3
0
 def new_instance_of_capreole_code(self):
     result = Capreole(number_of_workers=self.number_of_workers)
     result.initialize_code()
     self.dimensions_of_mesh = (
         self.number_of_grid_points,
         self.number_of_grid_points,
         3
     )
     return result
示例#4
0
    def new_instance_of_capreole_code(self):
        result = Capreole(number_of_workers=self.number_of_workers)
        result.initialize_code()

        result.parameters.x_boundary_conditions = ("reflective", "reflective")
        result.parameters.y_boundary_conditions = ("outflow", "outflow")
        result.parameters.z_boundary_conditions = ("reflective", "reflective")

        return result
 def new_instance_of_capreole_and_nbody_code(self):
     gridcode=Capreole(number_of_workers=self.number_of_workers)
     gridcode.initialize_code()
     nbodycode = PhiGRAPE(mode="gpu")
     #nbodycode = Octgrav(mode="gpu")
     nbodycode.initialize_code()
     nbodycode.parameters.epsilon_squared = (self.size / (10000.0 * self.number_of_grid_points)) ** 2
     nbodycode.commit_parameters()
     
     result = HydroGridAndNbodyWithAccelerationTransfer(gridcode, nbodycode)
     return result
    def new_instance_of_capreole_and_nbody_code(self):
        gridcode = Capreole(number_of_workers=self.number_of_workers)
        gridcode.initialize_code()
        nbodycode = PhiGRAPE(mode="gpu")
        #nbodycode = Octgrav(mode="gpu")
        nbodycode.initialize_code()
        nbodycode.parameters.epsilon_squared = (
            self.size / (10000.0 * self.number_of_grid_points))**2
        nbodycode.commit_parameters()

        result = HydroGridAndNbodyWithAccelerationTransfer(gridcode, nbodycode)
        return result
示例#7
0
 def new_instance_of_capreole_code(self):
     result = Capreole(number_of_workers=self.number_of_workers)
     self.dimensions_of_mesh = (
         self.number_of_grid_points,
         self.number_of_grid_points,
         3
     )
     result.parameters.gamma = self.gamma
     return result
示例#8
0
 def new_instance_of_capreole_code(self):
     result = Capreole(number_of_workers=self.number_of_workers)
     self.dimensions_of_mesh = (self.number_of_grid_points,
                                self.number_of_grid_points, 4)
     self.nghost = 2
     return result
 def new_instance_of_capreole_code(self):
     result = Capreole(number_of_workers=self.number_of_workers,
                       **self.hydro_code_options)
     result.initialize_code()
     return result
 def new_instance_of_capreole_code(self):
     result=Capreole(number_of_workers=self.number_of_workers, **self.hydro_code_options)
     result.initialize_code()
     return result