36 #ifndef PLANEBOUNDARYCONDITION_HPP_
37 #define PLANEBOUNDARYCONDITION_HPP_
39 #include "AbstractCellPopulationBoundaryCondition.hpp"
44 #include <boost/serialization/base_object.hpp>
45 #include <boost/serialization/vector.hpp>
53 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM=ELEMENT_DIM>
82 template<
class Archive>
83 void serialize(Archive & archive,
const unsigned int version)
85 archive & boost::serialization::base_object<AbstractCellPopulationBoundaryCondition<ELEMENT_DIM, SPACE_DIM> >(*this);
99 c_vector<double, SPACE_DIM> point,
100 c_vector<double, SPACE_DIM> normal);
154 namespace serialization
159 template<
class Archive,
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
160 inline void save_construct_data(
165 ar << p_cell_population;
169 for (
unsigned i=0; i<SPACE_DIM; i++)
174 for (
unsigned i=0; i<SPACE_DIM; i++)
183 template<
class Archive,
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
184 inline void load_construct_data(
189 ar >> p_cell_population;
192 c_vector<double, SPACE_DIM> point;
193 for (
unsigned i=0; i<SPACE_DIM; i++)
197 c_vector<double, SPACE_DIM> normal;
198 for (
unsigned i=0; i<SPACE_DIM; i++)
c_vector< double, SPACE_DIM > mPointOnPlane
bool mUseJiggledNodesOnPlane
const AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > * GetCellPopulation() const
void serialize(Archive &archive, const unsigned int version)
void ImposeBoundaryCondition(const std::map< Node< SPACE_DIM > *, c_vector< double, SPACE_DIM > > &rOldLocations)
#define EXPORT_TEMPLATE_CLASS_ALL_DIMS(CLASS)
void OutputCellPopulationBoundaryConditionParameters(out_stream &rParamsFile)
friend class boost::serialization::access
bool VerifyBoundaryCondition()
c_vector< double, SPACE_DIM > mNormalToPlane
PlaneBoundaryCondition(AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > *pCellPopulation, c_vector< double, SPACE_DIM > point, c_vector< double, SPACE_DIM > normal)
void SetUseJiggledNodesOnPlane(bool useJiggledNodesOnPlane)
const c_vector< double, SPACE_DIM > & rGetNormalToPlane() const
bool GetUseJiggledNodesOnPlane()
const c_vector< double, SPACE_DIM > & rGetPointOnPlane() const