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
<p>New to <code>svVascularize</code>? Begin with the quickstart tutorial that walks you through generating a vascular tree and running a 0‑D hemodynamic simulation in under five minutes.</p>
Copy file name to clipboardExpand all lines: docs/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ <h2>Automated vascular generation and simulation</h2>
34
34
<divclass="container">
35
35
<h3>About<code>svVascularize</code></h3>
36
36
<p><code>svVascularize</code> (svv) is an <strong>open-source</strong>, <strong>user-friendly</strong> toolkit that algorithmically grows physiologically realistic vascular trees when imaging data are unavailable or incomplete.</p>
37
-
<p><strong>Why it matters:</strong></p>
37
+
<p><strong>Capabilities:</strong></p>
38
38
<ul>
39
39
<li><em>Biofabrication & 3D printing</em> — export watertight VTP/STL meshes ready for extrusion-based printing, <ahref="https://doi.org/10.1126/sciadv.1500758">FRESH</a>/<ahref="https://doi.org/10.1126/sciadv.aaw2459">SWIFT</a> bioprinting, or sacrificial templating. Radii, bifurcation angles, and tapering rules are tunable to match printer resolution and biomaterial rheology.</li>
40
40
<li><em>Patient-specific cardiovascular modelling</em> — fill in unresolved distal vasculature to close boundary conditions for 0D, 1D, or full 3D <ahref="https://simvascular.github.io/">SimVascular</a> flow simulations. Trees can be constrained to an anatomical mask or grown freely inside an organ ROI.</li>
<p>This writes a 0-D solver input file, <code>solver_0d.in</code>, and geometric file, <code>geom.csv</code>, in
64
+
the folder <code>my_tree_0d/</code>. The input file should contain all necessary parameters and inflow conditions to run
65
+
the simulation. By default, 0-D simulations exported via this routine will simulate steady state flow through the
66
+
vascular trees. Time-varying flows can be considered if additional arguments are applied to the
67
+
<code>export_0d_simulation</code> function. Run the solver with <ahref="https://simvascular.github.io/documentation/rom_simulation.html#0d-solver-user-guide"><code>svZeroDSolver</code></a>.</p>
68
+
<h3>Generate and visualise a forest</h3>
69
+
<p>Unlike <code>tree</code>, <code>forest</code> objects are composed by connecting synthetic vascular trees to form fluid circuits
70
+
with a desired number of inlets and outlets. These are especially useful for fabrication and fluid routing problems in which
71
+
control over the start/end points are critical.</p>
72
+
<predata-copy><codeclass="language-python">import pyvista as pv
73
+
from svv.domain.domain import Domain
74
+
from svv.forest.forest import Forest
75
+
76
+
# Creating the Tissue Domain
77
+
cube = Domain(pv.Cube())
78
+
cube.create()
79
+
cube.solve()
80
+
cube.build()
81
+
82
+
# Creating the Vascular Forest Object
83
+
f = Forest()
84
+
f.set_domain(cube)
85
+
f.set_roots()
86
+
f.add(50)
87
+
88
+
# Visualizing the Forest and Domain
89
+
f.show(plot_domain=True)</code></pre>
90
+
<figureclass="figure-center">
91
+
<imgsrc="graphics/quickstart_forest_orbit.gif" alt="Orbit around unconnected vascular forest" width="400" />
92
+
<figcaption> Rotating view of the generated vascular forest </figcaption>
93
+
</figure>
94
+
<p>At this step our vascular forest object remains unconnected and should contain two non-intersecting trees.
95
+
Because we have not specified any special build parameters, these trees adhere to the same default fluid constrains
96
+
and are allowed to grow homogeneously within the tissue domain. Connections among multiple trees is accomplished via
97
+
the <code>forest.connect()</code> method which automatically sets up a two-step optimization problem to form
98
+
connections among sets of tree terminals. </p>
99
+
<predata-copy><codeclass="language-python"># Form connections
0 commit comments