Modifying Cell Volumes in MRST

10 views
Skip to first unread message

ahmadreza shojaee

unread,
May 5, 2025, 9:56:04 AMMay 5
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Dear all,

I’m wondering if it’s possible in MRST to modify the volume of specific cells using a volume multiplier, like this:

G.cells.volumes(i) = G.cells.volumes(i) * Volume_multiplier;

My goal is to make the reservoir behave like an infinite reservoir by assigning a large multiplier to the last cell. Would this approach work as intended? Is there anything else I should consider or update after making this change?

Kind regards,
Ahmad

Olav Møyner

unread,
May 5, 2025, 9:58:27 AMMay 5
to ahmadreza shojaee, MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi Ahmad,

This should work - but you have to do the modification before the pore volume is computed (i.e. when your model is constructed) and make sure that there are no additional calls to computeGeometry after your modification. If you want to modify the pore volumes directly, they are found in model.operators.pv and have the same order as the cells.

Best regards,
Olav

From: sinte...@googlegroups.com <sinte...@googlegroups.com> on behalf of ahmadreza shojaee <ashoj...@gmail.com>
Sent: Monday, May 5, 2025 15:56
To: MRST-users: The Matlab Reservoir Simulation Toolbox User Group <sinte...@googlegroups.com>
Subject: [MRST Users] Modifying Cell Volumes in MRST
 
--
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/2369b700-a435-4019-9f26-25f6cd2df191n%40googlegroups.com.

ahmadreza shojaee

unread,
May 5, 2025, 10:02:31 AMMay 5
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group

Thank you very much for the clarification—this is very helpful.

Kind regards,
Ahmad

Reply all
Reply to author
Forward
0 new messages