Issue of using non-uniform mesh in THM #27435
-
Hi all, I would like to use non-uniform mesh in the pipe component. The input file is shown below: I find there's an abrupt change in pressure at the junction. How to fix this problem? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hello Some junctions will have a pressure loss. It s expected and it's physical. Mixing flows, changing directions etc come at a cost @joshuahansel will know whether this is the case for this input Guillaume |
Beta Was this translation helpful? Give feedback.
-
If you just want to have varying element sizes along a pipe, you don't need junctions. You can specify multiple values in the "length" and "n_elems" parameters for each of your subsections. Please try that to see if you still get the jump. Nothing in your input file suggests there should be a jump there (physically there should be no loss there). If you still get the jump, that suggests it related to the transition of the element sizes, not the presence of the junction component. In that case, I suspect the slope reconstruction to be at fault. Try setting "rdg_slope_reconstruction = none" and see if the jump persists. These aren't solutions, just troubleshooting. |
Beta Was this translation helpful? Give feedback.
I tried "rdg_slope_reconstruction = FULL", and it appears to resolve the issue. This means that the jump is an artifact of spatial discretization error. We've seen this kind of behavior before.