Skip to content

Commit 3e6f886

Browse files
committed
Correct update of pressure (#298)
* Correct update of pressure As pointed out by Nachiket Gokhale * Pin jupyterbook * Fix another typo noted by Nachiket Gokhale
1 parent ba47f13 commit 3e6f886

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

chapter2/navierstokes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ As mentioned in the note in [Linear elasticity implementation](./linearelasticit
6868
$w_i=\sum_{j}\left(u_j\frac{\partial}{\partial x_j}\right)u_i = \sum_j u_j\frac{\partial u_i}{\partial x_j}$.
6969
This term can be implemented in FEniCSx as either
7070
`grad(u)*u`, since this expression becomes $\sum_j\frac{\partial u_i}{\partial x_j}u_j$, or as `dot(u, nabla_grad(u))` since this
71-
expression becomes $\sum_i u_i\frac{\partial u_j}{x_i}$. We will use the notation `dot(u, nabla_grad(u))` below since it corresponds more closely to the standard notation $u\cdot \nabla u$.
71+
expression becomes $\sum_i u_i\frac{\partial u_j}{\partial x_i}$. We will use the notation `dot(u, nabla_grad(u))` below since it corresponds more closely to the standard notation $u\cdot \nabla u$.
7272
```
7373

7474
We now move on to the second step in our splitting scheme for the incompressible Navier-Stokes equations. In the first step, we computed the *tentative velocity* $u^*$ based on the pressure from the previous time step.
75-
We may now use the computed tentative velocity to compute the new pressure $p^n$:
75+
We may now use the computed tentative velocity to compute the new pressure $p^{n+1}$:
7676
```{math}
7777
:label: ipcs-two
7878
\langle \nabla p^{n+1}, \nabla q \rangle = \langle \nabla p^n, \nabla q\rangle - \frac{\rho}{\Delta t}\langle \nabla \cdot u^*, q\rangle.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "DOLFINx_Tutorial"
77
version = "0.11.0.dev0"
88
dependencies = [
9-
"jupyter-book<2.0.0",
9+
"jupyter-book<2.0",
1010
"meshio",
1111
"h5py",
1212
"seaborn",

0 commit comments

Comments
 (0)