clip results to smaller area

11 views
Skip to first unread message

Jon Liu

unread,
Jan 30, 2026, 3:08:59 PMJan 30
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi all,

Is there an easy way to cut off the model&results for plotting after the simulation completed.?   I tried 'inpolygon', then 'removeCells(Gt, (in_all==0))', but the size of other result variables keeps original arrays. 
[Gt, G, transMult] = topSurfaceGrid(G) is used;

Thanks,
Jon

Odd Andersen

unread,
Feb 2, 2026, 8:58:52 AMFeb 2
to Jon Liu, MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Dear Jon,

You might want to try the 'plotToolbar' function from the 'mrst-gui' module.  It allows various types of visualization, including cut-planes and culling of cells.  
Is this what you are looking for?

Best regards,
Odd A.

Odd Andersen
Senior Research Scientist
SINTEF Digital, Mathematics and Cybernetics
Oslo, Norway

Fra: sinte...@googlegroups.com <sinte...@googlegroups.com> på vegne av Jon Liu <jon...@nrcan-rncan.gc.ca>
Sendt: fredag 30. januar 2026 20:59
Til: MRST-users: The Matlab Reservoir Simulation Toolbox User Group <sinte...@googlegroups.com>
Emne: [MRST Users] clip results to smaller area
 
--
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/aae8abd7-9578-4056-a102-2e9513f40570n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages