Hi,
I have not run your case since your "mmp" case is not standard MRST in getBenchmarkMixture, but I can see at least one issue: You are using "value" inside the interpolation calls, which will remove derivatives. The code needs to work with AD variables to be
able to simulate - by removing derivatives, you are likely making the problem difficult for the solver to converge. You may want to have a look at assignSGOF to look at how a SGOF table is set up when parsed from an input file. I am not sure if we support
interp1 with extrapolation, but I could be wrong. interpTable is what we normally use, e.g.
@(s) interpTable(SOF2(:,1), SOF2(:,2), s)
and then make sure that the table covers saturations from 0 to 1 by adding the endpoints if needed. I have done this in the attached script.
Hope this helps!
Best regards,
Olav