|
| | test_smoothing_length_computation_3D.parser = argparse.ArgumentParser(description="SPH benchmarking script") |
| | Parse user input.
|
| |
| | test_smoothing_length_computation_3D.dest |
| |
| | test_smoothing_length_computation_3D.type |
| |
| | test_smoothing_length_computation_3D.int |
| |
| | test_smoothing_length_computation_3D.default |
| |
| | test_smoothing_length_computation_3D.help |
| |
| | test_smoothing_length_computation_3D.action |
| |
| | test_smoothing_length_computation_3D.choices |
| |
| | test_smoothing_length_computation_3D.args = parser.parse_args() |
| |
| | test_smoothing_length_computation_3D.nneigh = args.nneigh |
| |
| | test_smoothing_length_computation_3D.kernel = args.kernel |
| |
| | test_smoothing_length_computation_3D.h_tol = args.h_tol |
| |
| list | test_smoothing_length_computation_3D.project_namespace = ["tests", "exaparty", "testSML3D"] |
| | Generate ExaParty project.
|
| |
| | test_smoothing_length_computation_3D.project |
| |
| float | test_smoothing_length_computation_3D.cfl_factor = 0.2 |
| |
| float | test_smoothing_length_computation_3D.init_dt = 1.0e-16 |
| |
| list | test_smoothing_length_computation_3D.offset = [0, 0, 0] |
| |
| list | test_smoothing_length_computation_3D.domain_size = [1, 1, 1] |
| |
| list | test_smoothing_length_computation_3D.periodic_boundary_conditions = [False, False, False] |
| |
| str | test_smoothing_length_computation_3D.name = "HydroPart" |
| |
| int | test_smoothing_length_computation_3D.dimensions = 3 |
| |
| int | test_smoothing_length_computation_3D.hydro_dimensions = 3 |
| |
| | test_smoothing_length_computation_3D.particle |
| |
| int | test_smoothing_length_computation_3D.HYDRO_DIMENSIONS = hydro_dimensions |
| | Set parameters for the SPH simulation If no parameters are passed to the exaparty project, it initializes with default values.
|
| |
| | test_smoothing_length_computation_3D.hfile = h5py.File(args.ic_filename, "r") |
| |
| | test_smoothing_length_computation_3D.header = hfile["Header"] |
| |
| | test_smoothing_length_computation_3D.npart = header.attrs["NumPart_ThisFile"][0] |
| |
| | test_smoothing_length_computation_3D.npart_base = header.attrs["NumPart_base"][0] |
| |
| | test_smoothing_length_computation_3D.HYDRO_PART_NUMBER = npart |
| |
| float | test_smoothing_length_computation_3D.GLOBAL_TIME_STEP_SIZE = init_dt |
| |
| float | test_smoothing_length_computation_3D.CFL_CONSTANT = cfl_factor |
| |
| list | test_smoothing_length_computation_3D.gamma_hydro_list = [str(5 / 3), str(7 / 5), str(4 / 3), str(2 / 1)] |
| |
| list | test_smoothing_length_computation_3D.gamma_hydro_list_symbols |
| |
| list | test_smoothing_length_computation_3D.GAMMA = gamma_hydro_list[0] |
| |
| list | test_smoothing_length_computation_3D.GAMMA_HYDRO_SYMBOL = gamma_hydro_list_symbols[0] |
| |
| | test_smoothing_length_computation_3D.KERNEL_SYMBOL = exaparty.api.sphtools.sph_kernel_macro_name[kernel] |
| |
| list | test_smoothing_length_computation_3D.dx = domain_size[0] / npart_base |
| |
| int | test_smoothing_length_computation_3D.hydro_H_max = 4 * dx |
| |
| | test_smoothing_length_computation_3D.hydro_h_max |
| |
| | test_smoothing_length_computation_3D.h_hydro_max |
| |
| | test_smoothing_length_computation_3D.eta_factor |
| |
| | test_smoothing_length_computation_3D.ndim |
| |
| | test_smoothing_length_computation_3D.h_hydro_min |
| |
| | test_smoothing_length_computation_3D.h_max_iterations |
| |
| | test_smoothing_length_computation_3D.h_tolerance |
| |
| | test_smoothing_length_computation_3D.particle_set = project.add_particle_species(particle) |
| |
| | test_smoothing_length_computation_3D.build_mode = peano4.api.output.CompileMode.DEBUG |
| |
| | test_smoothing_length_computation_3D.min_end_time |
| |
| | test_smoothing_length_computation_3D.max_end_time |
| |
| | test_smoothing_length_computation_3D.first_plot_time_stamp |
| |
| | test_smoothing_length_computation_3D.time_in_between_plots |
| |
| | test_smoothing_length_computation_3D.periodic_BC |
| |
| | test_smoothing_length_computation_3D.plotter_precision |
| |
| | test_smoothing_length_computation_3D.particle_plotter |
| | Set up the plotter.
|
| |
| | test_smoothing_length_computation_3D.peano4_project = project.generate_Peano4_project(verbose=args.verbose) |
| | Generate plain Peano 4 project.
|
| |
| list | test_smoothing_length_computation_3D.dirs = ["vertexdata/", "repositories/", "globaldata/", "observers/"] |
| | Cleanup and compilation.
|
| |
| | test_smoothing_length_computation_3D.overwrite |
| |
| | test_smoothing_length_computation_3D.Always |
| |
| | test_smoothing_length_computation_3D.throw_away_data_after_generation |
| |
| | test_smoothing_length_computation_3D.make_clean_first |
| |
| | test_smoothing_length_computation_3D.True |
| |
| | test_smoothing_length_computation_3D.number_of_parallel_builds |
| |
| list | test_smoothing_length_computation_3D.output_files |
| |