Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems
Element::Attribs Struct Reference

The attributes of an Element object. More...

#include <Element.hpp>

Collaboration diagram for Element::Attribs:
[legend]

Public Attributes

String symbol
 The symbol of the element (e.g., "H", "O", "C", "Na"). More...
 
double molar_mass = 0.0
 The molar mass of the element (in kg/mol). More...
 
String name
 The name of the element (e.g., "Hydrogen", "Oxygen"). More...
 
Strings tags
 The tags of the element. More...
 

Detailed Description

The attributes of an Element object.

Member Data Documentation

◆ symbol

String symbol

The symbol of the element (e.g., "H", "O", "C", "Na").

Note
This is a required attribute. The element symbol must be unique among all other elements.

◆ molar_mass

double molar_mass = 0.0

The molar mass of the element (in kg/mol).

Note
This is a required attribute. Zero is allowed, but this prevents conversion from amount to mass values for chemical species containing elements with zero molar mass.

◆ name

String name

The name of the element (e.g., "Hydrogen", "Oxygen").

Note
This is an optional attribute. If not provided, assumed equal to symbol.

◆ tags

Strings tags

The tags of the element.

Note
This is an optional attribute.

The documentation for this struct was generated from the following file: