PostProcessingWriter Class Reference

#include <PostProcessingWriter.hpp>

Collaboration diagram for PostProcessingWriter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PostProcessingWriter (Hdf5DataReader *pDataReader)
 ~PostProcessingWriter ()

Private Member Functions

void WriteApdMapFile (double threshold, double repolarisationPercentage)
void WriteUpstrokeTimeMap (double threshold)
void WriteMaxUpstrokeVelocityMap (double threshold)
void WriteConductionVelocityMap (unsigned originNode, std::vector< double > distancesFromOriginNode)

Private Attributes

PropagationPropertiesCalculatormpCalculator
unsigned mNumberOfNodes

Friends

class TestPostProcessingWriter


Detailed Description

Write out physiological parameters at the end of a simulation

Todo:
  • Needs to deal with the case where no upstroke is found.

Definition at line 43 of file PostProcessingWriter.hpp.


Constructor & Destructor Documentation

PostProcessingWriter::PostProcessingWriter ( Hdf5DataReader pDataReader  ) 

Constructor

Parameters:
pDataReader an HDF5 reader from which to build the PropagationPropertiesCalculator

Definition at line 36 of file PostProcessingWriter.cpp.

References Hdf5DataReader::GetNumberOfRows(), mNumberOfNodes, and mpCalculator.

PostProcessingWriter::~PostProcessingWriter (  ) 

Destructor

Definition at line 42 of file PostProcessingWriter.cpp.

References mpCalculator.


Member Function Documentation

void PostProcessingWriter::WriteApdMapFile ( double  threshold,
double  repolarisationPercentage 
) [private]

Method for opening an APD map file and writing one row per node line 1: <first APD for node 0> <second APD for node 0> ... line 2: <first APD for node 1> <second APD for node 1> ... etc.

Nodes where there is no APD are respresented by a single 0

Parameters:
threshold - Vm used to signify the upstroke (mV)
repolarisationPercentage eg. 90.0 for APD90

Definition at line 48 of file PostProcessingWriter.cpp.

References PetscTools::AmMaster(), PropagationPropertiesCalculator::CalculateAllActionPotentialDurations(), HeartConfig::Instance(), mNumberOfNodes, mpCalculator, and OutputFileHandler::OpenOutputFile().

void PostProcessingWriter::WriteUpstrokeTimeMap ( double  threshold  )  [private]

Write out times of each upstroke for each node:

line 1: <first upstroke time for node 0> <second upstroke time for node 0> ... line 2: <first upstroke time for node 1> <second upstroke time for node 1> ... etc.

If there is no upstroke then there will a ... ///

Todo:
Allow this (see class description)
Parameters:
threshold - Vm used to signify the upstroke (mV)

Todo:
Allow this (see class description)

Definition at line 81 of file PostProcessingWriter.cpp.

References PetscTools::AmMaster(), PropagationPropertiesCalculator::CalculateUpstrokeTimes(), HeartConfig::Instance(), mNumberOfNodes, mpCalculator, and OutputFileHandler::OpenOutputFile().

void PostProcessingWriter::WriteMaxUpstrokeVelocityMap ( double  threshold  )  [private]

Write out velocities of each max upstroke for each node:

line 1: <first upstroke velocity for node 0> <second upstroke velocity for node 0> ... line 2: <first upstroke velocity for node 1> <second upstroke velocity for node 1> ... etc.

If there is no upstroke then there will a ... ///

Todo:
Allow this (see class description)
Parameters:
threshold - Vm used to signify the upstroke (mV)

Todo:
Allow this (see class description)

Definition at line 103 of file PostProcessingWriter.cpp.

References PetscTools::AmMaster(), PropagationPropertiesCalculator::CalculateAllMaximumUpstrokeVelocities(), HeartConfig::Instance(), mNumberOfNodes, mpCalculator, and OutputFileHandler::OpenOutputFile().

void PostProcessingWriter::WriteConductionVelocityMap ( unsigned  originNode,
std::vector< double >  distancesFromOriginNode 
) [private]

Write out conduction velocity map from the given node the rest of the mesh:

line 1: <conduction velocity for node 0 and AP 0> <conduction velocity for node 0 and AP 1> ... line 2: <conduction velocity for node 1 and AP 0> <conduction velocity for node 1 and AP 1> ... etc.

Note: the line corresponding to node number originNode will contain ...

Parameters:
originNode - Node to compute the conduction velocity from
distancesFromOriginNode - Distance map from originNode to all the nodes in the simulation. Tipically calculated with DistanceMapCalculator

Definition at line 125 of file PostProcessingWriter.cpp.

References PetscTools::AmMaster(), PropagationPropertiesCalculator::CalculateAllConductionVelocities(), HeartConfig::Instance(), mNumberOfNodes, mpCalculator, and OutputFileHandler::OpenOutputFile().


Member Data Documentation

Number of nodes in the mesh (got from the data reader)

Definition at line 49 of file PostProcessingWriter.hpp.

Referenced by PostProcessingWriter(), WriteApdMapFile(), WriteConductionVelocityMap(), WriteMaxUpstrokeVelocityMap(), and WriteUpstrokeTimeMap().


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

Generated on Tue Aug 4 16:11:38 2009 for Chaste by  doxygen 1.5.5