forked from mikahlbk/SpatialYeastModel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mesh_pt.h
53 lines (49 loc) · 1.49 KB
/
mesh_pt.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//mesh_pt.h
//***************************************
//Include Guards
#ifndef _MESH_PT_H_INCLUDED_
#define _MESH_PT_H_INCLUDED_
//**************************************
//forward declarations
class Mesh;
//*************************************
//include dependencies
#include <boost/enable_shared_from_this.hpp>
#include <boost/shared_ptr.hpp>
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <cstdio>
#include <memory>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include "parameters.h"
#include "coord.h"
//**************************************************
//mesh_pt class declaration
class Mesh_Pt: public enable_shared_from_this<Mesh_Pt>{
private:
vector<shared_ptr<Cell>> cells;
shared_ptr<Mesh> my_mesh;
Coord center;
double nutrient_conc;
int index;
vector<shared_ptr<Mesh_Pt>> neighbors;
public:
//constructor
Mesh_Pt(shared_ptr<Mesh> my_mesh, double x, double y, int index);
void find_neighbor_bins();
int get_index(){return index;}
Coord get_center(){return center;};
void get_cells(vector<shared_ptr<Cell>>& neighbors);
void get_neighbor_bins(vector<shared_ptr<Mesh_Pt>>& neighbor_bins);
void add_cells_to_neighbor_vec(vector<shared_ptr<Cell>>& neighbor_cells);
void add_cell(shared_ptr<Cell>& new_cell);
void clear_cells_vec();
void calculate_nutrient_concentration();
double get_nutrient_conc(){return nutrient_conc;}
};
//end mesh_pt class
//**********************************************
#endif