Dear professor,
I am facing a problem.
Now my code could normally run when it only solve the elastic problem.
However, as you know, I am trying to solve a fluid-structure problem, and the code can not run normally.
For the fespace describing fluid, the code is as following,
" …
fespace Mh(fracture, P1); //definition of the pressure space
Mh up1=0.,up2=0.;
fespace Xh(fracture, Pm); //definition of the velocity component space
Xh [uu,uuB,p]=[0.,0.,0.],[vv,vvB,q]=[0.,0.,0.];// //def1(uu),def1(vv);
Mat B;
//buildMat(fracture, getARGV(“-split”, 1), B, Pk, mpiCommWorld)
createMat(fracture, B, Pm)
macro grad(uu)[dx(uu),dy(uu)]//EOM
macro div1(uu)( dx(uu)+dy(uu#B) )//EOM
varf NS ([uu,uuB,p],[vv,vvB,q])=
int2d(fracture)(idt * (uu * vv+uuB * vvB)+(nu * grad(uu) ’ * grad(vv) +grad(uuB) ’ * grad (vvB)) -div1(uu)q-div1(vv)p + pq1e-10)
+int2d(fracture)(-idt * convect([up1,up2],-dt,up1) * vv-idt * convect([up1,up2],-dt,up2)* vvB)
+on(9,10,11,12, uu=(u-u1f) *idt, uuB=(uB-u2f) * idt)//boundary condition
;
…"
The code reports that is posted as below,
When I modify “createMat(fracture, B, Pm)” to “createMat(fracture, B, [P2,P2])”, the code can run normally, although the results are still wrong.
I do not know the reason. The code file is uploaded to here. Please give me some advice.
NS_parallel_2D.edp (5.7 KB)
Thank you very much.
Best,
Liu