JEMRIS  2.8.1
open-source MRI simulations
BiotSavartLoop.h
Go to the documentation of this file.
1 
5 /*
6  * JEMRIS Copyright (C)
7  * 2006-2015 Tony Stoecker
8  * 2007-2015 Kaveh Vahedipour
9  * 2009-2015 Daniel Pflugfelder
10  *
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25  */
26 
27 #ifndef BIOTSAVARTLOOP_H_
28 #define BIOTSAVARTLOOP_H_
29 
30 #include "Coil.h"
31 
35 class BiotSavartLoop : public Coil {
36 
37  public:
38 
39 
44 
49 
56  virtual double GetSensitivity (const double* position);
57 
64  inline double GetPhase (const double* position) {return this->m_biosavart_phase;};
65 
71  inline virtual BiotSavartLoop* Clone () const {return (new BiotSavartLoop(*this));};
72 
79  virtual bool Prepare (const PrepareMode mode);
80 
81 
82  private:
83 
84  double m_mask;
85  double m_radius;
87  bool m_first_call;
89 };
90 
91 #endif /*BIOTSAVARTLOOP_H_*/
virtual BiotSavartLoop * Clone() const
Clone.
Definition: BiotSavartLoop.h:71
~BiotSavartLoop()
Default destructor.
Definition: BiotSavartLoop.h:48
Prototype of a Biot-Savart loop.
Definition: BiotSavartLoop.h:35
double GetPhase(const double *position)
Request sensitivity at given position.
Definition: BiotSavartLoop.h:64
double m_mask
Definition: BiotSavartLoop.h:84
BiotSavartLoop()
Default constructor.
Definition: BiotSavartLoop.h:43
mode
Definition: Declarations.h:112
virtual bool Prepare(const PrepareMode mode)
Prepare.
Definition: BiotSavartLoop.cpp:36
virtual double GetSensitivity(const double *position)
Request sensitivity at given position.
Definition: BiotSavartLoop.cpp:52
double m_radius
Definition: BiotSavartLoop.h:85
Implementation of JEMRIS Coil.
Base class of coil objects.
Definition: Coil.h:39
double m_biosavart_phase
Phase.
Definition: BiotSavartLoop.h:86
bool m_first_call
print warning on first call if no boost available
Definition: BiotSavartLoop.h:87

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