Having Problem in Black Oil Reservoir Simulation with Active Wells and Rate Constraints

26 views
Skip to first unread message

Mukhammad Sholikhuddin

unread,
Apr 15, 2025, 6:13:02 AMApr 15
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group

Hello MRST users,

I built a simple black oil reservoir model of 1 production well and 1 water injection well, with fluid data I took from setupSPE1(), for grid, rock, model, and state I defined separately. During the simulation process I experienced several problems including:

1. Where when there are 2 active wells (production and injection) I experienced problems (Solver did not converge), causing the simulation to stop

2. When there is only 1 active well (production) and constraints using rate, the well bhp value continues to increase (this is not natural)

3. And when the production well uses rate constraints, I get a warning (Warning: Given sign does not match sign of given value. Setting w.sign = sign( w.val ) ), even though I already state the sign correctly (-1 for production and 1 for injection)

I also included my code for more details.

Related to this, is there something wrong during the modeling process, and how to solve the above problems

Thank you

WaterfloodBlackOilModel.m

Olav Møyner

unread,
Apr 15, 2025, 6:28:37 AMApr 15
to Mukhammad Sholikhuddin, MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi,

You have to make the production rate negative, otherwise it will inject the rate. I think this explains the pressure buildup and the message you are getting (a producer is provided a positive rate).

Best regards,
Olav 

Olav

From: sinte...@googlegroups.com <sinte...@googlegroups.com> on behalf of Mukhammad Sholikhuddin <muhammadsh...@gmail.com>
Sent: Tuesday, April 15, 2025 12:13:02 PM
To: MRST-users: The Matlab Reservoir Simulation Toolbox User Group <sinte...@googlegroups.com>
Subject: [MRST Users] Having Problem in Black Oil Reservoir Simulation with Active Wells and Rate Constraints
 
--
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/64c1b56e-d188-4279-8030-d0613c29e3abn%40googlegroups.com.

Mukhammad Sholikhuddin

unread,
Apr 15, 2025, 6:48:54 AMApr 15
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi Olav,

Thank you very much for your help, now all the problems I experienced have been answered with that

Reply all
Reply to author
Forward
0 new messages