Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#include <CellwiseDataGradient.hpp>
Public Member Functions | |
void | SetupGradients (AbstractCellPopulation< DIM > &rCellPopulation, const std::string &rItemName) |
c_vector< double, DIM > & | rGetGradient (unsigned nodeIndex) |
Private Attributes | |
std::vector< c_vector< double, DIM > > | mGradients |
A class for calculating the gradients of the CellwiseData.
Definition at line 45 of file CellwiseDataGradient.hpp.
c_vector< double, DIM > & CellwiseDataGradient< DIM >::rGetGradient | ( | unsigned | nodeIndex | ) |
Get the gradient at a given node. Not set up for ghost nodes.
nodeIndex |
Definition at line 40 of file CellwiseDataGradient.cpp.
Referenced by ChemotacticForce< DIM >::AddForceContribution().
void CellwiseDataGradient< DIM >::SetupGradients | ( | AbstractCellPopulation< DIM > & | rCellPopulation, |
const std::string & | rItemName | ||
) |
Compute the gradients at the nodes.
This is done by averaging the gradients at all the containing (non-ghost) elements for that node. Note that the gradients are piecewise constant- constant in each element
rCellPopulation | population on which to calculate gradients - must be instantiation of MeshBasedCellPopulation |
rItemName | is the name of the data from which to form the gradient (e.g. "oxygen"). |
Definition at line 46 of file CellwiseDataGradient.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::Begin(), LinearBasisFunction< ELEMENT_DIM >::ComputeTransformedBasisFunctionDerivatives(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::End(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetCellUsingLocationIndex(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetInverseJacobianForElement(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetLocationIndexUsingCell(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeGlobalIndex(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), AbstractCentreBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::IsGhostNode(), NEVER_REACHED, and MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::rGetMesh().
Referenced by ChemotacticForce< DIM >::AddForceContribution().
|
private |
The final gradients at the nodes
Definition at line 52 of file CellwiseDataGradient.hpp.