fluidsim.util.console.util

Utilities for benchmarking and profiling (fluidsim.util.bench.util)

Functions

bench(sim, path_dir_results)

Benchmark a simulation run and save the results in a JSON file.

get_path_file(sim, path_dir_results[, name, ext])

Generate a unique filename from simulation object.

init_parser_base(parser)

Initalize argument parser with common arguments for benchmarking analysis and profile console tools.

modif_box_size(params, n0, n1[, n2])

Modify box size, such that the aspect ratio is square / cube

modif_params2d(params[, n0, n1, name_run, …])

Modify parameters for 2D benchmarks.

modif_params3d(params[, n0, n1, n2, …])

Modify parameters for 3D benchmarks.

parse_args_dim(args)

Parse dimension argument args.dim

tear_down(sim)

Delete simulation directory.

Exceptions

ConsoleError

Distinguish errors from console utilities.