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

Gas-phase mechanisms read from Cantera YAML files. More...

#include "mechanism.h"
#include <algorithm>
#include <cstdlib>
#include <cctype>
#include <cmath>
#include <filesystem>
#include <limits>
#include <map>
#include <memory>
#include <stdexcept>
#include <yaml-cpp/yaml.h>
#include "units.h"
#include "element_weights.inc"

Namespaces

namespace  chemistry
 

Functions

double chemistry::atomic_weight (const std::string &symbol)
 Atomic weight in kg/kmol of an element symbol (Cantera's table; case-insensitive), or a negative value if unknown.
 
Mechanism chemistry::read_mechanism (const std::string &file, const std::string &phase="")
 Read a phase of a Cantera YAML file.
 

Detailed Description

Gas-phase mechanisms read from Cantera YAML files.

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

Variable Documentation

◆ falloff

bool falloff = false

◆ path

◆ root

YAML::Node root

◆ species

◆ symbol

const char* symbol

◆ third_body

std::string third_body

◆ units

UnitSystem units

◆ weight

double weight