Hi, everyone!
I have a three-dimensional model:
E+u\times B-(1/Rm)* \curl B=g in \Omega
(\partial B)/(\partial t)+\curl E=0 in \Omega
The boundary condition is
B\cdot n=0, E\times n=0 On \partial Omega
here, u represents the velocity field, E represents the electric field, and B represents the magnetic field.
The discrete format of this model is
(E_h^n,F)+(u_h^n \times B_h^{n-1},F )-(B_h^n,\curl F)=(g,F),
(1/\tau)*(B_h^n-B_h^{n-1},C)+(\curl E_h^n,C)=0.
In the code, I do the decoupling operation, which involves the exact solution with respect to the values of u. I used two types of code to solve these two models, but the convergence order obtained using “Problem” was correct, while it was incorrect when changed to “varf”.
Blockquote
solver_EB_3D.edp (6.2 KB)
solver_EB3D_save.edp (6.3 KB)