Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
pasr.h
Go to the documentation of this file.
1
13#ifndef PASR_H
14#define PASR_H
15
16#include <Kokkos_Core.hpp>
17#include <toml.hpp>
18
19#include "log.h"
20
33 double C_mix = 1.0;
34
36 static PartiallyStirredReactor from_input(const toml::value & table);
37
38 logging::Items summary() const;
39
42 double fraction(const double rho_cp_T, const double q, const double delta, const double nu,
43 const double nu_t) const {
44 const double tau_mix = C_mix * delta * delta / (nu + nu_t);
45 return rho_cp_T / (rho_cp_T + Kokkos::fabs(q) * tau_mix);
46 }
47};
48
49#endif // PASR_H
KOKKOS_INLINE_FUNCTION rtype dot(const rtype *a, const rtype *b)
Compute the dot product of two arrays.
Definition common_math.h:32
Console output: rank-0 info lines, aligned sections and tables, warnings and errors on stderr,...
std::vector< std::pair< std::string, std::string > > Items
Key-value lines of a setup section, in display order.
Definition log.h:27
Each cell's rates are those of its filtered state times the reacting fraction kappa = tau_c / (tau_c ...
Definition pasr.h:32
static PartiallyStirredReactor from_input(const toml::value &table)
[les.combustion] of an input with model = "pasr".
Definition pasr.cpp:16
logging::Items summary() const
Definition pasr.cpp:23
double C_mix
Definition pasr.h:33
KOKKOS_INLINE_FUNCTION double fraction(const double rho_cp_T, const double q, const double delta, const double nu, const double nu_t) const
kappa of a cell: rho_cp_T = rho cp T, q the heat release rate, nu and nu_t kinematic viscosities.
Definition pasr.h:42
std::vector< double > delta
Definition transport.cpp:285