Chaste
Release::2018.1
|
#include <RadialCellDataDistributionWriter.hpp>
Public Member Functions | |
RadialCellDataDistributionWriter () | |
void | VisitAnyPopulation (AbstractCellPopulation< SPACE_DIM, SPACE_DIM > *pCellPopulation) |
virtual void | Visit (MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation) |
virtual void | Visit (CaBasedCellPopulation< SPACE_DIM > *pCellPopulation) |
virtual void | Visit (NodeBasedCellPopulation< SPACE_DIM > *pCellPopulation) |
virtual void | Visit (PottsBasedCellPopulation< SPACE_DIM > *pCellPopulation) |
virtual void | Visit (VertexBasedCellPopulation< SPACE_DIM > *pCellPopulation) |
void | SetVariableName (std::string variableName) |
std::string | GetVariableName () const |
void | SetNumRadialBins (unsigned numRadialBins) |
unsigned | GetNumRadialBins () const |
Public Member Functions inherited from AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM > | |
AbstractCellPopulationWriter (const std::string &rFileName) | |
virtual void | WriteHeader (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation) |
Public Member Functions inherited from AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM > | |
AbstractCellBasedWriter (const std::string &rFileName) | |
virtual | ~AbstractCellBasedWriter () |
void | CloseFile () |
virtual void | OpenOutputFile (OutputFileHandler &rOutputFileHandler) |
void | OpenOutputFileForAppend (OutputFileHandler &rOutputFileHandler) |
virtual void | WriteTimeStamp () |
virtual void | WriteNewline () |
void | SetFileName (std::string fileName) |
std::string | GetFileName () |
Public Member Functions inherited from Identifiable | |
virtual | ~Identifiable () |
std::string | GetIdentifier () const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
std::string | mVariableName |
unsigned | mNumRadialBins |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from AbstractCellBasedWriter< ELEMENT_DIM, SPACE_DIM > | |
std::string | mFileName |
out_stream | mpOutStream |
A class written using the visitor pattern for writing the average radial distribution of a given CellData item, from the centroid of the cell population outward, to file.
The output file is called radial_dist.dat by default.
Definition at line 50 of file RadialCellDataDistributionWriter.hpp.
RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::RadialCellDataDistributionWriter | ( | ) |
Constructor.
Definition at line 44 of file RadialCellDataDistributionWriter.cpp.
unsigned RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::GetNumRadialBins | ( | ) | const |
Definition at line 206 of file RadialCellDataDistributionWriter.cpp.
std::string RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::GetVariableName | ( | ) | const |
Definition at line 194 of file RadialCellDataDistributionWriter.cpp.
|
inlineprivate |
Serialize the object and its member variables.
archive | the archive |
version | the current version of this class |
Definition at line 69 of file RadialCellDataDistributionWriter.hpp.
References RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::mNumRadialBins, and RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::mVariableName.
void RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::SetNumRadialBins | ( | unsigned | numRadialBins | ) |
Set mNumRadialBins.
numRadialBins | the number of radial bins to use |
Definition at line 200 of file RadialCellDataDistributionWriter.cpp.
void RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::SetVariableName | ( | std::string | variableName | ) |
Set mVariableName.
variableName | the name of the CellData item to write to file |
Definition at line 188 of file RadialCellDataDistributionWriter.cpp.
|
virtual |
Visit the population and write the average radial distribution of the CellData item, from the centroid of the cell population outward, in the prescribed number of bins.
Outputs a line of space-separated values of the form: [smaller radius of interval i] [average value]
This line is appended to the output written by AbstractCellBasedWriter, which is a single value [present simulation time], followed by a tab.
pCellPopulation | a pointer to the MeshBasedCellPopulation to visit. |
Implements AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 108 of file RadialCellDataDistributionWriter.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Begin(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::End(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetCentroidOfCellPopulation(), and AbstractCentreBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetLocationOfCellCentre().
|
virtual |
Visit the population and write the average radial distribution of the CellData item, from the centroid of the cell population outward, in the prescribed number of bins.
Outputs a line of space-separated values of the form: [smaller radius of interval i] [average value]
This line is appended to the output written by AbstractCellBasedWriter, which is a single value [present simulation time], followed by a tab.
pCellPopulation | a pointer to the CaBasedCellPopulation to visit. |
Implements AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 164 of file RadialCellDataDistributionWriter.cpp.
|
virtual |
Visit the population and write the average radial distribution of the CellData item, from the centroid of the cell population outward, in the prescribed number of bins.
Outputs a line of space-separated values of the form: [smaller radius of interval i] [average value]
This line is appended to the output written by AbstractCellBasedWriter, which is a single value [present simulation time], followed by a tab.
pCellPopulation | a pointer to the NodeBasedCellPopulation to visit. |
Implements AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 170 of file RadialCellDataDistributionWriter.cpp.
|
virtual |
Visit the population and write the average radial distribution of the CellData item, from the centroid of the cell population outward, in the prescribed number of bins.
Outputs a line of space-separated values of the form: [smaller radius of interval i] [average value]
This line is appended to the output written by AbstractCellBasedWriter, which is a single value [present simulation time], followed by a tab.
pCellPopulation | a pointer to the PottsBasedCellPopulation to visit. |
Implements AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 176 of file RadialCellDataDistributionWriter.cpp.
|
virtual |
Visit the population and write the average radial distribution of the CellData item, from the centroid of the cell population outward, in the prescribed number of bins.
Outputs a line of space-separated values of the form: [smaller radius of interval i] [average value]
This line is appended to the output written by AbstractCellBasedWriter, which is a single value [present simulation time], followed by a tab.
pCellPopulation | a pointer to the VertexBasedCellPopulation to visit. |
Implements AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 182 of file RadialCellDataDistributionWriter.cpp.
void RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::VisitAnyPopulation | ( | AbstractCellPopulation< SPACE_DIM, SPACE_DIM > * | pCellPopulation | ) |
Visit any population and write the data. This is the same structure for any population.
pCellPopulation | a pointer to the population to visit |
Definition at line 52 of file RadialCellDataDistributionWriter.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Begin(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::End(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetCentroidOfCellPopulation(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetLocationOfCellCentre().
|
friend |
Needed for serialization.
Definition at line 61 of file RadialCellDataDistributionWriter.hpp.
|
private |
The number of radial bins to use.
Definition at line 58 of file RadialCellDataDistributionWriter.hpp.
Referenced by RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::serialize().
|
private |
The name of the CellData item to write to file.
Definition at line 55 of file RadialCellDataDistributionWriter.hpp.
Referenced by RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::serialize().