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"
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);
81 void serialize(Archive & archive,
const unsigned int version) {
…}
128 double constantSourceCoefficient=0.0,
129 double linearSourceCoefficient=0.0,
130 double diffusionCoefficient=1.0,
131 double duDtCoefficient=1.0,
132 bool scaleByCellVolume=
false);
229namespace serialization
234template<
class Archive,
unsigned DIM>
235inline void save_construct_data(
240 ar & p_cell_population;
246template<
class Archive,
unsigned DIM>
247inline void load_construct_data(
252 ar >> p_cell_population;
gcov doesn't like this file...
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
double mConstantSourceCoefficient
std::vector< double > mCellDensityOnCoarseElements
AbstractCellPopulation< DIM, DIM > & mrCellPopulation
double mDiffusionCoefficient
double ComputeSourceTerm(const ChastePoint< DIM > &rX, double u, Element< DIM, DIM > *pElement) override
double GetConstantCoefficient() const
double ComputeDuDtCoefficientFunction(const ChastePoint< DIM > &rX) override
void serialize(Archive &archive, const unsigned int version)
bool GetScaleByCellVolume() const
double mLinearSourceCoefficient
double GetDiffusionCoefficient() const
c_matrix< double, DIM, DIM > ComputeDiffusionTerm(const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement=nullptr) override
friend class boost::serialization::access
double GetDuDtCoefficient() const
double GetUptakeRateForElement(unsigned elementIndex)
double ComputeSourceTermAtNode(const Node< DIM > &rNode, double u) override
const AbstractCellPopulation< DIM > & rGetCellPopulation() const
virtual void SetupSourceTerms(TetrahedralMesh< DIM, DIM > &rCoarseMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=nullptr)
double GetLinearCoefficient() const