8.2. pyafv.PhysicalParams
- class PhysicalParams(r=1.0, A0=3.141592653589793, P0=4.8, KA=1.0, KP=1.0, Lambda=0.2, delta=None)[source]
Physical parameters for the active finite Voronoi (AFV) model.
Warning
Frozen dataclass is used for
PhysicalParamsto ensure immutability of instances.Do not set
deltaunless you know what you are doing.
- Parameters:
r (float) – Radius (maximal) of the Voronoi cells, sometimes denoted as \(\ell\).
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 (float) – Tension difference between non-contacting edges and contacting edges.
delta (float | None) – Contact truncation threshold to avoid singularities in computations; if None, set to 0.45*r.
Attributes
rRadius (maximal) of the Voronoi cells, sometimes denoted as \(\ell\).
A0Preferred area of the Voronoi cells.
P0Preferred perimeter of the Voronoi cells.
KAArea elasticity constant.
KPPerimeter elasticity constant.
LambdaTension difference between non-contacting edges and contacting edges.
deltaContact truncation threshold to avoid singularities in computations.
Methods
Search for the steady-state \((\ell,d)\) of a cell doublet for the given physical parameters (by minimizing total energy).
with_optimal_radius([digits, delta])Returns a new instance of
PhysicalParamswith the maximum radius \(\ell\) (orr) updated to the steady state value \(\ell_0\) of cell doublets.replace(**changes)Returns a new instance of
PhysicalParamswith specified fields replaced by new values.