#include <CellwiseDataGradient.hpp>
Public Member Functions | |
void | SetupGradients () |
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 38 of file CellwiseDataGradient.hpp.
c_vector< double, DIM > & CellwiseDataGradient< DIM >::rGetGradient | ( | unsigned | nodeIndex | ) | [inline] |
Get the gradient at a given node. Not set up for ghost nodes.
nodeIndex |
Definition at line 33 of file CellwiseDataGradient.cpp.
References CellwiseDataGradient< DIM >::mGradients.
Referenced by ChemotacticForce< DIM >::AddForceContribution().
void CellwiseDataGradient< DIM >::SetupGradients | ( | ) | [inline] |
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
Definition at line 40 of file CellwiseDataGradient.cpp.
References AbstractCellPopulation< DIM >::Begin(), AbstractCellPopulation< DIM >::End(), AbstractCellPopulation< DIM >::GetCellUsingLocationIndex(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetInverseJacobianForElement(), AbstractCellPopulation< DIM >::GetLocationIndexUsingCell(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeGlobalIndex(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), MeshBasedCellPopulation< DIM >::GetNumNodes(), AbstractCentreBasedCellPopulation< DIM >::IsGhostNode(), CellwiseDataGradient< DIM >::mGradients, NEVER_REACHED, and MeshBasedCellPopulation< DIM >::rGetMesh().
Referenced by ChemotacticForce< DIM >::AddForceContribution().
std::vector<c_vector<double, DIM> > CellwiseDataGradient< DIM >::mGradients [private] |
The final gradients at the nodes
Definition at line 45 of file CellwiseDataGradient.hpp.
Referenced by CellwiseDataGradient< DIM >::rGetGradient(), and CellwiseDataGradient< DIM >::SetupGradients().