Line Tension#
Definition#
Name |
Mesh>Line Tension |
Type |
Limit |
Defined in |
Vertices |
Iterate over all neighbors of a given vertex. If a current neighbor is of a different type, add \(\gamma\) to the line tension energy. This is the most basic form of the line tension energy.
The line tension energy associated with a vertex is given by:
Where:
\(\gamma_{\text{type}}\) is determined by: - Averaging the \(\gamma\) values of the two vertices forming the edge if flag_avg is true: \(\gamma_{\text{type}} = 0.5 \times (\gamma[\text{type_0}] + \gamma[\text{type_1}])\) - Taking the \(\gamma\) value of the query vertex if flag_avg is false: \(\gamma_{\text{type}} = \gamma[\text{type_0}]\)
(s) is either: - The Euclidean distance between the two vertices if flag_scale is true: \(s = ||\textbf{r}_{\text{query_vertex}} - \textbf{r}_{\text{neighboring_vertex}}||\) - 1.0 if flag_scale is false.
Python calling#
evolver.add_force("Mesh>Limit", {
"gamma": {"1": str(gamma_value)},
"avg": "True",
"scale": "True"})