#include <PostProcessingWriter.hpp>
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 | |
PropagationPropertiesCalculator * | mpCalculator |
unsigned | mNumberOfNodes |
Friends | |
class | TestPostProcessingWriter |
Definition at line 43 of file PostProcessingWriter.hpp.
PostProcessingWriter::PostProcessingWriter | ( | Hdf5DataReader * | pDataReader | ) |
Constructor
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 | ( | ) |
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
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 ... ///
threshold | - Vm used to signify the upstroke (mV) |
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 ... ///
threshold | - Vm used to signify the upstroke (mV) |
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 ...
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().
PropagationPropertiesCalculator based on HDF5 data reader
Definition at line 48 of file PostProcessingWriter.hpp.
Referenced by PostProcessingWriter(), WriteApdMapFile(), WriteConductionVelocityMap(), WriteMaxUpstrokeVelocityMap(), WriteUpstrokeTimeMap(), and ~PostProcessingWriter().
unsigned PostProcessingWriter::mNumberOfNodes [private] |
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().