-
Notifications
You must be signed in to change notification settings - Fork 0
/
node.h
26 lines (25 loc) · 790 Bytes
/
node.h
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
#include "Chemplugin.h"
class node {
public:
void init(int, int, bool);
~node();
double **d1, *h; //diffusion coefficient, onsager coefficients, hessian of chemical potential
double *spe, *bas, *dt, *delts; //species concentrations, basis concentrations, tracer diffusion coefficients,
//and changes in chemical composition
double press, temp, tort; //pressure, temperature, tortuosity
double wmass, por; //mass of water, porosity
ChemPlugin *cp; //for doing the calculations
void calc_props();
double getvis() {return viscos;};
double getk() {return k;};
void calc_dc();
void calc_dt();
bool same_as(node *);
private:
double density, viscos, poros, k;
void calc_density(double);
void calc_viscos(double);
void calc_potd();
int nspe, index;
bool calc_act;
};