AveragedSourcePde< DIM > Class Template Reference

#include <AveragedSourcePde.hpp>

Inheritance diagram for AveragedSourcePde< DIM >:

Inheritance graph
[legend]
Collaboration diagram for AveragedSourcePde< DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AveragedSourcePde (MeshBasedCellPopulation< DIM > &rCellPopulation, double coefficient)
void SetupSourceTerms (TetrahedralMesh< DIM, DIM > &rCoarseMesh)
double ComputeConstantInUSourceTerm (const ChastePoint< DIM > &rX)
double ComputeLinearInUCoeffInSourceTerm (const ChastePoint< DIM > &rX, Element< DIM, DIM > *pElement)
c_matrix< double, DIM, DIM > ComputeDiffusionTerm (const ChastePoint< DIM > &rX)

Private Attributes

MeshBasedCellPopulation< DIM > & mrCellPopulation
double mCoefficient
std::vector< double > mCellDensityOnCoarseElements


Detailed Description

template<unsigned DIM>
class AveragedSourcePde< DIM >

A PDE which calculates the source term by adding the number of cells in the element containing that point and scaling by the element area.

Definition at line 40 of file AveragedSourcePde.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
AveragedSourcePde< DIM >::AveragedSourcePde ( MeshBasedCellPopulation< DIM > &  rCellPopulation,
double  coefficient 
) [inline]

Constructor.

Parameters:
rCellPopulation reference to the cell population
coefficient the coefficient of consumption of nutrient by cells

Definition at line 33 of file AveragedSourcePde.cpp.


Member Function Documentation

template<unsigned DIM>
void AveragedSourcePde< DIM >::SetupSourceTerms ( TetrahedralMesh< DIM, DIM > &  rCoarseMesh  )  [inline]

template<unsigned DIM>
double AveragedSourcePde< DIM >::ComputeConstantInUSourceTerm ( const ChastePoint< DIM > &  rX  )  [inline]

Overridden ComputeConstantInUSourceTerm() method.

Parameters:
rX The point in space
Returns:
the constant in u part of the source term, i.e g(x) in Div(D Grad u) + f(x)u + g(x) = 0.

Definition at line 76 of file AveragedSourcePde.cpp.

template<unsigned DIM>
double AveragedSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm ( const ChastePoint< DIM > &  rX,
Element< DIM, DIM > *  pElement 
) [inline]

Overridden ComputeLinearInUCoeffInSourceTerm() method.

Parameters:
rX The point in space
pElement the element
Returns:
the coefficient of u in the linear part of the source term, i.e f(x) in Div(D Grad u) + f(x)u + g(x) = 0.

Definition at line 82 of file AveragedSourcePde.cpp.

References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetIndex(), AveragedSourcePde< DIM >::mCellDensityOnCoarseElements, and AveragedSourcePde< DIM >::mCoefficient.

template<unsigned DIM>
c_matrix< double, DIM, DIM > AveragedSourcePde< DIM >::ComputeDiffusionTerm ( const ChastePoint< DIM > &  rX  )  [inline]

Overridden ComputeDiffusionTerm() method.

Parameters:
rX The point in space at which the diffusion term is computed
Returns:
a matrix.

Definition at line 89 of file AveragedSourcePde.cpp.


Member Data Documentation

template<unsigned DIM>
MeshBasedCellPopulation<DIM>& AveragedSourcePde< DIM >::mrCellPopulation [private]

The cell population member.

Definition at line 45 of file AveragedSourcePde.hpp.

Referenced by AveragedSourcePde< DIM >::SetupSourceTerms().

template<unsigned DIM>
double AveragedSourcePde< DIM >::mCoefficient [private]

Coefficient of consumption of nutrient by cells.

Definition at line 48 of file AveragedSourcePde.hpp.

Referenced by AveragedSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm().

template<unsigned DIM>
std::vector<double> AveragedSourcePde< DIM >::mCellDensityOnCoarseElements [private]

Vector of averaged cell densities on elements of the coarse mesh.

Definition at line 51 of file AveragedSourcePde.hpp.

Referenced by AveragedSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm(), and AveragedSourcePde< DIM >::SetupSourceTerms().


The documentation for this class was generated from the following files:

Generated on Tue May 31 14:32:36 2011 for Chaste by  doxygen 1.5.5