Skip to content

Commit 2935fe0

Browse files
Remove up from fluid_2d_m residual. driven_cavity_2d_porous test case has slightly faster convergence, but still slow
1 parent 99cde2a commit 2935fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Code/Source/solver/fluid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,8 +1430,8 @@ void fluid_2d_m(ComMod& com_mod, const int vmsFlag, const int eNoNw, const int e
14301430
// Residual contribution Birkman term
14311431
// Local residue
14321432
for (int a = 0; a < eNoNw; a++) {
1433-
lR(0,a) = lR(0,a) + mu*K_inverse_darcy_permeability*w*Nw(a)*(u(0)+up(0));
1434-
lR(1,a) = lR(1,a) + mu*K_inverse_darcy_permeability*w*Nw(a)*(u(1)+up(1));
1433+
lR(0,a) = lR(0,a) + mu*K_inverse_darcy_permeability*w*Nw(a)*(u(0));
1434+
lR(1,a) = lR(1,a) + mu*K_inverse_darcy_permeability*w*Nw(a)*(u(1));
14351435
}
14361436
}
14371437

0 commit comments

Comments
 (0)