I have a script that runs an EDFM model and initially simulates for pressure in fractures. The second part of the script contains the geothermal component to account for both pressure and heat flow in the same EDFM model.
The first issue is that the model operators setup (setupEDFMOperatorsTPFA) for only pressure simulation results in the following error when evaluating molecular transmissibility in the geothermal model:
% setup model
model = GeothermalModel(G, G.rock, fluid);
model.operators = setupEDFMOperatorsTPFA(G, G.rock, tol);
Solving timestep 1/1: -> 1 Millisecond
The logical indices contain a true value outside of the array bounds.
Error in ComponentTotalDiffusiveFlux>@(T)T(model.operators.internalConn) (line 20)I resolved this error by using setupOperatorsTPFA instead and ensured that the transmissibility and neighborship of internal faces are passed to the setup as shown below.
%The transmissibility for each face in the combined grid and each NNC is computed and stored in the vector T.
T = computeTrans(G, G.rock);This work around normally allows my simulations to run without problems. However, for this model, I had to add model.operators.T_all line for the simulation to run. Despite running it to the end without any indication of additional problems, no pressure or flux is computed in the resulting states.
Without the model.operators.T_all line, the simulation returns the following error stating that the assigned BC faces are outside the accounted transmissibility elements:
Solving timestep 1/1: -> 1 Millisecond
Index exceeds the number of array elements (52545).I will appreciate your suggestions on how to correctly fix these errors.
Kind
regards,
David Egya