JEMRIS 2.9.2
open-source MRI simulations
Loading...
Searching...
No Matches
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-2025 Tony Stoecker
12 * 2007-2018 Kaveh Vahedipour
13 * 2009-2019 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
41struct box{
42double x;
43double y;
44double z;
45double size_x;
46double size_y;
47double size_z;
48double D;
49};
50
51
56public:
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);
63private:
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_ */
A microsructure composed of boxes.
Definition MicrostructureBoxes.h:55
virtual void IndexObject(triple pos, int &LastId, int &shellid)
Definition MicrostructureBoxes.cpp:58
virtual double GetD(int LastId=-1, int shellid=-1)
Definition MicrostructureBoxes.cpp:52
Microsructure base class.
Definition Microstructure.h:55
Box with diffusion connstant.
Definition MicrostructureBoxes.h:41
double size_z
z box extends from [z-size_z..z+size_z]
Definition MicrostructureBoxes.h:47
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
double z
z position of box
Definition MicrostructureBoxes.h:44
double D
Diffusion constant inside box.
Definition MicrostructureBoxes.h:48
double size_y
y box extends from [y-size_y..y+size_y]
Definition MicrostructureBoxes.h:46
double y
y position of box
Definition MicrostructureBoxes.h:43
Cartesians positions for diffusion trajectory of a spin.
Definition TrajectoryDiffusion.h:46

-- last change 03.01.2025 | Tony Stoecker | Imprint | Data Protection --