Skip to content

Conversation

@cainja
Copy link
Member

@cainja cainja commented Jun 13, 2025

Implementing angiogenesis by adding a PatchGrowthComponent.

Size: xxlarge. (sorry)

The growth component can be registered to a PatchComponentSitesGraph to add edges over the course of a simulation according to the VEGF lattice layer.

Order of operations:

  1. Iterate through all the nodes in the PatchComponentSitesGraph to search for nodes that have an average VEGF in the neighborhood according to the span of the possible offset directions from the node.
  2. The sprouting direction is determined from three possible options: DETERMINISTIC (max VEGF concentration in neighborhood, BIASED (weighted randomly according to the local gradients), RANDOM (random direction)
  3. Temporary edges are tracked and maintained according to the current state of the graph (which can change over the course of the simulation). If edges become perfused on the temporary version of the graph with these edges, the edges are added to the actual graph.
  4. The edges are then updated with hemodynamics according to the calculation strategy - DIVERT (new flow is diverted from the corresponding edge), and COMPENSATORY (new flow is added to the artery).
  5. The radii of the current edges is updated according to the calculation strategy.
  6. Current graph is resolved according to the new state.

Still to be added: some more tests for the Growth component step method.

@cainja cainja self-assigned this Jun 13, 2025
@cainja cainja requested a review from kristaphommatha June 13, 2025 21:15
@cainja cainja added type: feature Improvement or additions to the code base package: patch Related to the patch implementation category: env Related to the env subpackages size: xlarge Estimated size of issue or PR is xlarge labels Jun 13, 2025
@cainja cainja marked this pull request as ready for review June 16, 2025 03:02
Copy link
Contributor

@kristaphommatha kristaphommatha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a partial review, I'll come back and look through it more over the next couple of days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: env Related to the env subpackages package: patch Related to the patch implementation size: xlarge Estimated size of issue or PR is xlarge type: feature Improvement or additions to the code base

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants