You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p><code>membranes::Vector</code>: All membrane meshes.</p></li>
229
229
<li><p><code>next_membid::Ref{MEDYAN.MembId}</code>: Next memb id</p></li>
230
230
<li><p><code>membid2membidx::Dict{MEDYAN.MembId, UInt32}</code>: map from memb id to index memb indexes can change whenever a memb is removed, but id’s are stable</p></li>
<divclass="code-copy-outer-scaffold"><divclass="sourceCode" id="cb2"><preclass="sourceCode julia code-with-copy"><codeclass="sourceCode julia"><spanid="cb2-1"><ahref="#cb2-1" aria-hidden="true" tabindex="-1"></a><spanclass="fu">is_minimized</span>(c<spanclass="op">::</span><spanclass="dt">Context</span>, ball<spanclass="op">::</span><spanclass="dt">Union{BallIdx, Tag{BallIdx}}</span>)<spanclass="op">::</span><spanclass="dt">Bool</span></span></code></pre></div><buttontitle="Copy to Clipboard" class="code-copy-button"><iclass="bi"></i></button></div>
228
+
<p>Return <code>true</code> if the ball has been minimized (i.e. its position has been updated by <ahref="../docstrings/medyan.minimize_energy--84c4aeab5457d3ee.html"><code>minimize_energy!</code></a> since it was last created or modified).</p>
229
+
<p>Balls are marked as not minimized when created with <ahref="../docstrings/medyan.make_ball--ae25720dbd2acec6.html"><code>make_ball!</code></a> or when their <code>position</code> or <code>radius</code> is changed via <ahref="../docstrings/medyan.update_ball--83d0c0fbbdbab087.html"><code>update_ball!</code></a>. All balls are marked as minimized at the end of <ahref="../docstrings/medyan.minimize_energy--84c4aeab5457d3ee.html"><code>minimize_energy!</code></a>.</p>
<li><code>state::SVector{3, Int64}=SA[0,0,0]</code>: Three-component state vector for chemical reactions</li>
220
+
<li><code>is_minimized::Bool=false</code>: Whether the ball is marked as minimized. By default balls are not minimized when created. Set to <code>true</code> to create a ball that is already marked as minimized.</li>
Copy file name to clipboardExpand all lines: julia-docs/dev/docstrings/medyan.update_ball--83d0c0fbbdbab087.html
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -217,8 +217,9 @@ <h1>Keyword Arguments</h1>
217
217
<li><code>radius::Union{Nothing, Float32}=nothing</code>: New radius (nm)</li>
218
218
<li><code>stiffness::Union{Nothing, Float32}=nothing</code>: New stiffness (pN/nm)</li>
219
219
<li><code>state::Union{Nothing, SVector{3, Int64}}=nothing</code>: New state vector</li>
220
+
<li><code>is_minimized::Union{Nothing, Bool}=nothing</code>: Whether the ball is marked as minimized. Defaults to <code>false</code> when <code>position</code> or <code>radius</code> is changed, otherwise unchanged. Set explicitly to override the default behavior.</li>
<li><p><code>membranes::Vector</code>: All membrane meshes.</p></li>
274
274
<li><p><code>next_membid::Ref{MEDYAN.MembId}</code>: Next memb id</p></li>
275
275
<li><p><code>membid2membidx::Dict{MEDYAN.MembId, UInt32}</code>: map from memb id to index memb indexes can change whenever a memb is removed, but id’s are stable</p></li>
0 commit comments