computeTOFandTracer, src not supported yet?

9 views
Skip to first unread message

Murat Zeybek

unread,
Oct 15, 2025, 9:03:50 AMOct 15
to MRST-users: The Matlab Reservoir Simulation Toolbox User Group

It appears that wells, src and bc listed as optional parameters in "computeTOFandTracer"
When using mrst2025a  with  src option, complained that "src not supported yet"
is that the case? any update ?

model used
model = OilWaterMultiTracerModel3(G, rock, fluid);

complains as follows;

Error using assert
Wells or boundary structure are required for computeTOFandTracer

Error in computeTOFandTracer>check_input (line 254)
   assert(~isempty(opt.wells) || ~isempty(opt.bc), ...

Error in computeTOFandTracer (line 141)
check_input(G, rock, opt);

Error in OilWaterMultiTracer3w5layer (line 522)
D = computeTOFandTracer(state, G, rock, 'src', src);
---------------
Error using assert
Source terms not supported yet

Error in computeTOFandTracer>check_input (line 256)
   assert(isempty(opt.src), 'Source terms not supported yet');
----------------------------------------------------------------------------------------------------------

Help file:

D  = computeTOFandTracer(state, G, rock, 'pn1', pv1, ...)

OPTIONAL PARAMETERS (supplied in 'key'/value pairs):
    wells - Well structure as defined by function 'addWell'.  May be empty
            (i.e., wells = []) which is interpreted as a model without any
            wells.
 
    src   - Explicit source contributions as defined by function
            'addSource'.  May be empty (i.e., src = []) which is
            interpreted as a reservoir model without explicit sources.
 
    bc    - Boundary condition structure as defined by function 'addBC'.
            This structure accounts for all external boundary conditions
            to the reservoir flow. 

Bård Skaflestad

unread,
Oct 15, 2025, 9:15:22 AMOct 15
to Murat Zeybek, MRST-users: The Matlab Reservoir Simulation Toolbox User Group
Hi,

Thank you for your interest in MRST. As it happens, source terms are still not supported in function 'computeTOFandTracer'. We support wells and explicit boundary conditions (addBC) only.


Best Regards,

Bård Skaflestad
SINTEF Digital, Mathematics & Cybernetics
Applied Computational Science group


From: sinte...@googlegroups.com <sinte...@googlegroups.com> on behalf of Murat Zeybek <mzey...@gmail.com>
Sent: Wednesday, October 15, 2025 14:29
To: MRST-users: The Matlab Reservoir Simulation Toolbox User Group <sinte...@googlegroups.com>
Subject: [MRST Users] computeTOFandTracer, src not supported yet?
--
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/d6fb76b7-1f40-422a-ad9d-6fc404fdb519n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages