SphereGeometryBoundaryCondition< DIM > Class Template Reference

#include <SphereGeometryBoundaryCondition.hpp>

Inherits AbstractCellPopulationBoundaryCondition< DIM >.

Collaboration diagram for SphereGeometryBoundaryCondition< DIM >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SphereGeometryBoundaryCondition (AbstractCellPopulation< DIM > *pCellPopulation, c_vector< double, DIM > centre, double radius, double distance=1e-5)
const c_vector< double, DIM > & rGetCentreOfSphere () const
double GetRadiusOfSphere () const
void ImposeBoundaryCondition (const std::map< Node< DIM > *, c_vector< double, DIM > > &rOldLocations)
bool VerifyBoundaryCondition ()
void OutputCellPopulationBoundaryConditionParameters (out_stream &rParamsFile)

Private Member Functions

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

Private Attributes

c_vector< double, DIM > mCentreOfSphere
double mRadiusOfSphere
double mMaximumDistance

Friends

class boost::serialization::access

Detailed Description

template<unsigned DIM>
class SphereGeometryBoundaryCondition< DIM >

A spherical cell population boundary condition class, which restricts nodes to lie on the surface of a sphere in the domain. Although the name of this class suggests it is specific to 3D, it is actually also implemented in 2D, for which it is really a circle geometry boundary condition.

Definition at line 52 of file SphereGeometryBoundaryCondition.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
SphereGeometryBoundaryCondition< DIM >::SphereGeometryBoundaryCondition ( AbstractCellPopulation< DIM > *  pCellPopulation,
c_vector< double, DIM >  centre,
double  radius,
double  distance = 1e-5 
) [inline]

Constructor.

Parameters:
pCellPopulation pointer to the cell population
centre the centre of the sphere
radius the radius of the sphere
distance the maximum distance from the surface of the sphere that cells may be (defaults to 1e-5)

Definition at line 40 of file SphereGeometryBoundaryCondition.cpp.

References EXCEPTION, SphereGeometryBoundaryCondition< DIM >::mMaximumDistance, AbstractCellPopulationBoundaryCondition< DIM >::mpCellPopulation, and SphereGeometryBoundaryCondition< DIM >::mRadiusOfSphere.


Member Function Documentation

template<unsigned DIM>
double SphereGeometryBoundaryCondition< DIM >::GetRadiusOfSphere (  )  const [inline]
template<unsigned DIM>
void SphereGeometryBoundaryCondition< DIM >::ImposeBoundaryCondition ( const std::map< Node< DIM > *, c_vector< double, DIM > > &  rOldLocations  )  [inline]
template<unsigned DIM>
void SphereGeometryBoundaryCondition< DIM >::OutputCellPopulationBoundaryConditionParameters ( out_stream &  rParamsFile  )  [inline, virtual]

Overridden OutputCellPopulationBoundaryConditionParameters() method. Output cell population boundary condition parameters to file.

Parameters:
rParamsFile the file stream to which the parameters are output

Implements AbstractCellPopulationBoundaryCondition< DIM >.

Definition at line 128 of file SphereGeometryBoundaryCondition.cpp.

References SphereGeometryBoundaryCondition< DIM >::mCentreOfSphere, SphereGeometryBoundaryCondition< DIM >::mMaximumDistance, and SphereGeometryBoundaryCondition< DIM >::mRadiusOfSphere.

template<unsigned DIM>
const c_vector< double, DIM > & SphereGeometryBoundaryCondition< DIM >::rGetCentreOfSphere (  )  const [inline]
template<unsigned DIM>
template<class Archive >
void SphereGeometryBoundaryCondition< DIM >::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]

Serialize the object.

Parameters:
archive the archive
version the current version of this class

Reimplemented from AbstractCellPopulationBoundaryCondition< DIM >.

Definition at line 74 of file SphereGeometryBoundaryCondition.hpp.

References SphereGeometryBoundaryCondition< DIM >::mMaximumDistance.

template<unsigned DIM>
bool SphereGeometryBoundaryCondition< DIM >::VerifyBoundaryCondition (  )  [inline, virtual]

Friends And Related Function Documentation

template<unsigned DIM>
friend class boost::serialization::access [friend]

Needed for serialization.

Reimplemented from AbstractCellPopulationBoundaryCondition< DIM >.

Definition at line 66 of file SphereGeometryBoundaryCondition.hpp.


Member Data Documentation

template<unsigned DIM>
c_vector<double, DIM> SphereGeometryBoundaryCondition< DIM >::mCentreOfSphere [private]
template<unsigned DIM>
double SphereGeometryBoundaryCondition< DIM >::mMaximumDistance [private]
template<unsigned DIM>
double SphereGeometryBoundaryCondition< DIM >::mRadiusOfSphere [private]

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

Generated by  doxygen 1.6.2