-
We have a positive pressure gradient from inlet to outlet across a pore networks. Therefore, we expect the fluid to flow in but we get a value of Q>0, which according to OpenPNM means that the fluid is flowing out. Is there any reason as to why this is the case? For context we are evaluating the permeability coefficient using the Darcy's law for which the flow rate is required. We are attaching the code snippit and the outcome of the code. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
You have a lot of extra negatives signs in your code snippet above. I think they look right, but possibly they are the problem. The other problem might be where you are computing the rate. If you use the inlet pores the rate should be positive, but if you use the outlet pore it will be negative (with a magnitude equal to the inlet). |
Beta Was this translation helpful? Give feedback.
-
Hey Jeff, thank you for your response. I have an additional question on top of this, that is, for the stokes law calculation what boundary values (i.e., flow.set_value_BC) should be, is it pressure or velocity? Thank you. |
Beta Was this translation helpful? Give feedback.
You have a lot of extra negatives signs in your code snippet above. I think they look right, but possibly they are the problem. The other problem might be where you are computing the rate. If you use the inlet pores the rate should be positive, but if you use the outlet pore it will be negative (with a magnitude equal to the inlet).