-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmolecule.h
More file actions
31 lines (29 loc) · 730 Bytes
/
molecule.h
File metadata and controls
31 lines (29 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef MOLECULE_H
#define MOLECULE_H
#include <vector>
using namespace std;
class molecule
{
public:
molecule(){};
molecule(const vector<double> mlist_in, const vector<double> zlist_in, const vector<double> nlist_in);
molecule(molecule& mol);
~molecule(){};
//setup this class
void setup();
//relative atomic mass of each atom
vector<double> mlist;
//number of ionized electrons of each atom
vector<double> zlist;
//number of atoms
vector<double> nlist;
//totol mass, z, n
double tot_m, tot_z, tot_n;
//averge mass and z
double avg_m, avg_z;
//number of elements
double nele;
double min_m, max_m;
molecule operator=(const molecule& mol);
};
#endif