Skip to content

Commit 36305dc

Browse files
authored
Update 07_functions_on_subdomains.ipynb
Changed the sign on the coupling between pressure and stress, such that the correct physical boundary conditions are respected.
1 parent b779816 commit 36305dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/userapi/07_functions_on_subdomains.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2848,10 +2848,10 @@
28482848
"eq_t = Eq(tau.forward, solve(pde_tau, tau.forward), subdomain=lower)\n",
28492849
"\n",
28502850
"# Coupling: p -> txx, tyy\n",
2851-
"eq_txx_tr = Eq(tau[0, 0].forward, p.forward, subdomain=uppertransition)\n",
2852-
"eq_tyy_tr = Eq(tau[1, 1].forward, p.forward, subdomain=uppertransition)\n",
2851+
"eq_txx_tr = Eq(tau[0, 0].forward,- p.forward, subdomain=uppertransition)\n",
2852+
"eq_tyy_tr = Eq(tau[1, 1].forward,- p.forward, subdomain=uppertransition)\n",
28532853
"# Coupling: txx, tyy -> p\n",
2854-
"eq_p_tr = Eq(p.forward, (tau[0, 0].forward + tau[1, 1].forward)/2, subdomain=lowertransition)"
2854+
"eq_p_tr = Eq(p.forward, - (tau[0, 0].forward + tau[1, 1].forward)/2, subdomain=lowertransition)"
28552855
]
28562856
},
28572857
{

0 commit comments

Comments
 (0)