|
| | test-density-calculation.parser = argparse.ArgumentParser(description="SPH benchmarking script") |
| | Parse user input.
|
| |
| | test-density-calculation.dest |
| |
| | test-density-calculation.type |
| |
| | test-density-calculation.int |
| |
| | test-density-calculation.default |
| |
| | test-density-calculation.help |
| |
| | test-density-calculation.action |
| |
| | test-density-calculation.required |
| |
| | test-density-calculation.choices |
| |
| | test-density-calculation.args = parser.parse_args() |
| |
| list | test-density-calculation.project_namespace = ["benchmarks", "exaparty", "densityTest"] |
| | Generate ExaParty project.
|
| |
| | test-density-calculation.dimensions = args.dimensions |
| |
| | test-density-calculation.project |
| |
| int | test-density-calculation.HYDRO_DIMENSIONS = 1 |
| |
| | test-density-calculation.HYDRO_PART_NUMBER = str(args.particle_number) |
| | Set parameters for the SPH simulation If no parameters are passed to the exaparty project, it initializes with default values.
|
| |
| | test-density-calculation.particle |
| |
| | test-density-calculation.GLOBAL_TIME_STEP_SIZE = args.timestep_size |
| |
| | test-density-calculation.CFL_CONSTANT = particle._cfl_factor |
| |
| list | test-density-calculation.gamma_hydro_list = [str(5 / 3), str(7 / 5), str(4 / 3), str(2 / 1)] |
| |
| list | test-density-calculation.gamma_hydro_list_symbols |
| |
| list | test-density-calculation.GAMMA = gamma_hydro_list[0] |
| |
| list | test-density-calculation.GAMMA_HYDRO_SYMBOL = gamma_hydro_list_symbols[0] |
| |
| | test-density-calculation.kernel = args.kernel |
| |
| | test-density-calculation.KERNEL_SYMBOL = sphtools.sph_kernel_macro_name[kernel] |
| |
| | test-density-calculation.KERNEL_SUPPORT_RAD = sphtools.sph_kernel_H_over_h[HYDRO_DIMENSIONS - 1][kernel] |
| |
| int | test-density-calculation.hydro_h_max = args.cell_size / 2 |
| |
| | test-density-calculation.h_hydro_max |
| |
| | test-density-calculation.particle_set = project.add_particle_species(particle) |
| |
| | test-density-calculation.build_mode = peano4.api.output.CompileMode.ASSERTS |
| |
| list | test-density-calculation.offset = [0, 0, 0] |
| |
| list | test-density-calculation.domain_size = [1, 1, 1] |
| |
| list | test-density-calculation.periodic_boundary_conditions = [False, False, False] |
| |
| | test-density-calculation.min_end_time |
| |
| | test-density-calculation.max_end_time |
| |
| | test-density-calculation.first_plot_time_stamp |
| |
| | test-density-calculation.time_in_between_plots |
| |
| | test-density-calculation.periodic_BC |
| |
| | test-density-calculation.plotter_precision |
| |
| | test-density-calculation.ICs = exaparty.api.scenario.TestDensityCalculation() |
| | Initialisation snippet for the particle.
|
| |
| | test-density-calculation.initialisation_snippet = ICs.initialisation_snippet |
| |
| | test-density-calculation.Npart = args.particle_number |
| |
| | test-density-calculation.coords = np.zeros((Npart**HYDRO_DIMENSIONS, 3)) |
| |
| | test-density-calculation.endpoint |
| |
| | test-density-calculation.x = np.linspace(offset, 1, Npart, endpoint=False) |
| |
| | test-density-calculation.y = np.linspace(offset, 1, Npart, endpoint=False) |
| |
| | test-density-calculation.xp = xp.reshape((np.prod(xp.shape),)) |
| |
| | test-density-calculation.yp = yp.reshape((np.prod(yp.shape),)) |
| |
| | test-density-calculation.particle_plotter |
| | Set up the plotter.
|
| |
| | test-density-calculation.peano4_project = project.generate_Peano4_project(verbose=args.verbose) |
| | Generate plain Peano 4 project.
|
| |
| list | test-density-calculation.dirs = ["vertexdata/", "repositories/", "globaldata/", "observers/"] |
| | Cleanup and compilation.
|
| |
| | test-density-calculation.overwrite |
| |
| | test-density-calculation.Always |
| |
| | test-density-calculation.throw_away_data_after_generation |
| |
| | test-density-calculation.make_clean_first |
| |
| | test-density-calculation.True |
| |
| | test-density-calculation.number_of_parallel_builds |
| |
| list | test-density-calculation.output_files |
| |