Refine eclipse in MRST for large model

54 views
Skip to first unread message

THANH HÙNG VÕ

unread,
Oct 15, 2023, 9:49:30 PM10/15/23
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Dear Mrst developers,

I tried to refine eclipse grid due to large size of model.

I tried to use the code as below:

%% Read and mrstModule add coarsegrid
mrstModule add ad-core;
mrstModule add ad-props;
mrstModule add ad-blackoil;
% The SAIGUP model is one of the standard data sets provided with MRST. We
% therefore check if it is present, and if not, download and install it.
grdecl = readGRDECL(fullfile(ROOTDIR, 'examples', 'data', ...
'KANAJO', 'NAKAJO.GRDECL'));
grdecl = convertInputUnits(grdecl, getUnitSystem('METRIC'));
grdecl = refineGrdecl(['2023_Nakajo.grdecl',10 ]);
G = processGRDECL(grdecl);



However, the error show like this:

Dot indexing is not supported for variables of this type.

Error in grdeclXYZ (line 50)
    xyz = reshape(grdecl.COORD, [6, grdecl.cartDims(1:2) + 1]);

Error in refineGrdecl (line 59)
   [xyz, zcorn] = grdeclXYZ(grdecl_in);

Error in Copy_of_nakojocoarsegridExample (line 16)
grdecl        = refineGrdecl(['2023_Nakajo.grdecl',10 ]);


Could you give me some advices for this issue?

Thank you so much!

Best regards

Vo Thanh Hung


Olav Møyner

unread,
Oct 16, 2023, 2:46:19 PM10/16/23
to THANH HÙNG VÕ, MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi,

I think the format of your call to processGRDECL could be modified from
grdecl = refineGrdecl(['2023_Nakajo.grdecl',10 ]);
to something like this
grdecl = readGRDECL('2023_Nakajo.grdecl')
grdecl = refineGrdecl(grdecl,10);
so that you pass the refinement and the processed file separately.

Best regards,
Olav

From: sinte...@googlegroups.com <sinte...@googlegroups.com> on behalf of THANH HÙNG VÕ <vothanhh...@gmail.com>
Sent: Monday, October 16, 2023 3:49
To: MRST-users: The Matlab Reservoir Simulation Toolbox User Group <sinte...@googlegroups.com>
Subject: [MRST Users] Refine eclipse in MRST for large model
 
--
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 on the web visit https://groups.google.com/d/msgid/sintef-mrst/4db007c4-7b1b-4520-af78-e67946c3e531n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages