generated from Chaste/template_project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
TestCellSortingLiteratePaper.hpp
504 lines (405 loc) · 21 KB
/
TestCellSortingLiteratePaper.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
#ifndef TESTCELLSORTINGLITERATEPAPER_HPP_
#define TESTCELLSORTINGLITERATEPAPER_HPP_
/*
* = Adhesion Example =
*
* On this wiki page we describe in detail the code that is used to run this example from the paper.
*
* The easiest way to visualize these simulations is with Paraview.
*
* [[EmbedYoutube(4YZp_WmBZTI)]]
*
* == Code overview ==
*
* The first thing to do is to include the necessary header files.
*/
#include <cxxtest/TestSuite.h>
// Must be included before other cell_based headers
#include "CellBasedSimulationArchiver.hpp"
#include "AbstractCellBasedWithTimingsTestSuite.hpp"
#include "CellLabel.hpp"
#include "SmartPointers.hpp"
#include "CellsGenerator.hpp"
#include "UniformG1GenerationalCellCycleModel.hpp"
#include "TransitCellProliferativeType.hpp"
#include "DifferentiatedCellProliferativeType.hpp"
#include "HeterotypicBoundaryLengthWriter.hpp"
#include "OffLatticeSimulation.hpp"
#include "VertexBasedCellPopulation.hpp"
#include "HoneycombVertexMeshGenerator.hpp"
#include "NagaiHondaDifferentialAdhesionForce.hpp"
#include "RandomMotionForce.hpp"
#include "SimpleTargetAreaModifier.hpp"
#include "MeshBasedCellPopulationWithGhostNodes.hpp"
#include "HoneycombMeshGenerator.hpp"
#include "DifferentialAdhesionGeneralisedLinearSpringForce.hpp"
#include "RandomMotionForce.hpp"
#include "OnLatticeSimulation.hpp"
#include "CellPopulationAdjacencyMatrixWriter.hpp"
#include "CaBasedCellPopulation.hpp"
#include "ShovingCaBasedDivisionRule.hpp"
#include "RandomCaSwitchingUpdateRule.hpp"
#include "DifferentialAdhesionCaSwitchingUpdateRule.hpp"
#include "PottsBasedCellPopulation.hpp"
#include "PottsMeshGenerator.hpp"
#include "VolumeConstraintPottsUpdateRule.hpp"
#include "SurfaceAreaConstraintPottsUpdateRule.hpp"
#include "AdhesionPottsUpdateRule.hpp"
#include "DifferentialAdhesionPottsUpdateRule.hpp"
#include "CellIdWriter.hpp"
#include "CellMutationStatesWriter.hpp"
#include "PetscSetupAndFinalize.hpp"
/*
* This is where you can set parameters to be used in all the simulations.
*
* The first block (commented out) are the original parameter values.
* The second block are parameters for a much shorter simulation, and are used for continuous testing with Chaste.
*/
//static const double M_TIME_TO_STEADY_STATE = 10; //10
//static const double M_TIME_FOR_SIMULATION = 100; //100
//static const double M_NUM_CELLS_ACROSS = 20; //20 // this ^2 cells
//static const double M_CELL_FLUCTUATION = 1.0;
static const double M_TIME_TO_STEADY_STATE = 10.0; //10
static const double M_TIME_FOR_SIMULATION = 11.0; //100
static const double M_NUM_CELLS_ACROSS = 20; //20 // this ^2 cells
static const double M_CELL_FLUCTUATION = 1.0;
class TestCellSortingLiteratePaper : public AbstractCellBasedWithTimingsTestSuite
{
private:
/*
* This is a helper method to randomly label cells add is used in all simulations.
*/
void RandomlyLabelCells(std::list<CellPtr>& rCells, boost::shared_ptr<AbstractCellProperty> pLabel, double labelledRatio)
{
for (std::list<CellPtr>::iterator cell_iter = rCells.begin();
cell_iter != rCells.end();
++cell_iter)
{
if (RandomNumberGenerator::Instance()->ranf() < labelledRatio)
{
(*cell_iter)->AddCellProperty(pLabel);
}
}
}
public:
/*
* == CA ==
*
* Simulate a population of cells exhibiting cell sorting using the
* Cellular Automaton model.
*/
void TestCaBasedMonolayerCellSorting()
{
// Create a simple 2D PottsMesh
unsigned domain_wide = 2*M_NUM_CELLS_ACROSS;
PottsMeshGenerator<2> generator(domain_wide, 0, 0, domain_wide, 0, 0);
boost::shared_ptr<PottsMesh<2> > p_mesh = generator.GetMesh();
p_mesh->Translate(-(double)domain_wide*0.5 + 0.5,-(double)domain_wide*0.5 + 0.5);
// Specify where cells lie
std::vector<unsigned> location_indices;
for (unsigned i=0; i<M_NUM_CELLS_ACROSS; i++)
{
for (unsigned j=0; j<M_NUM_CELLS_ACROSS; j++)
{
unsigned offset = (domain_wide+1) * (domain_wide-M_NUM_CELLS_ACROSS)/2;
location_indices.push_back(offset + j + i * domain_wide );
}
}
std::vector<CellPtr> cells;
MAKE_PTR(DifferentiatedCellProliferativeType, p_differentiated_type);
CellsGenerator<UniformG1GenerationalCellCycleModel, 2> cells_generator;
cells_generator.GenerateBasicRandom(cells, location_indices.size(), p_differentiated_type);
// Create cell population
CaBasedCellPopulation<2> cell_population(*p_mesh, cells, location_indices);
// Set population to output all data to results files
cell_population.AddCellWriter<CellIdWriter>();
cell_population.AddCellWriter<CellMutationStatesWriter>();
cell_population.AddPopulationWriter<HeterotypicBoundaryLengthWriter>();
cell_population.AddPopulationWriter<CellPopulationAdjacencyMatrixWriter>();
OnLatticeSimulation<2> simulator(cell_population);
simulator.SetOutputDirectory("CellSorting/Ca");
simulator.SetDt(0.01);
simulator.SetSamplingTimestepMultiple(100);
simulator.SetEndTime(M_TIME_TO_STEADY_STATE);
// Add Division Rule
boost::shared_ptr<AbstractCaBasedDivisionRule<2> > p_division_rule(new ShovingCaBasedDivisionRule<2>());
cell_population.SetCaBasedDivisionRule(p_division_rule);
// Add switching Update Rule
MAKE_PTR(DifferentialAdhesionCaSwitchingUpdateRule<2u>, p_switching_update_rule);
p_switching_update_rule->SetLabelledCellLabelledCellAdhesionEnergyParameter(0.1);
p_switching_update_rule->SetLabelledCellCellAdhesionEnergyParameter(0.2);
p_switching_update_rule->SetCellCellAdhesionEnergyParameter(0.1);
p_switching_update_rule->SetCellBoundaryAdhesionEnergyParameter(0.2);
p_switching_update_rule->SetLabelledCellBoundaryAdhesionEnergyParameter(0.4);
p_switching_update_rule->SetTemperature(0.1);
simulator.AddUpdateRule(p_switching_update_rule);
simulator.Solve();
// Now label some cells
boost::shared_ptr<AbstractCellProperty> p_state(CellPropertyRegistry::Instance()->Get<CellLabel>());
RandomlyLabelCells(simulator.rGetCellPopulation().rGetCells(), p_state, 0.5);
// modify parameters
p_switching_update_rule->SetTemperature(0.1*M_CELL_FLUCTUATION);
// Run simulation
simulator.SetEndTime(M_TIME_TO_STEADY_STATE + M_TIME_FOR_SIMULATION);
simulator.Solve();
// Check that the same number of cells
TS_ASSERT_EQUALS(simulator.rGetCellPopulation().GetNumRealCells(), M_NUM_CELLS_ACROSS*M_NUM_CELLS_ACROSS);
// Test no births or deaths
TS_ASSERT_EQUALS(simulator.GetNumBirths(), 0u);
TS_ASSERT_EQUALS(simulator.GetNumDeaths(), 0u);
}
/*
* == CP ==
*
* Simulate a population of cells exhibiting cell sorting using the
* Cellular Potts model.
*/
void TestPottsMonolayerCellSorting()
{
// Create a simple 2D PottsMesh
unsigned element_size = 4;
unsigned domain_size = M_NUM_CELLS_ACROSS * element_size * 3; // Three times the initial domain size
PottsMeshGenerator<2> generator(domain_size, M_NUM_CELLS_ACROSS, element_size, domain_size, M_NUM_CELLS_ACROSS, element_size);
boost::shared_ptr<PottsMesh<2> > p_mesh = generator.GetMesh();
// Create cells
std::vector<CellPtr> cells;
MAKE_PTR(DifferentiatedCellProliferativeType, p_differentiated_type);
CellsGenerator<UniformG1GenerationalCellCycleModel, 2> cells_generator;
cells_generator.GenerateBasicRandom(cells, p_mesh->GetNumElements(), p_differentiated_type);
// Create cell population
PottsBasedCellPopulation<2> cell_population(*p_mesh, cells);
cell_population.AddCellWriter<CellIdWriter>();
cell_population.AddCellWriter<CellMutationStatesWriter>();
cell_population.AddPopulationWriter<HeterotypicBoundaryLengthWriter>();
cell_population.AddPopulationWriter<CellPopulationAdjacencyMatrixWriter>();
// Set the Temperature
cell_population.SetTemperature(0.2); //Default is 0.1
// Set up cell-based simulation and output directory
OnLatticeSimulation<2> simulator(cell_population);
simulator.SetOutputDirectory("CellSorting/Potts");
// Set time step and end time for simulation
simulator.SetDt(0.01);
simulator.SetSamplingTimestepMultiple(100);
simulator.SetEndTime(M_TIME_TO_STEADY_STATE);
// Create update rules and pass to the simulation
MAKE_PTR(VolumeConstraintPottsUpdateRule<2>, p_volume_constraint_update_rule);
p_volume_constraint_update_rule->SetMatureCellTargetVolume(16); // i.e 4x4 cells
p_volume_constraint_update_rule->SetDeformationEnergyParameter(0.1);
simulator.AddUpdateRule(p_volume_constraint_update_rule);
MAKE_PTR(SurfaceAreaConstraintPottsUpdateRule<2>, p_surface_constraint_update_rule);
p_surface_constraint_update_rule->SetMatureCellTargetSurfaceArea(16); // i.e 4x4 cells
p_surface_constraint_update_rule->SetDeformationEnergyParameter(0.01);//0.01
simulator.AddUpdateRule(p_surface_constraint_update_rule);
MAKE_PTR(DifferentialAdhesionPottsUpdateRule<2>, p_differential_adhesion_update_rule);
p_differential_adhesion_update_rule->SetLabelledCellLabelledCellAdhesionEnergyParameter(0.1);
p_differential_adhesion_update_rule->SetLabelledCellCellAdhesionEnergyParameter(0.5); // 1.0
p_differential_adhesion_update_rule->SetCellCellAdhesionEnergyParameter(0.1); //0.1
p_differential_adhesion_update_rule->SetCellBoundaryAdhesionEnergyParameter(0.2); // 1.0
p_differential_adhesion_update_rule->SetLabelledCellBoundaryAdhesionEnergyParameter(1.0); // 2.0
simulator.AddUpdateRule(p_differential_adhesion_update_rule);
// Run simulation
simulator.Solve();
// Now label some cells
boost::shared_ptr<AbstractCellProperty> p_state(CellPropertyRegistry::Instance()->Get<CellLabel>());
RandomlyLabelCells(simulator.rGetCellPopulation().rGetCells(), p_state, 0.5);
// Adjust Parameters
dynamic_cast <PottsBasedCellPopulation<2>*>(&(simulator.rGetCellPopulation()))->SetTemperature(0.2*M_CELL_FLUCTUATION);
// Run simulation
simulator.SetEndTime(M_TIME_TO_STEADY_STATE + M_TIME_FOR_SIMULATION);
simulator.Solve();
// Check that the same number of cells
TS_ASSERT_EQUALS(simulator.rGetCellPopulation().GetNumRealCells(), M_NUM_CELLS_ACROSS*M_NUM_CELLS_ACROSS);
// Test no births or deaths
TS_ASSERT_EQUALS(simulator.GetNumBirths(), 0u);
TS_ASSERT_EQUALS(simulator.GetNumDeaths(), 0u);
}
/*
* == OS ==
*
* Simulate a population of cells exhibiting cell sorting using the
* Overlapping Sphere model.
*/
void TestNodeBasedMonolayerCellSorting()
{
// Create a simple mesh
HoneycombMeshGenerator generator(M_NUM_CELLS_ACROSS, M_NUM_CELLS_ACROSS, 0);
boost::shared_ptr<TetrahedralMesh<2,2> > p_generating_mesh = generator.GetMesh();
//Extended to allow sorting for longer distances
double cut_off_length = 2.5;
// Convert this to a NodesOnlyMesh
NodesOnlyMesh<2> mesh;
mesh.ConstructNodesWithoutMesh(*p_generating_mesh, cut_off_length);
// Set up cells, one for each Node
std::vector<CellPtr> cells;
MAKE_PTR(DifferentiatedCellProliferativeType, p_differentiated_type);
CellsGenerator<UniformG1GenerationalCellCycleModel, 2> cells_generator;
cells_generator.GenerateBasicRandom(cells, mesh.GetNumNodes(), p_differentiated_type);
// Create cell population
NodeBasedCellPopulation<2> cell_population(mesh, cells);
// Set population to output all data to results files
cell_population.AddCellWriter<CellIdWriter>();
cell_population.AddCellWriter<CellMutationStatesWriter>();
cell_population.AddPopulationWriter<HeterotypicBoundaryLengthWriter>();
cell_population.AddPopulationWriter<CellPopulationAdjacencyMatrixWriter>();
// Set up cell-based simulation and output directory
OffLatticeSimulation<2> simulator(cell_population);
simulator.SetOutputDirectory("CellSorting/Node");
// Set time step and end time for simulation
simulator.SetDt(1.0/200.0);
simulator.SetSamplingTimestepMultiple(200);
simulator.SetEndTime(M_TIME_TO_STEADY_STATE);
// Create a force law and pass it to the simulation
MAKE_PTR(DifferentialAdhesionGeneralisedLinearSpringForce<2>, p_differential_adhesion_force);
p_differential_adhesion_force->SetMeinekeSpringStiffness(50.0);
p_differential_adhesion_force->SetHomotypicLabelledSpringConstantMultiplier(1.0);
p_differential_adhesion_force->SetHeterotypicSpringConstantMultiplier(0.1);
p_differential_adhesion_force->SetCutOffLength(cut_off_length);
simulator.AddForce(p_differential_adhesion_force);
// Add some noise to avoid local minimum
MAKE_PTR(RandomMotionForce<2>, p_random_force);
p_random_force->SetMovementParameter(0.05); //0.1 causes dissasociation, 0.001 is not enough
simulator.AddForce(p_random_force);
// Run simulation
simulator.Solve();
// Now label some cells
boost::shared_ptr<AbstractCellProperty> p_state(CellPropertyRegistry::Instance()->Get<CellLabel>());
RandomlyLabelCells(simulator.rGetCellPopulation().rGetCells(), p_state, 0.5);
// Adjust parameters
p_random_force->SetMovementParameter(0.05*M_CELL_FLUCTUATION); //0.1 causes dissasociation
// Run simulation
simulator.SetEndTime(M_TIME_TO_STEADY_STATE + M_TIME_FOR_SIMULATION);
simulator.Solve();
// Check that the same number of cells
TS_ASSERT_EQUALS(simulator.rGetCellPopulation().GetNumRealCells(), M_NUM_CELLS_ACROSS*M_NUM_CELLS_ACROSS);
// Test no births or deaths
TS_ASSERT_EQUALS(simulator.GetNumBirths(), 0u);
TS_ASSERT_EQUALS(simulator.GetNumDeaths(), 0u);
}
/*
* == VT ==
*
* Simulate a population of cells exhibiting cell sorting using the
* Voronoi tesselation model.
*/
void TestMeshBasedWithGhostsMonolayerCellSorting()
{
// Create a simple mesh
unsigned num_ghosts = 20;
HoneycombMeshGenerator generator(M_NUM_CELLS_ACROSS, M_NUM_CELLS_ACROSS, num_ghosts);
boost::shared_ptr<MutableMesh<2,2> > p_mesh = generator.GetMesh();
// Set up cells, one for each non ghost Node
std::vector<unsigned> location_indices = generator.GetCellLocationIndices();
std::vector<CellPtr> cells;
MAKE_PTR(DifferentiatedCellProliferativeType, p_differentiated_type);
CellsGenerator<UniformG1GenerationalCellCycleModel, 2> cells_generator;
cells_generator.GenerateBasicRandom(cells, location_indices.size(), p_differentiated_type);
// Create cell population
MeshBasedCellPopulationWithGhostNodes<2> cell_population(*p_mesh, cells, location_indices);
cell_population.AddPopulationWriter<CellPopulationAdjacencyMatrixWriter>();
// Set population to output all data to results files
cell_population.AddCellWriter<CellIdWriter>();
cell_population.AddCellWriter<CellMutationStatesWriter>();
cell_population.AddPopulationWriter<HeterotypicBoundaryLengthWriter>();
// Set up cell-based simulation and output directory
OffLatticeSimulation<2> simulator(cell_population);
simulator.SetOutputDirectory("CellSorting/Mesh");
// Set time step and end time for simulation
simulator.SetDt(1.0/200.0);
simulator.SetSamplingTimestepMultiple(200);
simulator.SetEndTime(M_TIME_TO_STEADY_STATE);
// Create a force law and pass it to the simulation
MAKE_PTR(DifferentialAdhesionGeneralisedLinearSpringForce<2>, p_differential_adhesion_force);
p_differential_adhesion_force->SetMeinekeSpringStiffness(50.0);
p_differential_adhesion_force->SetHomotypicLabelledSpringConstantMultiplier(1.0);
p_differential_adhesion_force->SetHeterotypicSpringConstantMultiplier(0.1);
simulator.AddForce(p_differential_adhesion_force);
// Add some noise to avoid local minimum
MAKE_PTR(RandomMotionForce<2>, p_random_force);
p_random_force->SetMovementParameter(0.1);
simulator.AddForce(p_random_force);
// Run simulation
simulator.Solve();
// Now label some cells
boost::shared_ptr<AbstractCellProperty> p_state(CellPropertyRegistry::Instance()->Get<CellLabel>());
RandomlyLabelCells(simulator.rGetCellPopulation().rGetCells(), p_state, 0.5);
// Adjust parameters
p_random_force->SetMovementParameter(0.1*M_CELL_FLUCTUATION); //0.1 causes dissasociation
// Run simulation
simulator.SetEndTime(M_TIME_TO_STEADY_STATE + M_TIME_FOR_SIMULATION);
simulator.Solve();
// Check that the same number of cells
TS_ASSERT_EQUALS(simulator.rGetCellPopulation().GetNumRealCells(), M_NUM_CELLS_ACROSS*M_NUM_CELLS_ACROSS);
// Test no births or deaths
TS_ASSERT_EQUALS(simulator.GetNumBirths(), 0u);
TS_ASSERT_EQUALS(simulator.GetNumDeaths(), 0u);
}
/*
* == VM ==
*
* Simulate a population of cells exhibiting cell sorting using the
* Cell Vertex model.
*/
void TestVertexMonolayerCellSorting()
{
// Create a simple 2D MutableVertexMesh
HoneycombVertexMeshGenerator generator(M_NUM_CELLS_ACROSS, M_NUM_CELLS_ACROSS);
boost::shared_ptr<MutableVertexMesh<2,2> > p_mesh = generator.GetMesh();
p_mesh->SetCellRearrangementThreshold(0.1);
// Slows things down but can use a larger timestep and diffusion forces
//p_mesh->SetCheckForInternalIntersections(true);
// Set up cells, one for each VertexElement
std::vector<CellPtr> cells;
boost::shared_ptr<AbstractCellProperty> p_cell_type(CellPropertyRegistry::Instance()->Get<DifferentiatedCellProliferativeType>());
CellsGenerator<UniformG1GenerationalCellCycleModel, 2> cells_generator;
cells_generator.GenerateBasicRandom(cells, p_mesh->GetNumElements(), p_cell_type);
for (unsigned i=0; i<cells.size(); i++)
{
// Set a target area rather than setting a growth modifier. (the modifiers don't work correctly as making very long G1 phases)
cells[i]->GetCellData()->SetItem("target area", 1.0);
}
// Create cell population
VertexBasedCellPopulation<2> cell_population(*p_mesh, cells);
// Set population to output all data to results files
cell_population.AddCellWriter<CellIdWriter>();
cell_population.AddCellWriter<CellMutationStatesWriter>();
cell_population.AddPopulationWriter<HeterotypicBoundaryLengthWriter>();
cell_population.AddPopulationWriter<CellPopulationAdjacencyMatrixWriter>();
// Set up cell-based simulation and output directory
OffLatticeSimulation<2> simulator(cell_population);
simulator.SetOutputDirectory("CellSorting/Vertex");
// Set time step and end time for simulation
simulator.SetDt(1.0/200.0);
simulator.SetSamplingTimestepMultiple(200);
simulator.SetEndTime(M_TIME_TO_STEADY_STATE);
// Set up force law and pass it to the simulation
MAKE_PTR(NagaiHondaDifferentialAdhesionForce<2>, p_force);
p_force->SetNagaiHondaDeformationEnergyParameter(50.0);
p_force->SetNagaiHondaMembraneSurfaceEnergyParameter(1.0);
p_force->SetNagaiHondaCellCellAdhesionEnergyParameter(1.0);
p_force->SetNagaiHondaLabelledCellCellAdhesionEnergyParameter(2.0);
p_force->SetNagaiHondaLabelledCellLabelledCellAdhesionEnergyParameter(1.0);
p_force->SetNagaiHondaCellBoundaryAdhesionEnergyParameter(10.0);
p_force->SetNagaiHondaLabelledCellBoundaryAdhesionEnergyParameter(20.0);
simulator.AddForce(p_force);
// Add some noise to avoid local minimum
MAKE_PTR(RandomMotionForce<2>, p_random_force);
p_random_force->SetMovementParameter(0.1);
simulator.AddForce(p_random_force);
// Run simulation
simulator.Solve();
// Now label some cells
boost::shared_ptr<AbstractCellProperty> p_state(CellPropertyRegistry::Instance()->Get<CellLabel>());
RandomlyLabelCells(simulator.rGetCellPopulation().rGetCells(), p_state, 0.5);
// Adjust parameters
p_random_force->SetMovementParameter(0.1*M_CELL_FLUCTUATION);
// Run simulation
simulator.SetEndTime(M_TIME_TO_STEADY_STATE + M_TIME_FOR_SIMULATION);
simulator.Solve();
// Check that the same number of cells
TS_ASSERT_EQUALS(simulator.rGetCellPopulation().GetNumRealCells(), M_NUM_CELLS_ACROSS*M_NUM_CELLS_ACROSS);
// Test no births or deaths
TS_ASSERT_EQUALS(simulator.GetNumBirths(), 0u);
TS_ASSERT_EQUALS(simulator.GetNumDeaths(), 0u);
}
};
#endif /* TESTCELLSORTINGLITERATEPAPER_HPP_ */