How to include the values on the surfaces? #1066
-
Could you please teach me how to include the values on the surfaces (boundaries)? The code below shows a cube with constant values on the left and the right surfaces. The values are 25 on the left and 0 on the right. No other boundary conditions on the rest of the surfaces. The image below shows my result. As you can see, the max value is slightly smaller than 25 and the min value is slightly bigger than 0. Is there a way to get the values on the surfaces? I also need to extract the values on the surfaces for other cases.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Please stop putting questions in issues. That's what discussions is for. |
Beta Was this translation helpful? Give feedback.
-
Your interpretation is incorrect. You may find this notebook instructive. |
Beta Was this translation helpful? Give feedback.
-
FiPy numerically solves PDEs on cell centers, not on face centers. It is therefore not particularly meaningful to talk about differences between values at face centers and some analytical solution. It is meaningful to compare the cell center values to your analytical solution. If refining the mesh gets you closer to the answer you want, then refine the mesh. |
Beta Was this translation helpful? Give feedback.
FiPy numerically solves PDEs on cell centers, not on face centers. It is therefore not particularly meaningful to talk about differences between values at face centers and some analytical solution. It is meaningful to compare the cell center values to your analytical solution. If refining the mesh gets you closer to the answer you want, then refine the mesh.