Getting error in 'Egg Model Simulation'.
显示 更早的评论
Hello, I need some help in Egg Model Simulation.
I am getting error after running this code-
Code-
mrstModule add ad-core ad-blackoil spe10 mrst-gui
G = cartGrid([50, 1, 1], [1000, 10, 10]*meter);
G = computeGeometry(G);
% Homogenous rock properties
rock = struct('perm', darcy*ones(G.cells.num, 1), ...
'poro', .3*ones(G.cells.num, 1));
% Default oil-water fluid with unit values, quadratic relative permeability
% curves and a 2:1 viscosity ratio between oil and water.
fluid = initSimpleADIFluid('phases', 'WO', 'n', [2 2],...
'mu', [1, 2]*centi*poise);
% Set up model and initial state.
model = TwoPhaseOilWaterModel(G, rock, fluid);
state0 = initResSol(G, 50*barsa, [0, 1]);
state0.wellSol = initWellSolAD([], model, state0);
% Set up drive mechanism: constant rate at x=0, constant pressure at x=L
pv = poreVolume(G, rock);
injRate = -sum(pv)/(500*day);
bc = fluxside([], G, 'xmin', -injRate, 'sat', [1, 0]);
bc = pside(bc, G, 'xmax', 0*barsa, 'sat', [0, 1]);
seqModel = getSequentialModelFromFI(model);
% We have two different models, each with their own properties and options,
% allowing for flexible configurations.
% Display the pressure model
disp(seqModel.pressureModel)
% Display the pressure model
disp(seqModel.transportModel);
Output-
>> Untitled2
Unrecognized function or variable 'getSequentialModelFromFI'.
Error in Untitled2 (line 25)
seqModel = getSequentialModelFromFI(model);
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Fluid Dynamics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!