31 void addPhase(shared_ptr<Solution> soln,
bool includeAdjacent=
true);
35 void addPhase(shared_ptr<ThermoPhase> thermo, shared_ptr<Kinetics> kin={},
36 shared_ptr<Transport> tran={});
44 void toYamlFile(
const std::string& filename)
const;
64 void setUnits(
const std::map<std::string, std::string>& units={});
76 std::vector<shared_ptr<Solution>> m_phases;
Header for unit conversion utilities, which are used to translate user input from input files (See In...
A map of string keys to values whose type can vary at runtime.
A class for generating full YAML input files from multiple data sources.
void toYamlFile(const std::string &filename) const
Write the definitions for the added phases, species and reactions to the specified file.
void setPrecision(long int n)
For output floating point values, set the maximum number of digits to the right of the decimal point.
void setUnitSystem(const UnitSystem &units=UnitSystem())
Set the units to be used in the output file.
std::string toYamlString() const
Return a YAML string that contains the definitions for the added phases, species, and reactions.
long int m_float_precision
void skipUserDefined(bool skip=true)
By default user-defined data present in the input is preserved on output.
void setUnits(const std::map< std::string, std::string > &units={})
Set the units to be used in the output file.
AnyMap m_header
Top-level information used in YAML header block.
void setHeader(const AnyMap &header)
Include top-level information used in YAML header block.
void addPhase(shared_ptr< Solution > soln, bool includeAdjacent=true)
Include a phase definition for the specified Solution object.
UnitSystem m_output_units
Top-level units directive for the output file.
This file contains definitions of constants, types and terms that are used in internal routines and a...
Namespace for the Cantera kernel.