36 #ifndef AVERAGESOURCEPARABOLICPDE_HPP_
37 #define AVERAGESOURCEPARABOLICPDE_HPP_
40 #include <boost/serialization/base_object.hpp>
42 #include "AbstractCellPopulation.hpp"
43 #include "TetrahedralMesh.hpp"
44 #include "AbstractLinearParabolicPde.hpp"
65 template<
unsigned DIM>
68 friend class TestCellBasedParabolicPdes;
80 template<
class Archive>
81 void serialize(Archive & archive,
const unsigned int version)
83 archive & boost::serialization::base_object<AbstractLinearParabolicPde<DIM, DIM> >(*this);
118 double duDtCoefficient=1.0,
119 double diffusionCoefficient=1.0,
120 double sourceCoefficient=0.0);
192 namespace serialization
197 template<
class Archive,
unsigned DIM>
198 inline void save_construct_data(
203 ar & p_cell_population;
209 template<
class Archive,
unsigned DIM>
210 inline void load_construct_data(
215 ar >> p_cell_population;
double mDiffusionCoefficient
virtual double ComputeSourceTerm(const ChastePoint< DIM > &rX, double u, Element< DIM, DIM > *pElement=NULL)
double GetUptakeRateForElement(unsigned elementIndex)
virtual c_matrix< double, DIM, DIM > ComputeDiffusionTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement=NULL)
friend class boost::serialization::access
std::vector< double > mCellDensityOnCoarseElements
void serialize(Archive &archive, const unsigned int version)
virtual void SetupSourceTerms(TetrahedralMesh< DIM, DIM > &rCoarseMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=nullptr)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
const AbstractCellPopulation< DIM > & rGetCellPopulation() const
virtual double ComputeSourceTermAtNode(const Node< DIM > &rNode, double u)
double mSourceCoefficient
AveragedSourceParabolicPde(AbstractCellPopulation< DIM, DIM > &rCellPopulation, double duDtCoefficient=1.0, double diffusionCoefficient=1.0, double sourceCoefficient=0.0)
virtual double ComputeDuDtCoefficientFunction(const ChastePoint< DIM > &rX)
AbstractCellPopulation< DIM, DIM > & mrCellPopulation
gcov doesn't like this file...