Chaste Release::3.1
|
#include <NodeBasedCellPopulationWithBuskeUpdate.hpp>
Public Member Functions | |
NodeBasedCellPopulationWithBuskeUpdate (NodesOnlyMesh< DIM > &rMesh, std::vector< CellPtr > &rCells, const std::vector< unsigned > locationIndices=std::vector< unsigned >(), bool deleteMesh=false) | |
NodeBasedCellPopulationWithBuskeUpdate (NodesOnlyMesh< DIM > &rMesh) | |
virtual void | UpdateNodeLocations (const std::vector< c_vector< double, DIM > > &rNodeForces, double dt) |
void | OutputCellPopulationParameters (out_stream &rParamsFile) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | TestNodeBasedCellPopulationWithBuskeUpdate |
class | boost::serialization::access |
A NodeBasedCellPopulationWithBuskeUpdate is a CellPopulation consisting of only nodes in space with associated cells. There are no elements and no mesh. The cell positions are updated according to Buske et al (2011) (doi:10.1371/journal.pcbi.1001045).
Definition at line 50 of file NodeBasedCellPopulationWithBuskeUpdate.hpp.
NodeBasedCellPopulationWithBuskeUpdate< DIM >::NodeBasedCellPopulationWithBuskeUpdate | ( | NodesOnlyMesh< DIM > & | rMesh, |
std::vector< CellPtr > & | rCells, | ||
const std::vector< unsigned > | locationIndices = std::vector<unsigned>() , |
||
bool | deleteMesh = false |
||
) |
Default constructor.
Note that the cell population will take responsibility for freeing the memory used by the nodes.
rMesh | a mutable nodes-only mesh |
rCells | a vector of cells |
locationIndices | an optional vector of location indices that correspond to real cells |
deleteMesh | whether to delete nodes-only mesh in destructor |
Definition at line 41 of file NodeBasedCellPopulationWithBuskeUpdate.cpp.
NodeBasedCellPopulationWithBuskeUpdate< DIM >::NodeBasedCellPopulationWithBuskeUpdate | ( | NodesOnlyMesh< DIM > & | rMesh | ) |
Constructor for use by the de-serializer.
rMesh | a mutable nodes-only mesh |
Definition at line 50 of file NodeBasedCellPopulationWithBuskeUpdate.cpp.
void NodeBasedCellPopulationWithBuskeUpdate< DIM >::OutputCellPopulationParameters | ( | out_stream & | rParamsFile | ) | [virtual] |
Outputs CellPopulation parameters to file
As this method is pure virtual, it must be overridden in subclasses.
rParamsFile | the file stream to which the parameters are output |
Reimplemented from NodeBasedCellPopulation< DIM >.
Definition at line 187 of file NodeBasedCellPopulationWithBuskeUpdate.cpp.
References NodeBasedCellPopulation< DIM >::OutputCellPopulationParameters().
void NodeBasedCellPopulationWithBuskeUpdate< DIM >::serialize | ( | Archive & | archive, |
const unsigned int | version | ||
) | [inline, private] |
Serialize the object and its member variables.
Note that serialization of the nodes is handled by load/save_construct_data, so we don't actually have to do anything here except delegate to the base class.
archive | the archive |
version | the current version of this class |
Reimplemented from NodeBasedCellPopulation< DIM >.
Definition at line 68 of file NodeBasedCellPopulationWithBuskeUpdate.hpp.
void NodeBasedCellPopulationWithBuskeUpdate< DIM >::UpdateNodeLocations | ( | const std::vector< c_vector< double, DIM > > & | rNodeForces, |
double | dt | ||
) | [virtual] |
Overridden UpdateNodeLocations() method. To use the update from Buske et al (2011) (doi:10.1371/journal.pcbi.1001045).
rNodeForces | a vector containing the force on each node in the cell population |
dt | the time step |
Definition at line 57 of file NodeBasedCellPopulationWithBuskeUpdate.cpp.
References PetscMatTools::AddToElement(), PetscTools::CreateAndSetVec(), PetscTools::Destroy(), PetscMatTools::Finalise(), OdeLinearSystemSolver::rGetForceVector(), OdeLinearSystemSolver::rGetLhsMatrix(), PetscVecTools::SetElement(), OdeLinearSystemSolver::SetInitialConditionVector(), and OdeLinearSystemSolver::SolveOneTimeStep().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from NodeBasedCellPopulation< DIM >.
Definition at line 57 of file NodeBasedCellPopulationWithBuskeUpdate.hpp.