Skip to content

Commit

Permalink
Merge pull request #2308 from rafael-fuente/master
Browse files Browse the repository at this point in the history
Correct the Poisson equation in the cavity flow example
  • Loading branch information
mloubout authored Feb 13, 2024
2 parents 9535c9a + f68c098 commit bb7491d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cfd/07_cavity_flow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@
"# First order derivatives will be handled with p.dxc\n",
"eq_u =Eq(u.dt + u*u.dx + v*u.dy, -1./rho * p.dxc + nu*(u.laplace), subdomain=grid.interior)\n",
"eq_v =Eq(v.dt + u*v.dx + v*v.dy, -1./rho * p.dyc + nu*(v.laplace), subdomain=grid.interior)\n",
"eq_p =Eq(p.laplace,rho*(1./dt*(u.dxc+v.dyc)-(u.dxc*u.dxc)+2*(u.dyc*v.dxc)+(v.dyc*v.dyc)), subdomain=grid.interior)\n",
"eq_p =Eq(p.laplace,rho*(1./dt*(u.dxc+v.dyc)-(u.dxc*u.dxc)-2*(u.dyc*v.dxc)-(v.dyc*v.dyc)), subdomain=grid.interior)\n",
"\n",
"# NOTE: Pressure has no time dependence so we solve for the other pressure buffer.\n",
"stencil_u =solve(eq_u , u.forward)\n",
Expand Down

0 comments on commit bb7491d

Please sign in to comment.