link to homepage

Institute for Neuroscience and Medicine

Navigation and service


API documentation

Bloch_CV_Model Class Reference

Numerical solving of Bloch equations As an application of the CVODE solver by Lawrence Livermore National Laboratory - Livermore, CA http://www.llnl.gov/CASC/sundials. More...

#include <Bloch_CV_Model.h>

Inheritance diagram for Bloch_CV_Model:
Collaboration diagram for Bloch_CV_Model:

List of all members.

Public Member Functions

virtual ~Bloch_CV_Model ()
 Default destructor.
 Bloch_CV_Model ()
 Constructor.

Protected Member Functions

virtual void InitSolver ()
 Initialise solver.
virtual void FreeSolver ()
 Free solver.
void Solve (double &dTimeShift, long &lIndexShift, AtomicSequence *atom, long &lSpin, ofstream *pfout, int iStep)
 Solve.
void PrintFinalStats ()
 Summery output.
virtual bool Calculate (double next_tStop)

Detailed Description

Numerical solving of Bloch equations As an application of the CVODE solver by Lawrence Livermore National Laboratory - Livermore, CA http://www.llnl.gov/CASC/sundials.

MR model solver using CVODE

Definition at line 68 of file Bloch_CV_Model.h.


Member Function Documentation

bool Bloch_CV_Model::Calculate ( double  next_tStop  )  [protected, virtual]

see Model::Calculate()

Implements Model.

Definition at line 224 of file Bloch_CV_Model.cpp.

References AMPL, AtomicSequence::GetDuration(), Model::m_world, World::pAtom, PHASE, World::phase, World::solution, World::solverSettings, World::solverSuccess, World::time, and ZC.

Here is the call graph for this function:

void Bloch_CV_Model::FreeSolver (  )  [protected, virtual]

Free solver.

Release the N_Vector

Implements Model.

Definition at line 216 of file Bloch_CV_Model.cpp.

References Model::m_world, and World::solverSettings.

void Bloch_CV_Model::InitSolver (  )  [protected, virtual]

Initialise solver.

Inistalise N_Vector and attach it to my world

Implements Model.

Definition at line 182 of file Bloch_CV_Model.cpp.

References AMPL, Model::m_accuracy_factor, Model::m_world, PHASE, World::solution, World::solverSettings, and ZC.

void Bloch_CV_Model::PrintFinalStats (  )  [protected]

Summery output.

More elaborate description here please

Definition at line 266 of file Bloch_CV_Model.cpp.

void Bloch_CV_Model::Solve ( double &  dTimeShift,
long &  lIndexShift,
AtomicSequence atom,
long &  lSpin,
ofstream *  pfout,
int  iStep 
) [protected]

Solve.

Numerical integration of the Bloch equations for a given atomic sequence

Parameters:
dTimeShift Starting time of this atom with respekt to the start of the whole sequence
lIndexShift More elaborate description here please
atom The simulated atomic sequence
lSpin The index number od the spin which is being simulated
pfout The file output stream used for intermediate result output
iStep More elaborate description here please

The documentation for this class was generated from the following files:

Servicemeu