![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <PopulationTestingForce.hpp>
Public Member Functions | |
PopulationTestingForce (bool hasPositionDependence=true) | |
void | AddForceContribution (AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM > &rCellPopulation) |
c_vector< double, SPACE_DIM > | GetExpectedOneStepLocationFE (unsigned nodeIndex, double damping, c_vector< double, SPACE_DIM > &oldLocation, double dt) |
c_vector< double, SPACE_DIM > | GetExpectedOneStepLocationRK4 (unsigned nodeIndex, double damping, c_vector< double, SPACE_DIM > &oldLocation, double dt) |
c_vector< double, SPACE_DIM > | GetExpectedOneStepLocationAM2 (unsigned nodeIndex, double damping, c_vector< double, SPACE_DIM > &oldLocation, double dt) |
c_vector< double, SPACE_DIM > | GetExpectedOneStepLocationBE (unsigned nodeIndex, double damping, c_vector< double, SPACE_DIM > &oldLocation, double dt) |
virtual void | OutputForceParameters (out_stream &rParamsFile) |
![]() | |
AbstractForce () | |
virtual | ~AbstractForce () |
void | OutputForceInfo (out_stream &rParamsFile) |
virtual void | WriteDataToVisualizerSetupFile (out_stream &pVizSetupFile) |
![]() | |
virtual | ~Identifiable () |
std::string | GetIdentifier () const |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
bool | mWithPositionDependence |
Friends | |
class | boost::serialization::access |
A simple force law used to test node location updates across the off lattice population test files.
Definition at line 48 of file PopulationTestingForce.hpp.
PopulationTestingForce< ELEMENT_DIM, SPACE_DIM >::PopulationTestingForce | ( | bool | hasPositionDependence = true | ) |
Constructor.
hasPositionDependence | specifys which testing force to use (defaults to true) |
Definition at line 39 of file PopulationTestingForce.cpp.
|
virtual |
Overridden AddForceContribution() method.
rCellPopulation | reference to the cell population |
THis has two forces depending on the member variable mWithPositionDependence
If true then
For node i F[j] = 0.01 (j+1) i r[j]
Where r is the position of node i.
if false then
F[j] = 0.01 (j+1) i
Implements AbstractForce< ELEMENT_DIM, SPACE_DIM >.
Definition at line 46 of file PopulationTestingForce.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetNode(), and AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetNumNodes().
c_vector< double, SPACE_DIM > PopulationTestingForce< ELEMENT_DIM, SPACE_DIM >::GetExpectedOneStepLocationAM2 | ( | unsigned | nodeIndex, |
double | damping, | ||
c_vector< double, SPACE_DIM > & | oldLocation, | ||
double | dt | ||
) |
Helper method to return the expected step location for AdamsMoultonNumericalMethod.
nodeIndex | the index of the node |
damping | the damping constant |
oldLocation | the old location of the node |
dt | the step size |
Definition at line 108 of file PopulationTestingForce.cpp.
c_vector< double, SPACE_DIM > PopulationTestingForce< ELEMENT_DIM, SPACE_DIM >::GetExpectedOneStepLocationBE | ( | unsigned | nodeIndex, |
double | damping, | ||
c_vector< double, SPACE_DIM > & | oldLocation, | ||
double | dt | ||
) |
Helper method to return the expected step location for BackwardEulerNumericalMethod.
nodeIndex | the index of the node |
damping | the damping constant |
oldLocation | the old location of the node |
dt | the step size |
Definition at line 122 of file PopulationTestingForce.cpp.
c_vector< double, SPACE_DIM > PopulationTestingForce< ELEMENT_DIM, SPACE_DIM >::GetExpectedOneStepLocationFE | ( | unsigned | nodeIndex, |
double | damping, | ||
c_vector< double, SPACE_DIM > & | oldLocation, | ||
double | dt | ||
) |
Helper method to return the expected step location for ForwardEulerNumericalMethod.
nodeIndex | the index of the node |
damping | the damping constant |
oldLocation | the old location of the node |
dt | the step size |
Definition at line 69 of file PopulationTestingForce.cpp.
c_vector< double, SPACE_DIM > PopulationTestingForce< ELEMENT_DIM, SPACE_DIM >::GetExpectedOneStepLocationRK4 | ( | unsigned | nodeIndex, |
double | damping, | ||
c_vector< double, SPACE_DIM > & | oldLocation, | ||
double | dt | ||
) |
Helper method to return the expected step location for RK4NumericalMethod.
nodeIndex | the index of the node |
damping | the damping constant |
oldLocation | the old location of the node |
dt | the step size |
Definition at line 90 of file PopulationTestingForce.cpp.
|
virtual |
Overridden OutputForceParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractForce< ELEMENT_DIM, SPACE_DIM >.
Definition at line 136 of file PopulationTestingForce.cpp.
References NEVER_REACHED.
|
inlineprivate |
Boost Serialization method for archiving/checkpointing. Archives the object and its member variables.
archive | The boost archive. |
version | The current version of this class. |
Definition at line 65 of file PopulationTestingForce.hpp.
References PopulationTestingForce< ELEMENT_DIM, SPACE_DIM >::mWithPositionDependence.
|
friend |
Archiving.
Definition at line 55 of file PopulationTestingForce.hpp.
|
private |
Whether the applied force should depend on the position of the node, or only its index Defaults to true, since that's better for testing a variety of numerical methods. Crypt tests require a position independent test force though.
Definition at line 76 of file PopulationTestingForce.hpp.
Referenced by PopulationTestingForce< ELEMENT_DIM, SPACE_DIM >::serialize().