Dear Ian,
good questions, thank you.
Yes, regarding motion initialization, the
attached model file "Persistence_2D_with_initialization.xml" is such an extension of your Persistence-2D model. We've
added one line under CellType:
<DirectedMotion strength="(time<time_init)" direction="(cell.center.y-size.y/2), -(cell.center.x-size.x/2), 0.0"/>
to enforce the direction of motion during
an initial transient time (you may lower these 100 time steps by
changing the Constant time_init under Global).
With the choice
direction="(cell.center.y-size.y/2), -(cell.center.x-size.x/2), 0.0"/>
you will initialize clockwise rotation around the center of the lattice. For counter-clockwise rotation change that to
direction="-(cell.center.y-size.y/2), (cell.center.x-size.x/2), 0.0"/>
and you may construct arbitrary vector
fields under Global or even load them from a file and then use the
symbol of such a vector field as direction attribute for DirectedMotion.
For more advanced models, you may also completely replace PersistentMotion by DirectedMotion and add your own submodel for the dynamics of the direction vector in each cell.
To initialize a confluent cell configuration, you can add InitVoronoi.
And for different boundary geometries, you may reset Lattice/Domain to a binary image file,
To change the boundary shape dynamically,
you need to initialize "boundary cells" at defined locations near the
domain boundary, let them adhere to the domain boundary and then shrink
or grow their target volume during the simulation.
Best,
Jörn and Lutz
On 13.01.23 08:00, Ian Wong wrote:
> Hi Lutz
> Thanks! My persistence_2D simulations now show collective rotational motion consistent with the example.
>
> Is
there a way to initialize the simulation so that cells start out with
confluent shape and steady state rotational velocity field, but in a
different confining boundary condition? Right now it takes some time for
cells to establish highly coordinated behaviors, which is slower than
the effect of the boundary
>
> A
more interesting case would be to gradually perturb the confining
boundary and determine the effect on collective migration, but I think
this is a bit more involved
>
> Thanks again for your help, Ian