37 #include "LinearSteadyStateDiffusionReactionPde.hpp" 38 #include "BaseUnits.hpp" 40 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
43 mLinearInUTerm(0.0 *
unit::per_second),
44 mDiscreteLinearSourceStrengths()
49 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
55 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
62 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
64 Element<ELEMENT_DIM, SPACE_DIM>* pElement)
70 EXCEPTION(
"Requested out of bound grid index in discrete sources. Maybe you forgot to update the source strengths.");
82 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
89 EXCEPTION(
"Requested out of bound grid index in discrete sources. Maybe you forgot to update the source strengths.");
99 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
105 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
113 EXCEPTION(
"A grid has not been set for the determination of source strengths.");
119 std::vector<units::quantity<unit::rate> > result = this->
mDiscreteSources[idx]->GetLinearInURegularGridValues();
128 EXCEPTION(
"A mesh has not been set for the determination of source strengths.");
134 std::vector<units::quantity<unit::rate> > result = this->
mDiscreteSources[idx]->GetLinearInUMeshValues();
boost::shared_ptr< RegularGrid< SPACE_DIM > > mpRegularGrid
boost::shared_ptr< DiscreteContinuumMesh< ELEMENT_DIM, SPACE_DIM > > mpMesh
static boost::shared_ptr< LinearSteadyStateDiffusionReactionPde< ELEMENT_DIM, SPACE_DIM > > Create()
units::quantity< unit::time > GetReferenceTimeScale()
units::quantity< unit::rate > mLinearInUTerm
virtual void UpdateDiscreteSourceStrengths()
void UpdateDiscreteSourceStrengths()
double ComputeLinearInUCoeffInSourceTerm(const ChastePoint< SPACE_DIM > &rX, Element< ELEMENT_DIM, SPACE_DIM > *pElement)
static BaseUnits * Instance()
std::vector< boost::shared_ptr< DiscreteSource< SPACE_DIM > > > mDiscreteSources
void SetContinuumLinearInUTerm(units::quantity< unit::rate > linearInUTerm)
std::vector< units::quantity< unit::rate > > mDiscreteLinearSourceStrengths
LinearSteadyStateDiffusionReactionPde()
~LinearSteadyStateDiffusionReactionPde()