Why the heat released by CoupledForce and calculate by SideDiffusiveFluxIntegral are slightly different? #30060
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
Both of these integrals are computed using a quadrature. And unlike in finite volume where the integral in the postprocessing is the exact same as the one when forming the residual, in finite element both integrals are distinct. The divergence theorem which guarantees that our volumetric integral also ensures the conservation of sum_of_surface_fluxes + volume_source/sinks suffers from this quadrature integration error. You could raise the order of the numerical quadrature in the Executioner/quadrature block. Refining further can help, though there might be a limit if there is an error from the quadrature
how big is it? |
Beta Was this translation helpful? Give feedback.
-
|
Oh thanks, I remember your description. But for LAGRANGE on geometric element PRISM6, the max order is FIRST, and it cannot be SECOND. For HERMITE on geometric element PRISM6, the max order is CONSTANT. And for MONOMIAL, it will edit too much time for me because the temp will become a element variable. I will try to modify it if I have time. |
Beta Was this translation helpful? Give feedback.
-
|
Dirichlet BC does not provide the exact conservation with the way how you evaluate the heat flux on the Dirichlet boundary. But it does have the consistency, i.e. when refining the mesh, the difference will be getting smaller. If conservation is a concern, you can use Robin BC. |
Beta Was this translation helpful? Give feedback.






The leakage on the boundary needs to be evaluated with the solution directly based on the boundary condition$h(T-T_\infty)+ k\nabla T\cdot\vec{n}=0$ , i.e. $-k\nabla T\cdot\vec{n} = h(T-T_\infty)$ . It needs to be $\oint h(T-T_\infty)dS$ but not with the gradient of the solution. If you use Dirichlet BC, an extra postprocessing step is needed to get the conservative leakage (this paper can help understanding this https://doi.org/10.1006/jcph.2000.6577).