exampleExemple3DSixComponents

20 views
Skip to first unread message

William Obel

unread,
May 19, 2025, 2:31:37 PMMay 19
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group

Hi, 

I'm running the compositional exampleExemple3DSixComponents in MRST 2024b. But when I set true for water in the model, I get this error: 

Warning: Defaulted viscosity to unit value (1000 centipoise) for all phases. 

> In initSimpleADIFluid (line 142)

In compositionalExample3DSixComponents (line 43) 

Error using ReservoirModel/validateDrivingForces (line 238)

Well .compi field must contain 1 by 3 entries for a 3-phase model.

Control 1, well Inj (#1) provided 1 by 2 entries.


Error in PhysicalModel/validateSchedule (line 398)

            schedule.control(i) = model.validateDrivingForces(schedule.control(i), i);

                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Error in simulateScheduleAD (line 257)

    schedule = model.validateSchedule(schedule);

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Error in compositionalExample3DSixComponents (line 63)

[ws, states, rep] = simulateScheduleAD(state0, model, schedule);


Can someone help me run the three-phase water-oil-gas for the same example?


Olav Møyner

unread,
May 20, 2025, 4:27:07 AMMay 20
to William Obel, MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi,

This example is set up as a two phase model. To make it into a three-phase model you need to set properties (e.g. the water density, relperm and viscosity in the fluid constructor) and injector compositions. This is what the message is saying:

Well .compi field must contain 1 by 3 entries for a 3-phase model.

So you need to add a value at the start of W(1).compi to reflect the amount of water you want to inject.

Best regards,
Olav


From: sinte...@googlegroups.com <sinte...@googlegroups.com> on behalf of William Obel <prefj...@gmail.com>
Sent: Monday, May 19, 2025 20:00
To: MRST-users: The Matlab Reservoir Simulation Toolbox User Group <sinte...@googlegroups.com>
Subject: [MRST Users] exampleExemple3DSixComponents
 
--
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/9f04a5f8-5fc1-4a70-8eba-919b1b8c680bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages