Skip to content

Commit 552bfaa

Browse files
authored
Pressure correction equation fix (jorgensd#196)
1 parent 03c4f78 commit 552bfaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: chapter2/ns_code2.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@
391391
"where we have used the two previous time steps in the temporal derivative for the velocity, and compute the pressure staggered in time, at the time between the previous and current solution. The second step becomes\n",
392392
"\n",
393393
"$$\n",
394-
"\\nabla \\phi = -\\frac{\\rho}{\\delta t} \\nabla \\cdot u^* \\qquad\\text{in } \\Omega,\n",
394+
"\\nabla^2 \\phi = \\frac{\\rho}{\\delta t} \\nabla \\cdot u^* \\qquad\\text{in } \\Omega,\n",
395395
"$$\n",
396396
"\n",
397397
"$$\n",

Diff for: chapter2/ns_code2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def __call__(self, x):
252252
# where we have used the two previous time steps in the temporal derivative for the velocity, and compute the pressure staggered in time, at the time between the previous and current solution. The second step becomes
253253
#
254254
# $$
255-
# \nabla \phi = -\frac{\rho}{\delta t} \nabla \cdot u^* \qquad\text{in } \Omega,
255+
# \nabla^2 \phi = \frac{\rho}{\delta t} \nabla \cdot u^* \qquad\text{in } \Omega,
256256
# $$
257257
#
258258
# $$

0 commit comments

Comments
 (0)