Error in co2-lab module

23 views
Skip to first unread message

ahmadreza shojaee

unread,
Apr 7, 2026, 9:28:57 AMApr 7
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi,

I am working with the test.m file in the co2lab module using MRST2025b version. It runs the problem successfully. However, there is an error while using normalizeValuesVE function.
Here is the error:
===================================================================
Unrecognized field name "h".

Error in normalizeValuesVE (line 88)
        s = height2finescaleSat(sol.h, sol.hmax, g_top, fluid.res_water, fluid.res_gas);
                                ^^^^^
Error in test (line 81)
[sFine, h, hmax] = normalizeValuesVE(Gt, stateEnd, fluid);
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
===================================================================

I am new to VE models and do not know how to fix this problem. It seems there should be a field in the states solution with the name of h and h_max (maybe similar to s and s_max). 

Could you please help me with this problem?

Kind regards,
Ahmad

MUBARAK KABIRU

unread,
Apr 7, 2026, 10:21:07 AMApr 7
to ahmadreza shojaee, MRST-users: The Matlab Reservoir Simulation Toolbox User Group

I want to download it where I get the password


--
You received this message because you are subscribed to the Google Groups "MRST-users: The Matlab Reservoir Simulation Toolbox User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sintef-mrst...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sintef-mrst/76244a10-5724-486d-ad79-e669d230b05en%40googlegroups.com.

francesc...@sintef.no

unread,
Apr 8, 2026, 4:30:14 AMApr 8
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi Ahmad,

Where did you find the test.m file? In any case I think it is not an up to date example as normalizeValuesVE is a legacy function. For a list of more modern examples you can type "mrstExamples co2lab-ve" at the command line. A good place to start might be exampleVEJohansen.m.

Cheers,
Francesca

ahmadreza shojaee

unread,
Apr 8, 2026, 5:06:18 AMApr 8
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi Francesca,

Thanks for your response and clarification. I found that the test.m file in co2-lab is not a part of the official release. Maybe I have made it a few months ago and just do not remember! Thanks for your help!

Kind regards,
Ahmad

Reply all
Reply to author
Forward
0 new messages