Projection of fine mesh solution to coarse mesh in order to use it for error estimates. #4431
-
Hello, I am trying to project a fine mesh solution to a coarse mesh in order to use it for error estimates. By reading the documentation, specifically The problem I am trying to solve is the stationary Convection-Diffusion Below I provide the code for the fine mesh solution.
After I do a similar thing in order to obtain the coarse mesh solution I am using the code below for the projection
and I get the following results
Also when I use the two methods mentioned above I don't enforce the boudnary conditions because i get this:
Does this mean that my projection does not 'obey' the boundary conditions? Thank you for taking the time to answer my queastion. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm pretty sure you're getting different results because you need to call And regarding the boundary condition error you're unfortunately right. We don't enforce boundary conditions for projection where there are multiple meshes. |
Beta Was this translation helpful? Give feedback.
I'm pretty sure you're getting different results because you need to call
Projector.project
to perform the actual computation. This is exactly what theproject
free function does so you should get the same answer.And regarding the boundary condition error you're unfortunately right. We don't enforce boundary conditions for projection where there are multiple meshes.