specie.h

来自「Flowlive The thermo library provides th」· C头文件 代码 · 共 62 行

H
62
字号
//---------------------------------------------------------------------------
//  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 + =
减小字号Ctrl + -
显示快捷键?