def new_instance_of_mpiamrvac_code(number_of_workers=1): from amuse.community.mpiamrvac.interface import MpiAmrVac #result=MpiAmrVac(number_of_workers=number_of_workers) #, redirection="none") result=MpiAmrVac(mode="2d", number_of_workers=self.number_of_workers) result.set_parameters_filename(result.default_parameters_filename) result.initialize_code() result.parameters.maximum_number_of_grid_levels = 3 # result.parameters.spatial_discretization_method = 'tvdmu' # result.parameters.predictor_step_discretization_method = 'tvdmu' # result.parameters.entropy_type = 'powell' # result.parameters.courant_number = 0.8 # result.parameters.x_boundary_conditions = ("cont","cont") # result.parameters.y_boundary_conditions = ("cont","cont") # result.parameters.z_boundary_conditions = ("cont","cont") result.parameters.length_x = 1 | length result.parameters.length_y = 1 | length result.parameters.length_z = 1 | length result.parameters.x_boundary_conditions = ("periodic","periodic") result.parameters.y_boundary_conditions = ("periodic","periodic") result.parameters.z_boundary_conditions = ("periodic","periodic") return result
def new_instance_of_mpiamrvac_code(self): from amuse.community.mpiamrvac.interface import MpiAmrVac result = MpiAmrVac(mode="2d", number_of_workers=self.number_of_workers, debugger="xterm") result.set_parameters_filename(result.default_parameters_filename) result.initialize_code() return result
def new_instance_of_mpiamrvac_code(self): result = MpiAmrVac( number_of_workers=self.number_of_workers, **self.hydro_code_options) result.set_parameters_filename(result.default_parameters_filename) result.initialize_code() return result
def new_instance_of_mpiamrvac_code(self): raise Exception("MPIAMRVAC does not yet have support for detailed boundaries in amuse") from amuse.community.mpiamrvac.interface import MpiAmrVac result=MpiAmrVac(mode="2d", number_of_workers=self.number_of_workers, debugger="xterm") result.set_parameters_filename(result.default_parameters_filename) result.initialize_code() return result
def new_instance_of_mpiamrvac_code(number_of_workers=1): from amuse.community.mpiamrvac.interface import MpiAmrVac #result=MpiAmrVac(number_of_workers=number_of_workers) #, redirection="none") result = MpiAmrVac(mode="2d", number_of_workers=number_of_workers) result.set_parameters_filename(result.default_parameters_filename) result.initialize_code() result.parameters.maximum_number_of_grid_levels = 3 # result.parameters.spatial_discretization_method = 'tvdmu' # result.parameters.predictor_step_discretization_method = 'tvdmu' # result.parameters.entropy_type = 'powell' # result.parameters.courant_number = 0.8 # result.parameters.x_boundary_conditions = ("cont","cont") # result.parameters.y_boundary_conditions = ("cont","cont") # result.parameters.z_boundary_conditions = ("cont","cont") result.parameters.length_x = 1 | length result.parameters.length_y = 1 | length result.parameters.length_z = 1 | length result.parameters.x_boundary_conditions = ("periodic", "periodic") result.parameters.y_boundary_conditions = ("periodic", "periodic") result.parameters.z_boundary_conditions = ("periodic", "periodic") return result
def new_instance_of_mpiamrvac_code(self): raise Exception( "MPIAMRVAC does not yet have support for detailed boundaries in amuse") from amuse.community.mpiamrvac.interface import MpiAmrVac result = MpiAmrVac( mode="2d", number_of_workers=self.number_of_workers, debugger="xterm") result.set_parameters_filename(result.default_parameters_filename) result.initialize_code() return result
def new_instance_of_mpiamrvac_code(self): from amuse.community.mpiamrvac.interface import MpiAmrVac result=MpiAmrVac(number_of_workers=self.number_of_workers) #, redirection="none") result.set_parameters_filename(result.default_parameters_filename) result.initialize_code() result.parameters.maximum_number_of_grid_levels = 3 result.parameters.spatial_discretization_method = 'tvdmu' result.parameters.predictor_step_discretization_method = 'tvdmu' result.parameters.entropy_type = 'powell' result.parameters.courant_number = 0.8 result.parameters.x_boundary_conditions = ("cont","cont") result.parameters.y_boundary_conditions = ("cont","cont") result.parameters.z_boundary_conditions = ("cont","cont") return result