JEMRIS  2.8.1
open-source MRI simulations
MicrostructureBoxes.h
1 /*
2  * MicrostructureBoxes.h
3  *
4  * Created on: Nov 8, 2010
5  * Author: dpflug
6  */
7 
8 
9 /*
10  * JEMRIS Copyright (C)
11  * 2006-2015 Tony Stoecker
12  * 2007-2015 Kaveh Vahedipour
13  * 2009-2015 Daniel Pflugfelder
14  *
15  *
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 2 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License
27  * along with this program; if not, write to the Free Software
28  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29  */
30 
31 #ifndef MICROSTRUCTUREBOXES_H_
32 #define MICROSTRUCTUREBOXES_H_
33 
34 #include "Microstructure.h"
35 #include <vector>
36 
37 
41 struct box{
42 double x;
43 double y;
44 double z;
45 double size_x;
46 double size_y;
47 double size_z;
48 double D;
49 };
50 
51 
56 public:
58  virtual ~MicrostructureBoxes();
59 
60  void AddBox(box new_box);
61  virtual double GetD(int LastId=-1,int shellid=-1);
62  virtual void IndexObject(triple pos,int &LastId ,int &shellid);
63 private:
64  bool IsInsideObjectBox(triple pos, box cur_box);
65  vector<box> m_boxes; // container for all boxes inside microstructure
66 
67 };
68 
69 #endif /* MICROSTRUCTUREBOXES_H_ */
double D
Diffusion constant inside box.
Definition: MicrostructureBoxes.h:48
Microsructure base class.
Definition: Microstructure.h:55
double size_z
z box extends from [z-size_z..z+size_z]
Definition: MicrostructureBoxes.h:47
A microsructure composed of boxes.
Definition: MicrostructureBoxes.h:55
double y
y position of box
Definition: MicrostructureBoxes.h:43
double z
z position of box
Definition: MicrostructureBoxes.h:44
Cartesians positions for diffusion trajectory of a spin.
Definition: TrajectoryDiffusion.h:46
double size_y
y box extends from [y-size_y..y+size_y]
Definition: MicrostructureBoxes.h:46
double x
x position of box
Definition: MicrostructureBoxes.h:42
double size_x
x box extends from [x-size_x..x+size_x]
Definition: MicrostructureBoxes.h:45
Box with diffusion connstant.
Definition: MicrostructureBoxes.h:41

-- last change 17.06.2016 | Tony Stoecker | Imprint --