Porosity based on STATE (MaterialProperty)- cant figure out, what did i do wrong #29041
-
Hi PorousFlow experts, I need help with my Porosity class (where the porosity is updated based on state value) where STATE is another let's look at my simple input file below
so as you can see, there are 2 ways of assigning the porosity:
the porosity showing on Paraview are exactly the same, but the pp are drastically different (only when pp with assign porosity from MOOSE default method PP when assign porosity from my class and below is my class .C i couldnt figure out, what did i do wrong? also you can see the density are a lil bit different too
thank you! Hi @cpgr I tag you since you are the expert here 🥇 quick note: it seems that the problem only occurs when i assign porosity based on state (like below) state_values = '0 1 2 3' varied spatial porosity from .csv file does not give this weird pp/results |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
interesting finding so i let it run a bit, the pp seems to go back to where it should be not even sure why, since state_values = '0 1 2 3' are assigned since INITIAL similar to MOOSE default way |
Beta Was this translation helpful? Give feedback.
I think this is probably expected - making the porosity larger can mean that the pressure drops and could lead to desaturation (negative pressure in this case by convention). You can force the rock to remain saturated using the fully saturated version of the pressure-saturation material, but the pressure will still drop as porosity increases so that the fluid density decreases to keep the rock…