36 #ifndef AVERAGEDSOURCEELLIPTICPDE_HPP_ 37 #define AVERAGEDSOURCEELLIPTICPDE_HPP_ 40 #include <boost/serialization/base_object.hpp> 41 #include <boost/serialization/vector.hpp> 43 #include "AbstractCellPopulation.hpp" 44 #include "TetrahedralMesh.hpp" 45 #include "AbstractLinearEllipticPde.hpp" 67 template<
unsigned DIM>
70 friend class TestCellBasedEllipticPdes;
82 template<
class Archive>
83 void serialize(Archive & archive,
const unsigned int version)
85 archive & boost::serialization::base_object<AbstractLinearEllipticPde<DIM, DIM> >(*this);
115 double sourceCoefficient=0.0,
116 double diffusionCoefficient=1.0);
180 namespace serialization
185 template<
class Archive,
unsigned DIM>
186 inline void save_construct_data(
191 ar & p_cell_population;
197 template<
class Archive,
unsigned DIM>
198 inline void load_construct_data(
203 ar >> p_cell_population;
AveragedSourceEllipticPde(AbstractCellPopulation< DIM > &rCellPopulation, double sourceCoefficient=0.0, double diffusionCoefficient=1.0)
double GetUptakeRateForElement(unsigned elementIndex)
void serialize(Archive &archive, const unsigned int version)
double GetCoefficient() const
std::vector< double > mCellDensityOnCoarseElements
virtual void SetupSourceTerms(TetrahedralMesh< DIM, DIM > &rCoarseMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=nullptr)
c_matrix< double, DIM, DIM > ComputeDiffusionTerm(const ChastePoint< DIM > &rX)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
AbstractCellPopulation< DIM > & mrCellPopulation
const AbstractCellPopulation< DIM > & rGetCellPopulation() const
double mSourceCoefficient
friend class boost::serialization::access
double ComputeLinearInUCoeffInSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
gcov doesn't like this file...
double mDiffusionCoefficient
double ComputeConstantInUSourceTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)