3.2. pyafv.PhysicalParams

class pyafv.PhysicalParams(r=1.0, A0=3.141592653589793, P0=4.8, KA=1.0, KP=1.0, lambda_tension=0.2, delta=0.0)

Physical parameters for the active-finite-Voronoi (AFV) model.

Caveat:

Frozen dataclass is used for PhysicalParams to ensure immutability of instances.

Parameters:
  • r (float) – Radius (maximal) of the Voronoi cells.

  • A0 (float) – Preferred area of the Voronoi cells.

  • P0 (float) – Preferred perimeter of the Voronoi cells.

  • KA (float) – Area elasticity constant.

  • KP (float) – Perimeter elasticity constant.

  • lambda_tension (float) – Tension difference between non-contacting edges and contacting edges.

  • delta (float) – Small offset to avoid singularities in computations.

Attributes

r

Radius (maximal) of the Voronoi cells.

A0

Preferred area of the Voronoi cells.

P0

Preferred perimeter of the Voronoi cells.

KA

Area elasticity constant.

KP

Perimeter elasticity constant.

lambda_tension

Tension difference between non-contacting edges and contacting edges.

delta

Small offset to avoid singularities in computations.

Methods

get_steady_state()

Compute steady-state (l,d) for the given physical parameters.

with_optimal_radius()

Returns a new instance with the radius updated to steady state.

with_delta(delta_new)

Returns a new instance with the specified delta.