Commit 1e659ed5 authored by Matthieu Constant's avatar Matthieu Constant
Browse files

good poiseuille

parent d7bbafde
Pipeline #4596 passed with stage
in 36 seconds
......@@ -70,12 +70,12 @@ class Poiseuille(unittest.TestCase) :
fluid.set_strong_boundary("RightUp",1,0)
fluid.set_strong_boundary("RightDown",1,0)
fluid.load_msh("mesh.msh")
fluid.set_weak_boundary("LeftUp","velocity",[lambda x : 1/(20*mu)*x[:,1]*(1-x[:, 1]),0])
fluid.set_weak_boundary("LeftDown","velocity",[lambda x : 1/(20*mu)*x[:,1]*(1-x[:, 1]),0])
fluid.set_weak_boundary("Bottom","Wall")
fluid.set_weak_boundary("Top","Wall")
fluid.set_weak_boundary("RightUp","pressure",[0])
fluid.set_weak_boundary("RightDown","pressure",[0])
fluid.set_open_boundary("LeftUp",velocity=[lambda x : 1/(20*mu)*x[:,1]*(1-x[:, 1]),0])
fluid.set_open_boundary("LeftDown",velocity=[lambda x : 1/(20*mu)*x[:,1]*(1-x[:, 1]),0])
fluid.set_wall_boundary("Bottom")
fluid.set_wall_boundary("Top")
fluid.set_open_boundary("RightUp",pressure=0)
fluid.set_open_boundary("RightDown",pressure=0)
ii = 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment