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
Copy file name to clipboardExpand all lines: architecture.html
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -261,7 +261,7 @@
261
261
<h1>Architecture<aclass="headerlink" href="#architecture" title="Link to this heading">¶</a></h1>
262
262
<p>STARK’s public API is straightforward.
263
263
Users work through a single entry point, <codeclass="docutils literal notranslate"><spanclass="pre">Simulation</span></code>, which exposes all physics subsystems.
264
-
Internally, <codeclass="docutils literal notranslate"><spanclass="pre">core::Stark</span></code> orchestrates time stepping and uses SymX’s Newton solves.</p>
264
+
Internally, <codeclass="docutils literal notranslate"><spanclass="pre">Stark</span></code> orchestrates time stepping and uses SymX’s Newton solves.</p>
265
265
<sectionid="component-map">
266
266
<h2>Component Map<aclass="headerlink" href="#component-map" title="Link to this heading">¶</a></h2>
267
267
<preclass="mermaid">
@@ -288,7 +288,7 @@ <h2>Component Map<a class="headerlink" href="#component-map" title="Link to this
288
288
<h2><codeclass="docutils literal notranslate"><spanclass="pre">Simulation</span></code><aclass="headerlink" href="#simulation" title="Link to this heading">¶</a></h2>
289
289
<p><codeclass="docutils literal notranslate"><spanclass="pre">Simulation</span></code> is the single public entry point.
290
290
Constructing it with a <codeclass="docutils literal notranslate"><spanclass="pre">Settings</span></code> object is all that is needed to start a simulation:</p>
<h2><codeclass="docutils literal notranslate"><spanclass="pre">core::Stark</span></code>: The Solver Engine<aclass="headerlink" href="#core-stark-the-solver-engine" title="Link to this heading">¶</a></h2>
414
-
<p><codeclass="docutils literal notranslate"><spanclass="pre">core::Stark</span></code> is the engine that drives the simulation.</p>
412
+
<sectionid="stark-class">
413
+
<h2><codeclass="docutils literal notranslate"><spanclass="pre">Stark</span></code> class<aclass="headerlink" href="#stark-class" title="Link to this heading">¶</a></h2>
414
+
<p><codeclass="docutils literal notranslate"><spanclass="pre">Stark</span></code> is the engine that drives the simulation.</p>
415
415
<p>Its key components are:</p>
416
416
<ulclass="simple">
417
417
<li><p><strong><codeclass="docutils literal notranslate"><spanclass="pre">GlobalPotential</span></code></strong> — the SymX energy registry. Energy models call <codeclass="docutils literal notranslate"><spanclass="pre">global_potential->add_potential(...)</span></code> during construction to register their symbolic expression and the state variables it acts on.</p></li>
418
418
<li><p><strong><codeclass="docutils literal notranslate"><spanclass="pre">Callbacks</span></code></strong> — hook points for injecting logic at fixed moments in the loop: <codeclass="docutils literal notranslate"><spanclass="pre">before_time_step</span></code>, <codeclass="docutils literal notranslate"><spanclass="pre">on_time_step_accepted</span></code>, <codeclass="docutils literal notranslate"><spanclass="pre">after_time_step</span></code>, and <codeclass="docutils literal notranslate"><spanclass="pre">write_frame</span></code>.</p></li>
419
419
<li><p><strong><codeclass="docutils literal notranslate"><spanclass="pre">EventDrivenScript</span></code></strong> — fires lambdas at specified simulation times or on solver events.</p></li>
420
420
<li><p><strong><codeclass="docutils literal notranslate"><spanclass="pre">Settings</span></code></strong> — output paths, time step size, Newton tolerances, contact parameters, and more.</p></li>
421
421
</ul>
422
-
<p>Under normal use you do not interact with <codeclass="docutils literal notranslate"><spanclass="pre">core::Stark</span></code> directly.
422
+
<p>Under normal use you do not interact with <codeclass="docutils literal notranslate"><spanclass="pre">Stark</span></code> directly.
423
423
When writing a custom energy model that extends STARK, you access it through <codeclass="docutils literal notranslate"><spanclass="pre">simulation.get_stark()</span></code>.
424
424
See <aclass="reference internal" href="extending.html"><spanclass="std std-doc">Extending STARK</span></a> for a worked example.</p>
Copy file name to clipboardExpand all lines: extending.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,7 @@ <h2>Example: implicit magnetic attraction<a class="headerlink" href="#example-im
283
283
<p>The force produced by this energy is attractive, and because the term is registered as a SymX potential, STARK also receives the corresponding Hessian contribution automatically.
284
284
This is incorporated to the rest of the physical effects and piped into the optimization pipeline.</p>
0 commit comments