#include <SphereGeometryBoundaryCondition.hpp>
Inherits AbstractCellPopulationBoundaryCondition< DIM >.
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::vector< 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 |
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 45 of file SphereGeometryBoundaryCondition.hpp.
SphereGeometryBoundaryCondition< DIM >::SphereGeometryBoundaryCondition | ( | AbstractCellPopulation< DIM > * | pCellPopulation, | |
c_vector< double, DIM > | centre, | |||
double | radius, | |||
double | distance = 1e-5 | |||
) | [inline] |
Constructor.
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 33 of file SphereGeometryBoundaryCondition.cpp.
References EXCEPTION, SphereGeometryBoundaryCondition< DIM >::mMaximumDistance, AbstractCellPopulationBoundaryCondition< DIM >::mpCellPopulation, and SphereGeometryBoundaryCondition< DIM >::mRadiusOfSphere.
double SphereGeometryBoundaryCondition< DIM >::GetRadiusOfSphere | ( | ) | const [inline] |
Definition at line 62 of file SphereGeometryBoundaryCondition.cpp.
References SphereGeometryBoundaryCondition< DIM >::mRadiusOfSphere.
void SphereGeometryBoundaryCondition< DIM >::ImposeBoundaryCondition | ( | const std::vector< c_vector< double, DIM > > & | rOldLocations | ) | [inline, virtual] |
Overridden ImposeBoundaryCondition() method.
Apply the cell population boundary conditions.
rOldLocations | the node locations before any boundary conditions are applied |
Implements AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 68 of file SphereGeometryBoundaryCondition.cpp.
References SphereGeometryBoundaryCondition< DIM >::mCentreOfSphere, SphereGeometryBoundaryCondition< DIM >::mMaximumDistance, AbstractCellPopulationBoundaryCondition< DIM >::mpCellPopulation, SphereGeometryBoundaryCondition< DIM >::mRadiusOfSphere, and Node< SPACE_DIM >::rGetModifiableLocation().
void SphereGeometryBoundaryCondition< DIM >::OutputCellPopulationBoundaryConditionParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Overridden OutputCellPopulationBoundaryConditionParameters() method. Output cell population boundary condition parameters to file.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 120 of file SphereGeometryBoundaryCondition.cpp.
References SphereGeometryBoundaryCondition< DIM >::mCentreOfSphere, SphereGeometryBoundaryCondition< DIM >::mMaximumDistance, and SphereGeometryBoundaryCondition< DIM >::mRadiusOfSphere.
const c_vector< double, DIM > & SphereGeometryBoundaryCondition< DIM >::rGetCentreOfSphere | ( | ) | const [inline] |
Definition at line 56 of file SphereGeometryBoundaryCondition.cpp.
References SphereGeometryBoundaryCondition< DIM >::mCentreOfSphere.
void SphereGeometryBoundaryCondition< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the object.
archive | the archive | |
version | the current version of this class |
Reimplemented from AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 67 of file SphereGeometryBoundaryCondition.hpp.
References SphereGeometryBoundaryCondition< DIM >::mMaximumDistance.
bool SphereGeometryBoundaryCondition< DIM >::VerifyBoundaryCondition | ( | ) | [inline, virtual] |
Overridden VerifyBoundaryCondition() method. Verify the boundary conditions have been applied. This is called after ImposeBoundaryCondition() to ensure the condition is still satisfied.
Implements AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 95 of file SphereGeometryBoundaryCondition.cpp.
References SphereGeometryBoundaryCondition< DIM >::mCentreOfSphere, SphereGeometryBoundaryCondition< DIM >::mMaximumDistance, AbstractCellPopulationBoundaryCondition< DIM >::mpCellPopulation, and SphereGeometryBoundaryCondition< DIM >::mRadiusOfSphere.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCellPopulationBoundaryCondition< DIM >.
Definition at line 59 of file SphereGeometryBoundaryCondition.hpp.
c_vector<double, DIM> SphereGeometryBoundaryCondition< DIM >::mCentreOfSphere [private] |
The centre of the sphere.
Definition at line 50 of file SphereGeometryBoundaryCondition.hpp.
Referenced by SphereGeometryBoundaryCondition< DIM >::ImposeBoundaryCondition(), SphereGeometryBoundaryCondition< DIM >::OutputCellPopulationBoundaryConditionParameters(), SphereGeometryBoundaryCondition< DIM >::rGetCentreOfSphere(), and SphereGeometryBoundaryCondition< DIM >::VerifyBoundaryCondition().
double SphereGeometryBoundaryCondition< DIM >::mMaximumDistance [private] |
The maximum distance from the surface of the sphere that cells may be.
Definition at line 56 of file SphereGeometryBoundaryCondition.hpp.
Referenced by SphereGeometryBoundaryCondition< DIM >::ImposeBoundaryCondition(), SphereGeometryBoundaryCondition< DIM >::OutputCellPopulationBoundaryConditionParameters(), SphereGeometryBoundaryCondition< DIM >::serialize(), SphereGeometryBoundaryCondition< DIM >::SphereGeometryBoundaryCondition(), and SphereGeometryBoundaryCondition< DIM >::VerifyBoundaryCondition().
double SphereGeometryBoundaryCondition< DIM >::mRadiusOfSphere [private] |
The radius of the sphere.
Definition at line 53 of file SphereGeometryBoundaryCondition.hpp.
Referenced by SphereGeometryBoundaryCondition< DIM >::GetRadiusOfSphere(), SphereGeometryBoundaryCondition< DIM >::ImposeBoundaryCondition(), SphereGeometryBoundaryCondition< DIM >::OutputCellPopulationBoundaryConditionParameters(), SphereGeometryBoundaryCondition< DIM >::SphereGeometryBoundaryCondition(), and SphereGeometryBoundaryCondition< DIM >::VerifyBoundaryCondition().