Skip to content

Commit 23178a9

Browse files
authored
Merge pull request #61 from ktbolt/Update-Simulation-for-svMultiPhysics-updates_58
Update simulation for sv multi physics updates 58
2 parents 8a43417 + 01419fa commit 23178a9

File tree

95 files changed

+442
-3317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+442
-3317
lines changed
Lines changed: 34 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<a href="meshing.html">Meshing</a>
102102
</div>
103103
<div class="navSubLink active">
104-
<a href="flowsolver.html">Simulation</a>
104+
<a href="cfd_simulation.html">CFD Simulation</a>
105105
</div>
106106
<div class="navSubLink">
107107
<a href="multi_physics.html">MultiPhysics</a>
@@ -159,56 +159,31 @@ <h3>Download</h3>
159159
<h4 class="clickLink https://simtk.org/frs/download_confirm.php/file/5114/CylinderProject.zip?group_id=930">Cylinder Example Project</h4>
160160
</div>
161161
<div style="padding: 0">
162-
<h3>Simulation Guide</h3>
162+
<h3>CFD Simulation Guide</h3>
163163
</div>
164164
<!-- The second class after "skipTo" is the ID of the <span> element
165165
of the <zero-md> element that renders the markdown file -->
166166
<div>
167167
<h4 class="skipTo introduction">Introduction</h4>
168168
</div>
169169
<div>
170-
<h4 class="skipTo overview">Overview</h4>
170+
<h4 class="skipTo simulation_input_data">Simulation Input Data</h4>
171171
</div>
172172
<div>
173-
<h4 class="skipTo bcphysics">Boundary Conditions</h4>
174-
</div>
175-
<div>
176-
<h4 class="skipTo creatingjob">Creating Job</h4>
177-
</div>
178-
<div>
179-
<h4 class="skipTo basic">Basic Parameters</h4>
180-
<div>
181-
<p class="skipTo inflowbc">Inflow BC</p>
182-
<p class="skipTo outletbc">Outlet BC</p>
183-
<p class="skipTo wallproperties">Wall Properties</a>
184-
<p class="skipTo solverparameters">Solver Parameters</p>
185-
<p class="skipTo creatingdata">Creating Data Files</p>
186-
<p class="skipTo runningjob">Running Job</a>
187-
</div>
188-
</div>
189-
<div>
190-
<h4 class="skipTo postprocess">Postprocessing</h4>
173+
<h4 class="skipTo boundary_conditions">Boundary Conditions</h4>
191174
</div>
175+
176+
<!-- ==================== CFD Simulation Tool ==================== -->
192177
<div>
193-
<h4 class="skipTo examples">Examples</h4>
178+
<h4 class="skipTo cfd_simulation_tool"> CFD Simulation Tool </h4>
194179
<div>
195-
<p class="skipTo example2">Example 2</p>
196-
<p class="skipTo example3">Example 3</p>
197-
<p class="skipTo example4">Example 4</p>
198-
</div>
199-
</div>
200-
<div>
201-
<h4 class="skipTo appendix">Appendix</h4>
180+
<p class="skipTo basic_parameters_panel"> Basic Parameters panel </p>
181+
<p class="skipTo inlet_outlet_bcs_panel"> Inlet and Outlet BCs panel </p>
182+
<p class="skipTo solver_parameters_panel"> Solver parameters panel </p>
183+
<p class="skipTo create_files_and_run_simulation_panel"> Create Files and Run Simulation panel </p>
202184
<div>
203-
<p class="skipTo solverconfiguration">Configurating Solvers</p>
204-
<p class="skipTo presolvercommands">svPre Commands</p>
205-
<p class="skipTo bctfile">BCT File</p>
206-
<p class="skipTo solverinp">solver.inp Guide</p>
207-
<p class="skipTo impbcfile">Impedance BC Files</p>
208-
<p class="skipTo rcrtfile">RCR BC File</p>
209-
<p class="skipTo cortfile">COR BC File</p>
210-
</div>
211185
</div>
186+
212187
</section>
213188

214189
<!-- The following code defines the place where the markdown files are rendered -->
@@ -221,77 +196,36 @@ <h4 class="skipTo appendix">Appendix</h4>
221196
<!-- The first <zero-md> element should have the id="math" attribute -->
222197
<!-- All <zero-md> elements should have the "no-shadow" attribute -->
223198
<span id="introduction">
224-
<zero-md id="math" src="flowsolver/intro/readme.md" no-shadow></zero-md>
225-
</span>
226-
<span id="overview">
227-
<zero-md src="flowsolver/overview/readme.md" no-shadow></zero-md>
228-
</span>
229-
<span id="bcphysics">
230-
<zero-md src="flowsolver/bc_physics/readme.md" no-shadow></zero-md>
231-
</span>
232-
<span id="creatingjob">
233-
<zero-md src="flowsolver/creating_job/readme.md" no-shadow></zero-md>
234-
</span>
235-
<span id="basic">
236-
<zero-md src="flowsolver/basic/readme.md" no-shadow></zero-md>
199+
<zero-md id="math" src="cfd_simulation/introduction/readme.md" no-shadow></zero-md>
237200
</span>
238-
<span id="inflowbc">
239-
<zero-md src="flowsolver/inflow_bc/readme.md" no-shadow></zero-md>
201+
<span id="simulation_input_data">
202+
<zero-md src="cfd_simulation/simulation_input_data/readme.md" no-shadow></zero-md>
240203
</span>
241-
<span id="outletbc">
242-
<zero-md src="flowsolver/outlet_bc/readme.md" no-shadow></zero-md>
204+
<span id="boundary_conditions">
205+
<zero-md src="cfd_simulation/boundary_conditions/readme.md" no-shadow></zero-md>
243206
</span>
244-
<span id="wallproperties">
245-
<zero-md src="flowsolver/wall_properties/readme.md" no-shadow></zero-md>
246-
</span>
247-
<span id="solverparameters">
248-
<zero-md src="flowsolver/solver_parameters/readme.md" no-shadow></zero-md>
249-
</span>
250-
<span id="creatingdata">
251-
<zero-md src="flowsolver/creating_data/readme.md" no-shadow></zero-md>
252-
</span>
253-
<span id="runningjob">
254-
<zero-md src="flowsolver/running_job/readme.md" no-shadow></zero-md>
255-
</span>
256-
<span id="postprocess">
257-
<zero-md src="flowsolver/postprocess/readme.md" no-shadow></zero-md>
258-
</span>
259-
<span id="examples">
260-
<zero-md src="flowsolver/examples/readme.md" no-shadow></zero-md>
261-
</span>
262-
<span id="example2">
263-
<zero-md src="flowsolver/example_2/readme.md" no-shadow></zero-md>
264-
</span>
265-
<span id="example3">
266-
<zero-md src="flowsolver/example_3/readme.md" no-shadow></zero-md>
267-
</span>
268-
<span id="example4">
269-
<zero-md src="flowsolver/example_4/readme.md" no-shadow></zero-md>
270-
</span>
271-
<span id="appendix">
272-
<zero-md src="flowsolver/appendix/readme.md" no-shadow></zero-md>
273-
</span>
274-
<span id="solverconfiguration">
275-
<zero-md src="flowsolver/solver_configuration/readme.md" no-shadow></zero-md>
276-
</span>
277-
<span id="presolvercommands">
278-
<zero-md src="flowsolver/presolver_commands/readme.md" no-shadow></zero-md>
279-
</span>
280-
<span id="bctfile">
281-
<zero-md src="flowsolver/bct_file/readme.md" no-shadow></zero-md>
207+
208+
<!-- ==================== CFD Simulation Tool ==================== -->
209+
<span id="cfd_simulation_tool">
210+
<zero-md src="cfd_simulation/cfd_simulation_tool/readme.md" no-shadow></zero-md>
282211
</span>
283-
<span id="solverinp">
284-
<zero-md src="flowsolver/solver_inp_guide/readme.md" no-shadow></zero-md>
212+
213+
<span id="basic_parameters_panel">
214+
<zero-md src="cfd_simulation/cfd_simulation_tool/basic_parameters_panel/readme.md" no-shadow></zero-md>
285215
</span>
286-
<span id="impbcfile">
287-
<zero-md src="flowsolver/imp_files/readme.md" no-shadow></zero-md>
216+
217+
<span id="inlet_outlet_bcs_panel">
218+
<zero-md src="cfd_simulation/cfd_simulation_tool/inlet_outlet_bcs_panel/readme.md" no-shadow></zero-md>
288219
</span>
289-
<span id="rcrtfile">
290-
<zero-md src="flowsolver/rcrt_file/readme.md" no-shadow></zero-md>
220+
221+
<span id="solver_parameters_panel">
222+
<zero-md src="cfd_simulation/cfd_simulation_tool/solver_parameters_panel/readme.md" no-shadow></zero-md>
291223
</span>
292-
<span id="cortfile">
293-
<zero-md src="flowsolver/cort_file/readme.md" no-shadow></zero-md>
224+
225+
<span id="create_files_and_run_simulation_panel">
226+
<zero-md src="cfd_simulation/cfd_simulation_tool/create_files_and_run_simulation_panel/readme.md" no-shadow></zero-md>
294227
</span>
228+
295229
</section>
296230
</section>
297231
<section class="skipToTopSection">
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Boundary Conditions
2+
3+
The CFD computational 3D domain represents the region of fluid flow for a simulation. It is typically a small anatomical region of interest within the human vasculature. The behavior of the fluid within the 3D domain is governed by interactions with the surrounding vasculature via its 2D boundaries representing vessel inlet and outlet surfaces.
4+
5+
Boundary conditions define how a fluid interacts with the boundaries of a computational domain. They specify the behavior of the fluid at
6+
these boundaries, such as inlets, outlets, and walls, and are necessary to obtain a unique and physically meaningful solution.
7+
For blood flow simulations the boundary conditions define how a fluid interacts with the vascular networks outside of the 3D domain.
8+
It is crucial that they accurately reproduce the physiology of these networks to obtain meaningful cardiovascular simulation results.
9+
10+
Boundary conditions act as constraints on the fluid flow equations. They must be correctly chosen to ensure accurate and stable simulations; incorrect boundary conditions can lead to unstable and divergent results.
11+
12+
13+
## Boundary condition types
14+
15+
Boundary conditions are applied to the finite element mesh walls and inlet/outlet surfaces (aka faces). Inlet and outlet surfaces are assumed to be flat.
16+
17+
The boundaries of a computational domain $\Omega$ are classified as (Fig. 1)
18+
19+
<ol>
20+
<li> <strong>inlet</strong> boundary $\Gamma_g$ - Surfaces where a volumetric flow rate of fluid entering the domain is prescribed. It is used to derive a Dirichlet velocity boundary condition applied in the direction normal to the surface.
21+
<li> <strong>wall</strong> boundary $\Gamma_s$ - This boundary represents the interface between the fluid domain and the vessel wall. Blood flow simulations typically assume a <strong>rigid wall assumption</strong> where a zero velocity condition is applied to vessel surfaces.
22+
</li>
23+
<li> <strong>outflow</strong> boundary $\Gamma_h$ - Surfaces where a uniform pressure value is prescribed.
24+
</ol>
25+
26+
<br> <br>
27+
<figure>
28+
<img class="svImg svImgMd" src="/documentation/cfd_simulation/images/Fig_1.png">
29+
<figcaption class="svCaption" >Fig. 1 &nbsp Boundaries of a fluid domain: inlet ($\Gamma_g$), wall ($\Gamma_s$), and outlet ($\Gamma_h$). </figcaption>
30+
</figure>
31+
32+
33+
### Outlet boundary conditions
34+
35+
There are several boundary conditions that can be used to represent the pressure effects of the downstream vasculature at an outlet surface
36+
37+
<ol>
38+
39+
<li> <strong>Resistance </strong> - Relates the outlet flow to a pressure using $p = p_0 + R * Q$, where $R$ is the resistance parameter that characterizes the downstream vasculature, $p$ is the prescribed pressure, $Q$ is the flow rate passing through the outlet surface.
40+
</li>
41+
42+
<li> <strong>RCR</strong> - Relates the outlet flow to a pressure using 3-element lumped parameter network (LPN): a proximal resistance $R_p$, a capacitance $C$, and a distal resistance $R_d$. (Fig. 2)
43+
</li>
44+
45+
</ol>
46+
47+
<br><br>
48+
<figure>
49+
<img class="svImg svImgMd" src="/documentation/cfd_simulation/images/Fig_2.png">
50+
<figcaption class="svCaption" >Fig. 2 &nbsp An RCR 3-element lumped parameter network </figcaption>
51+
</figure>
52+
53+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<br>
2+
3+
<h2 id="basic_parameters_panel" style="text-align:center;"> Basic Parameters Panel </h2>
4+
5+
The <strong>Basic Parameters Panel</strong> is used to set the physical properties of the fluid used in the simulation
6+
7+
<figure>
8+
<img class="svImg svImgSm" src="/documentation/cfd_simulation/cfd_simulation_tool/images/basic_params_panel.png">
9+
<figcaption class="svCaption"> The <strong>Basic Parameters </strong> panel.
10+
</figcaption>
11+
</figure>
12+
13+
The panel contains two <i>TextBox</i>s used to set property values
14+
15+
<ul style="list-style-type:disc;">
16+
<li> <strong>Fluid Density</strong> The fluid density. Default value 1.0 g/cm³ </li>
17+
<li> <strong>Fluid Viscosity</strong> The fluid viscosity. Default value 0.04 poise [g · cm<sup>-1</sup> · s<sup>-1</sup>] </li>
18+
</ul>
19+
20+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<br>
2+
3+
<h2 id="create_files_and_run_simulation_panel" style="text-align:center;"> Create Files and Run Simulation Panel </h2>
4+
5+
The <strong>Create Files and Run Simulation Panel</strong> is used to execute the svMultiPhysics solver for the fluid simulation.
6+
7+
<figure>
8+
<img class="svImg svImgSm" src="/documentation/cfd_simulation/cfd_simulation_tool/images/create_and_run_panel.png">
9+
<figcaption class="svCaption"> The <strong>Files and Run Simulation</strong> panel.
10+
</figcaption>
11+
</figure>
12+
13+
<ul style="list-style-type:disc;">
14+
<li> <strong>Choose Mesh</strong> - A <i>ComboBox</> used to select the mesh for the simulation. </li>
15+
<li> <strong>Create Data Files for Simulation</strong> When selected the mesh files and solver XML files are created. </li>
16+
<li> <strong>Number of Processors</strong> The number of processors (cores) used by MPI to run the simulation. </li>
17+
<li> <strong>Run Simualtion</strong> When selected the simulation will be run. </li>
18+
</ul>
19+
20+
45.5 KB
Loading
154 KB
Loading
53.7 KB
Loading
39 KB
Loading
63.4 KB
Loading
249 KB
Loading

0 commit comments

Comments
 (0)