Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 5
0
 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 10
0
 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