How to get motion parameters?

19 views
Skip to first unread message

Эрвин Визард

unread,
Nov 12, 2021, 3:10:13 AM11/12/21
to Morpheus users
Dear Morpheus creators,

I have very naive question, maybe.
Does Morpheus have any buit-in utilities to:

1) to get centr mass coordinates of cell?

2) to calculate the distance traveled by cell and related mean velocity?

3) to calculate the cell displacement, that is, the difference between the start and end coordinates? (Of course, this question is really connected with first two questions)

Thank you very much!

Эрвин Визард

unread,
Nov 14, 2021, 5:07:14 PM11/14/21
to Morpheus users
Maybe, I found the answer:
CellTypes —> MotilityReporter.
пятница, 12 ноября 2021 г. в 11:10:13 UTC+3, Эрвин Визард:

Lutz Brusch

unread,
Nov 15, 2021, 7:35:55 AM11/15/21
to Morpheus users
Hi Эрвин,

yes, you are right.
The MotilityReporter inside a CellType calculates these observables for each cell (which needs two corresponding Properties to store that data). You may then output the data with Analysis/Logger or even make cell behaviors dependent on these data. Specifically,
1) cell.center.x, cell.center.y, ... are automatically provided model symbols that are updated for each cell and every MCS
2) velocity is clear and if needed, you get the distance from MotilityReporter/Velocity multiplied by the time step
3) displacement is calculated for each cell by MotilityReporter/Displacement

You may also use Mappers to calculate statistics across all cells (map to a Variable in Global with Mapper in Global) or only across those cells of a selected CellType (map the Property to a Variable in CellType with Mapper in CellType).

In addition, the Analysis section offers CellTracker, DisplacementTracker and ClusteringTracker to automatically output such observables (without the need to extend the model in CellType by observables).

Best,
Lutz

Эрвин Визард

unread,
Nov 20, 2021, 2:58:59 PM11/20/21
to Morpheus users
Lutz, thank you!
It works well!

понедельник, 15 ноября 2021 г. в 15:35:55 UTC+3, Lutz Brusch:
Reply all
Reply to author
Forward
0 new messages