Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
chemistry_benchmark.cpp File Reference

Chemistry throughput benchmark (MallardReactor's [benchmark] mode). More...

#include "chemistry_benchmark.h"
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstdio>
#include <stdexcept>
#include <Kokkos_Core.hpp>
#include "cell_chemistry.h"
#include "input.h"
#include "kinetics.h"
#include "log.h"
#include "mixture.h"
#include "reactor.h"
#include "thermo.h"

Functions

ChemistryBenchmark run_chemistry_benchmark (const toml::value &input)
 The [benchmark] mode of MallardReactor: states sampled along the trajectory of [reactor] (fresh, igniting and burnt), replicated over the cells and advanced over each splitting step dt, every call from the sampled states; logs and returns cells per second and the sub-step distribution.
 

Detailed Description

Chemistry throughput benchmark (MallardReactor's [benchmark] mode).

Author
Matthew Bonanni (mbona.nosp@m.nni0.nosp@m.01@gm.nosp@m.ail..nosp@m.com)
Version
0.3
Date
2026-10-03

Function Documentation

◆ run_chemistry_benchmark()

ChemistryBenchmark run_chemistry_benchmark ( const toml::value &  input)

The [benchmark] mode of MallardReactor: states sampled along the trajectory of [reactor] (fresh, igniting and burnt), replicated over the cells and advanced over each splitting step dt, every call from the sampled states; logs and returns cells per second and the sub-step distribution.