36 #ifndef SPHEREGEOMETRYBOUNDARYCONDITION_HPP_
37 #define SPHEREGEOMETRYBOUNDARYCONDITION_HPP_
39 #include "AbstractCellPopulationBoundaryCondition.hpp"
42 #include <boost/serialization/base_object.hpp>
43 #include <boost/serialization/vector.hpp>
51 template<
unsigned DIM>
73 template<
class Archive>
74 void serialize(Archive & archive,
const unsigned int version)
76 archive & boost::serialization::base_object<AbstractCellPopulationBoundaryCondition<DIM> >(*this);
91 c_vector<double, DIM> centre,
93 double distance=1e-5);
137 namespace serialization
142 template<
class Archive,
unsigned DIM>
143 inline void save_construct_data(
148 ar << p_cell_population;
152 for (
unsigned i=0; i<DIM; i++)
165 template<
class Archive,
unsigned DIM>
166 inline void load_construct_data(
171 ar >> p_cell_population;
174 c_vector<double, DIM> point;
175 for (
unsigned i=0; i<DIM; i++)
const AbstractCellPopulation< ELEMENT_DIM, ELEMENT_DIM > * GetCellPopulation() const
void ImposeBoundaryCondition(const std::map< Node< DIM > *, c_vector< double, DIM > > &rOldLocations)
bool VerifyBoundaryCondition()
double GetRadiusOfSphere() const
void OutputCellPopulationBoundaryConditionParameters(out_stream &rParamsFile)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
void serialize(Archive &archive, const unsigned int version)
c_vector< double, DIM > mCentreOfSphere
SphereGeometryBoundaryCondition(AbstractCellPopulation< DIM > *pCellPopulation, c_vector< double, DIM > centre, double radius, double distance=1e-5)
friend class boost::serialization::access
const c_vector< double, DIM > & rGetCentreOfSphere() const