![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#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) |
virtual void | Visit (ImmersedBoundaryCellPopulation< SPACE_DIM > *pCellPopulation) |
void | SetVariableName (std::string variableName) |
std::string | GetVariableName () const |
void | SetNumRadialBins (unsigned numRadialBins) |
unsigned | GetNumRadialBins () const |
![]() | |
AbstractCellPopulationWriter (const std::string &rFileName) | |
virtual void | WriteHeader (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation) |
![]() | |
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 () |
![]() | |
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 | |
![]() | |
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 45 of file RadialCellDataDistributionWriter.cpp.
unsigned RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::GetNumRadialBins | ( | ) | const |
Definition at line 214 of file RadialCellDataDistributionWriter.cpp.
std::string RadialCellDataDistributionWriter< ELEMENT_DIM, SPACE_DIM >::GetVariableName | ( | ) | const |
Definition at line 202 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 208 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 196 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 CaBasedCellPopulation to visit. |
Implements AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 165 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 ImmersedBoundaryCellPopulation to visit. |
Implements AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 189 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 109 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 NodeBasedCellPopulation to visit. |
Implements AbstractCellPopulationWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 171 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 177 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 183 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 53 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().
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().