I have a problem with
obtaining stable results of the time dependent problem. In
the beginning results are correct but after few iteration
solution start changing
.
Maybe somebody had similar problem and found solution.
I am trying to solve Fick's Second law:
Using Galerkin's method I have obtain following formulas:
T0 is solution vector obtained from previous time step. T1
is current unknow.
My assemble function is based on a solution of Laplace
problem (from deal.ii examples) and looks like:
http://pastebin.com/Ls5nS95p
Mesh was obtained from gmsh and it is pretty dense. I have
used second order elements. I have applied Dirichlet
boundary condition for several elements in the corners
using VectorTools::interpolate_boundary_values, the value
of the boundary condition is changing with each time step.
Values calculated in previous time steps are copied and
used as a T0 (initial condition) in current time step.
At the beginning results look stable. But after few
iterations solution starts changing unpredictable:
http://imgur.com/a/oDvmP
Code is exactly the same. Each iteration step looks
identical.
Using denser grid cause that solution looks good till the
end of simulation. But
denser grid is
connected with a longer
computation time which I
would like to avoid. It's strange for me
that errors occurs after some time. I've got only basic
FEM training so maybe I miss something. Can I fight
somehow with that errors?
Best regards,
Krzysztof