Skip to content

Commit 5693bd2

Browse files
committed
Remove unnecesary align and use X instead of chi for ALE coordinates
1 parent c927ff7 commit 5693bd2

10 files changed

+29
-58
lines changed

docs/_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ execute:
1717

1818
# Define the name of the latex output file for PDF builds
1919
latex:
20+
latex_engine: xelatex
2021
latex_documents:
2122
targetname: book.tex
2223

@@ -39,6 +40,7 @@ sphinx:
3940
config:
4041
html_last_updated_fmt: "%b %d, %Y"
4142
suppress_warnings: [ "mystnb.unknown_mime_type" ]
43+
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
4244

4345
launch_buttons:
4446
notebook_interface: "jupyterlab"

docs/getting_started.md

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ When loading a problem file, OasisMove will start by looking inside the `problem
3737
look in the current working directory. If the problem you have specified after `problem=` is not located in either locations, an error will occur.
3838
```
3939

40-
## References
4140

4241
```{bibliography} references.bib
4342
:filter: docname in docnames

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
[OasisMove](https://github.com/KVSlab/OasisMove) is a high-level/high-performance open-source Navier-Stokes solver
44
written in Python/[FEniCS](https://fenicsproject.org/), and is an extension of the computational fluid dynamics (CFD)
55
solver [Oasis](https://github.com/mikaem/Oasis). In OasisMove the Navier-Stokes equations are expressed in the arbitrary
6-
Lagrangian-Eulerian formulation, which is suitable for handling moving domains. Through verification the solver has
6+
Lagrangian-Eulerian (ALE) formulation, which is suitable for handling moving domains. Through verification the solver has
77
shown to follow theoretical convergence rates, begin second order accurate in time, and second and third order accurate
8-
in space with P1/P1 and P2/P1 finite elements. Through validation the solver has showed good agreement with existing
8+
in space with $\mathbb{P_1}/\mathbb{P_1}$ and $\mathbb{P_2}/\mathbb{P_1}$ finite elements. Through validation the solver has showed good agreement with existing
99
benchmark results, and demonstrates the ability of the solver to capture vortex patterns in transitional and
1010
turbulent-like flow regimes.
1111

docs/movingcylinder.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,14 @@ frequency of the oscillations are defined as:
3636

3737
```{math}
3838
:label: eq-freq
39-
\begin{align}
40-
f = \frac{St U_{\infty}F}{D}.
41-
\end{align}
39+
f = \frac{St U_{\infty}F}{D}.
4240
```
4341

4442
Furthermore, the cylinder position followed a sinusoidal profile in the transverse direction to the flow:
4543

4644
```{math}
4745
:label: eq-sine
48-
\begin{align}
49-
\mathbf x(\mathbf \chi, t) = (0, A \sin (2 \pi f t )),
50-
\end{align}
46+
\mathbf x( \mathbf X, t) = (0, A \sin (2 \pi f t )),
5147
```
5248

5349
where $A = A_{ratio}D$ is the amplitude.
@@ -78,9 +74,7 @@ $C_L$) coefficient defined as:
7874

7975
```{math}
8076
:label: eq-force
81-
\begin{align}
8277
C_D = \frac{2 F_D}{\rho U_\infty^2 D}, \qquad C_L = \frac{2F_L}{\rho U_\infty^2 D},
83-
\end{align}
8478
```
8579

8680
stored in the `forces.txt` file. In {numref}`vel-cylinder` we display the resulting velocity field, where we have added
@@ -127,12 +121,9 @@ Reynolds number by definition:
127121

128122
```{math}
129123
:label: eq-re
130-
\begin{align}
131124
\text{Re } = \frac{U_{\infty} D}{\nu}
132-
\end{align}
133125
```
134126

135-
## References
136127

137128
```{bibliography} references.bib
138129
:filter: docname in docnames

docs/movingtg.md

+10-16
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,30 @@ absence of body forces, $\mathbf{f} = 0$, namely:
1717

1818
```{math}
1919
:label: eq-tg3d
20-
\begin{align}
21-
\mathbf u(\mathbf x,t = 0) &= (u(\mathbf x),v(\mathbf x),w(\mathbf x)\\
20+
\mathbf u(\mathbf x,t = 0) &= (u(\mathbf x),v(\mathbf x),w(\mathbf x))\\
2221
u(\mathbf x) &= + \sin(x) \cos(y) \cos(z) \\
2322
v(\mathbf x) &= -\cos(x) \sin(y) \cos(z) \\
2423
w(\mathbf x) &= 0 \\
2524
p(\mathbf x,t=0) &= \frac{1}{16}(\cos(2x) + \cos(2y)) (\cos(2z) + 2).
26-
\end{align}
2725
```
2826

2927
The domain boundaries are prescribed a movement described by the following mesh motion from Fehn et al.
3028
{cite}`fehn2021high`:
3129

3230
```{math}
3331
:label: eq-tg3d-d
34-
\begin{align}
35-
\mathbf x(\mathbf \chi,t) &= \mathbf \chi + A_0 \sin \left(\frac{2 \pi t}{T_G}\right)
32+
\mathbf x(\mathbf X,t) &= \mathbf X + A_0 \sin \left(\frac{2 \pi t}{T_G}\right)
3633
\begin{pmatrix}
37-
\sin \left(2\pi \frac{\chi_2 + L / 2}{L}\right) \sin\left(2\pi \frac{\chi_3 + L / 2}{L}\right) \\
38-
\sin\left(2\pi \frac{\chi_1 + L / 2}{L}\right) \sin\left(2\pi \frac{\chi_3 + L / 2}{L}\right) \\
39-
\sin\left(2\pi \frac{\chi_1 + L / 2}{L}\right) \sin\left(2\pi \frac{\chi_2 + L / 2}{L}\right)
34+
\sin \left(2\pi \frac{X_2 + L / 2}{L}\right) \sin\left(2\pi \frac{X_3 + L / 2}{L}\right) \\
35+
\sin\left(2\pi \frac{X_1 + L / 2}{L}\right) \sin\left(2\pi \frac{X_3 + L / 2}{L}\right) \\
36+
\sin\left(2\pi \frac{X_1 + L / 2}{L}\right) \sin\left(2\pi \frac{X_2 + L / 2}{L}\right)
4037
\end{pmatrix}\\
41-
\mathbf w (\mathbf \chi, t) &= \frac{\partial \mathbf x}{\partial t}
42-
\end{align}
38+
\mathbf w (\mathbf X, t) &= \frac{\partial \mathbf x}{\partial t}
4339
```
4440

45-
where $\mathbf \chi = (\chi_1, \chi_2)$ are the ALE coordinates, $A_0=\pi / 6$ is the amplitude, and $T_G=20$ is the
46-
period. Further parameters include the total simulation time $T$, and $L=1$ describing the height, width, and depth of
47-
the box mesh. By default, the Reynolds number is set to Re = $1/\nu=1600$.
41+
where $\mathbf X = (X_1, X_2, X_3)$ are the ALE coordinates, $A_0=\pi / 6$ is the amplitude, and $T_G=20$ is the period.
42+
Further parameters include the total simulation time $T$, and $L=1$ describing the height, width, and depth of the box
43+
mesh. By default, the Reynolds number is set to $\text{Re} = 1/\nu = 1600$.
4844

4945
## (HPC) Simulation in OasisMove
5046

@@ -87,7 +83,7 @@ resolution parameters $N_x=32$, $N_y=32$, and $N_z=32$. In contrast to the 2D [m
8783
the number of tetrahedral cells are now computed using the following formula:
8884

8985
```{math}
90-
\text{Number of tetrahedral cells } = 6\times N_x \times N_y \times N_z,
86+
\text{Number of tetrahedral cells } = 6\times N_x \times N_y \times N_z,
9187
```
9288

9389
resulting in a total of 196 608 cells using the default parameters. To increase the mesh resolution, we can supply these
@@ -98,8 +94,6 @@ we can run the following command:
9894
$ oasismove NSfracStepMove problem=MovingTaylorGreen3D Nx=50 Ny=50 Nz=50
9995
```
10096

101-
## References
102-
10397
```{bibliography} references.bib
10498
:filter: docname in docnames
10599
```

docs/movingvortex.md

+5-12
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,20 @@ body forces, $\mathbf{f} = 0$, namely:
1414

1515
```{math}
1616
:label: eq-vortex
17-
\begin{align}
1817
\mathbf u(\mathbf x,t) &= (-\sin (2\pi x_2), \sin(2\pi x_1))e^{-4\nu \pi^2 t}\\
1918
p(\mathbf x,t) &= -\cos(2\pi x_1)\cos(2\pi x_2)e^{-8\nu \pi^2 t}
20-
\end{align}
2119
```
2220

2321
where $\mathbf x = (x_1, x_2)$ are the Euclidean coordinates, and $\nu = 0.025$ $\text{m}^2$/s. Furthermore, the mesh
2422
velocity $\mathbf w$ is determined by the following displacement field:
2523

2624
```{math}
2725
:label: eq-vortex-d
28-
\begin{align}
29-
\mathbf x(\mathbf \chi,t) &= \mathbf \chi + A_0 \sin \left(\frac{2 \pi t}{T_G}\right) \left(\sin\left(2\pi \frac{\chi_2 + L / 2}{L}\right),\sin\left(2\pi \frac{\chi_1 + L / 2}{L}\right)\right)\\
30-
\mathbf w (\mathbf \chi, t) &= \frac{\partial \mathbf x}{\partial t}
31-
\end{align}
26+
\mathbf x(\mathbf X , t) &= \chi + A_0 \sin \left(\frac{2 \pi t}{T_G}\right) \left(\sin\left(2\pi \frac{\chi_2 + L / 2}{L}\right),\sin\left(2\pi \frac{\chi_1 + L / 2}{L}\right)\right)\\
27+
\mathbf w(\mathbf X , t) &= \frac{\partial \mathbf x}{\partial t}
3228
```
3329

34-
where $\mathbf \chi = (\chi_1, \chi_2)$ are the ALE coordinates, $A_0=0.08$ is the amplitude, $T_G=4T$ is the period
30+
where $\mathbf X= (X_1, X_2)$ are the ALE coordinates, $A_0=0.08$ is the amplitude, $T_G=4T$ is the period
3531
length of the mesh motion, $T$ is the length of one cycle, and $L=1$.
3632

3733
## Simulation in OasisMove
@@ -84,15 +80,12 @@ $ oasismove NSfracStepMove problem=MovingVortex T=1 dt=0.001
8480
When adjusting spatial and temporal resolution is important to know relationship between the cell size and the time-step size, which are closely related through the Courant number ($C$) given by the Courant-Friedrichs-Lewy (CFL) condition:
8581
8682
$$
87-
\begin{align}
88-
C ={\frac {u\,\Delta t}{\Delta x}} < C_{\max },
89-
\end{align}
90-
$$
83+
C ={\frac {u\,\Delta t}{\Delta x}} < C_{\max },
84+
$$ (eq:cfl-vortex)
9185
where $u$ is the velocity magnitude, $\Delta t$ is the time step size, and $\Delta x$ is the length interval. The general consensus is that $C_{\max} = 1$.
9286
9387
```
9488

95-
## References
9689

9790
```{bibliography} references.bib
9891
:filter: docname in docnames

docs/movingwall.md

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ which remains parallel to the x-axis, defined as:
1515

1616
```{math}
1717
:label: eq-wall-height
18-
\begin{equation}
1918
h(t) = h_0 (1 + \epsilon e^{-i\omega t}),
20-
\end{equation}
2119
```
2220

2321
where $\omega$ is the pulsation of the movement, $h_0$ is the mean distance between the symmetry axis $(y = 0)$ and the
@@ -56,7 +54,6 @@ name: vel-wall
5654
On top, the grid displacement, and on the bottom, the velocity field for the wall-driven channel flow, where the vector arrows have been scaled by the velocity magnitude.
5755
```
5856

59-
## References
6057

6158
```{bibliography} references.bib
6259
:filter: docname in docnames

docs/parameters.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,12 @@ Ny = 50
5858
By adjusting `Nx` and `Ny` we adjust the resolution of the computational domain, which for the `DrivenCavity` problem is
5959
a 2D unit square mesh consisting of triangular elements. The parameters `Nx` and `Ny` determine the number of uniform
6060
cell intervals in the $x$ and $y$ direction, respectively. These parameters can also be used to compute the totan number
61-
of triangular cells (in 2D) or tetrehedral cells (in 3D) the computational domain consists of:
61+
of triangular cells in 2D: or tetrehedral cells (in 3D) the computational domain consists of:
6262

6363
```{math}
64-
\begin{align}
65-
\text{Number of cells (2D) } &= 2 \times N_x \times N_y \\[0.5em]
66-
\text{Number of cells (3D) } &= 6 \times N_x \times N_y \times N_z
67-
\end{align}
64+
\text{Number of cells (2D) } &= 2 \times N_x \times N_y \\
65+
\text{Number of cells (3D) } &= 6 \times N_x \times N_y \times N_z
6866
```
69-
7067
### `Fluid` parameters
7168

7269
Fluid parameters are related to the fluid properties. In regard to the `DrivenCavity`

docs/restart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ the `Checkpoint` folder:
3636
$ oasismove NSfracStep solver=IPCS_ABCN problem=DrivenCavity restart_folder=results_driven_cavity/data/1/Checkpoint
3737
```
3838

39-
The simulation should now restart at the latest checkpoint, and continue as normal until $T=10.
39+
The simulation should now restart at the latest checkpoint, and continue as normal until $T=10$.
4040

4141
### Restarting a finished simulation
4242

docs/stenosis.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ implementation of backflow stabilization is general, and works for both rigid an
1414
name: stenosis-fig
1515
---
1616
A schematic of the two-dimensional stenosis model with a slight eccentricity of the stenosis, borrowed from
17-
Varghese et al. {cite}`varghese2007direct`.
17+
Varghese et al.
1818
```
1919

2020
## Problem description
@@ -46,22 +46,22 @@ rather common in cardiovascular flows, particularly in blood flow in large vesse
4646
left atrium. Because backflow is a naturally occurring physiologic phenomenon, careful treatment is necessary to
4747
realistically model backflow without artificially altering the local flow dynamics. To achieve this we consider the
4848
first backflow stabilization method first proposed by Bazilevs et al. {cite}`bazilevs2009patient` and rigorously tested
49-
by Moghadam et al. {cite}`esmaily2011comparison`. In short, the method modifies the weak formulation of the
49+
by Moghadam et al. In short, the method modifies the weak formulation of the
5050
Navier-Stokes equations by adding a backflow stabilization term for the Neumann boundaries, in this case the outlet.
5151
Specifically, the following convective traction term is added to the weak form on each Neumann boundary to be
5252
stabilized:
5353

5454
```{math}
5555
:label: eq-weak
56-
-\beta \int_{\partial \Omega} (\mathbf u \cdot \mathbf n)\_\mathbf u \cdot \mathbf v \, \text{d}s,
56+
-\beta \int_{\partial \Omega} (\mathbf u \cdot \mathbf n)\_\mathbf u \cdot \mathbf v \, \text{d}s,
5757
```
5858

5959
where $\beta$ is a positive coefficient between 0.0 and 1.0, $\mathbf u$ is the velocity vector, $\mathbf v$ is the
6060
velocity test function, $\partial \Omega$ denotes the boundary, and $(\mathbf u \cdot \mathbf n)\_$ is defined as:
6161

6262
```{math}
6363
:label: eq-weak2
64-
(\mathbf u \cdot \mathbf n)\_ \,=\, \frac{\mathbf u\cdot \mathbf n - \| \mathbf u \cdot \mathbf n\|} {2}.
64+
(\mathbf u \cdot \mathbf n)\_ \,=\, \frac{\mathbf u\cdot \mathbf n - \| \mathbf u \cdot \mathbf n\|}{2}.
6565
```
6666

6767
In OasisMove, the backflow stabilization method is applied by supplying the
@@ -120,8 +120,6 @@ The velocity field for the stenosis problem without (top) and with (bottom) back
120120
arrows that have been scaled by the velocity magnitude.
121121
```
122122

123-
## References
124-
125123
```{bibliography} references.bib
126124
:filter: docname in docnames
127125
```

0 commit comments

Comments
 (0)