Chaste  Release::2017.1
RandomDirectionVertexBasedDivisionRule< SPACE_DIM > Class Template Reference

#include <RandomDirectionVertexBasedDivisionRule.hpp>

+ Inheritance diagram for RandomDirectionVertexBasedDivisionRule< SPACE_DIM >:
+ Collaboration diagram for RandomDirectionVertexBasedDivisionRule< SPACE_DIM >:

Public Member Functions

 RandomDirectionVertexBasedDivisionRule ()
 
virtual ~RandomDirectionVertexBasedDivisionRule ()
 
virtual c_vector< double, SPACE_DIM > CalculateCellDivisionVector (CellPtr pParentCell, VertexBasedCellPopulation< SPACE_DIM > &rCellPopulation)
 
- Public Member Functions inherited from AbstractVertexBasedDivisionRule< SPACE_DIM >
 AbstractVertexBasedDivisionRule ()
 
virtual ~AbstractVertexBasedDivisionRule ()
 
void OutputCellVertexBasedDivisionRuleInfo (out_stream &rParamsFile)
 
- 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)
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractVertexBasedDivisionRule< SPACE_DIM >
virtual void OutputCellVertexBasedDivisionRuleParameters (out_stream &rParamsFile)
 

Detailed Description

template<unsigned SPACE_DIM>
class RandomDirectionVertexBasedDivisionRule< SPACE_DIM >

A class to generate a division vector of unit length that points in a random direction.

Definition at line 52 of file RandomDirectionVertexBasedDivisionRule.hpp.

Constructor & Destructor Documentation

template<unsigned SPACE_DIM>
RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::RandomDirectionVertexBasedDivisionRule ( )
inline

Default constructor.

Definition at line 72 of file RandomDirectionVertexBasedDivisionRule.hpp.

Member Function Documentation

template<unsigned SPACE_DIM>
c_vector< double, SPACE_DIM > RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::CalculateCellDivisionVector ( CellPtr  pParentCell,
VertexBasedCellPopulation< SPACE_DIM > &  rCellPopulation 
)
virtual

Overridden CalculateCellDivisionVector() method.

Return a unit vector in a random direction, i.e the arguments are redundant for this division rule.

Parameters
pParentCellThe cell to divide
rCellPopulationThe vertex-based cell population
Returns
the division vector.

Implements AbstractVertexBasedDivisionRule< SPACE_DIM >.

Definition at line 39 of file RandomDirectionVertexBasedDivisionRule.cpp.

References EXPORT_TEMPLATE_CLASS_SAME_DIMS, RandomNumberGenerator::Instance(), and RandomNumberGenerator::ranf().

Referenced by RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::~RandomDirectionVertexBasedDivisionRule().

template<unsigned SPACE_DIM>
template<class Archive >
void RandomDirectionVertexBasedDivisionRule< SPACE_DIM >::serialize ( Archive &  archive,
const unsigned int  version 
)
inlineprivate

Serialize the object and its member variables.

Parameters
archivethe archive
versionthe current version of this class

Definition at line 63 of file RandomDirectionVertexBasedDivisionRule.hpp.


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