⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 specie.h

📁 Flowlive The thermo library provides thermodynamical, chemical and physical properties of elements
💻 H
字号:
//---------------------------------------------------------------------------
//  Project:         FlowLive
//  Module:          thermo
/*!\file             specie.h
	\brief            misc properties of chemical species
	\version          0.0.1.1
	\date             Created: 2006-08-03
	\date             Last modified: 2006-08-03
	\author           <a href="mailto:xtobias@gmx.net">Tobias Severin, xtobias@gmx.net</a>
*/
//---------------------------------------------------------------------------
#ifndef SPECIE_H
#define SPECIE_H
//---------------------------------------------------------------------------
#include <thermo/thermo.h>

#include <string>
#include <vector>

#include <thermo/element.h>

//---------------------------------------------------------------------------
THERMO_BEGIN

THERMO_EXPORT
class cSpecie
{
	protected:
		//! The name of the specie
		std::string itsName;

		//! The chemical formula of the specie
//		std::string itsFormula; // formula could be derived from elements

		//! Pointers to the elements contained in the specie
		std::vector<cElement*> itsElements;

		//! Valence numbers of all elements in the specie
		std::vector<int> itsValenceNumbers;

	public:
		//! The default constructor
		cSpecie(std::string aName, std::vector<cElement*> &itsElements, std::vector<int> itsBondNumbers);

		//! The destructor
		~cSpecie();

		//! Returns the name of the specie
		std::string Name();

		//! Returns the molar mass of thte specie [kg/mol]
		double MolarMass();


};
//---------------------------------------------------------------------------

THERMO_END

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -