mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
commit
bdcdcdc063
@ -388,7 +388,7 @@ namespace Opm
|
||||
Opm::computeTransportSource(props_, wells_, well_state, transport_src);
|
||||
|
||||
// Find inflow rate.
|
||||
const double current_time = timer.currentTime();
|
||||
const double current_time = timer.simulationTimeElapsed();
|
||||
double stepsize = timer.currentStepLength();
|
||||
polymer_inflow_.getInflowValues(current_time, current_time + stepsize, polymer_inflow_c);
|
||||
|
||||
@ -488,12 +488,12 @@ namespace Opm
|
||||
<< std::endl;
|
||||
std::cout.precision(8);
|
||||
|
||||
watercut.push(timer.currentTime() + timer.currentStepLength(),
|
||||
watercut.push(timer.simulationTimeElapsed() + timer.currentStepLength(),
|
||||
produced[0]/(produced[0] + produced[1]),
|
||||
tot_produced[0]/tot_porevol_init);
|
||||
if (wells_) {
|
||||
wellreport.push(props_, *wells_, state.pressure(), state.surfacevol(),
|
||||
state.saturation(), timer.currentTime() + timer.currentStepLength(),
|
||||
state.saturation(), timer.simulationTimeElapsed() + timer.currentStepLength(),
|
||||
well_state.bhp(), well_state.perfRates());
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ namespace Opm
|
||||
class SimulatorTimer;
|
||||
class PolymerBlackoilState;
|
||||
class WellState;
|
||||
class SimulatorReport;
|
||||
struct SimulatorReport;
|
||||
|
||||
/// Class collecting all necessary components for a two-phase simulation.
|
||||
class SimulatorCompressiblePolymer
|
||||
|
@ -140,7 +140,6 @@ namespace Opm
|
||||
const PolymerInflowInterface& polymer_inflow_;
|
||||
const std::vector<double>& src_;
|
||||
const FlowBoundaryConditions* bcs_;
|
||||
const double* gravity_;
|
||||
// Solvers
|
||||
IncompTpfaPolymer psolver_;
|
||||
TransportSolverTwophasePolymer tsolver_;
|
||||
@ -411,7 +410,7 @@ namespace Opm
|
||||
wells_, well_state.perfRates(), transport_src);
|
||||
|
||||
// Find inflow rate.
|
||||
const double current_time = timer.currentTime();
|
||||
const double current_time = timer.simulationTimeElapsed();
|
||||
double stepsize = timer.currentStepLength();
|
||||
polymer_inflow_.getInflowValues(current_time, current_time + stepsize, polymer_inflow_c);
|
||||
|
||||
@ -498,12 +497,12 @@ namespace Opm
|
||||
<< std::endl;
|
||||
std::cout.precision(8);
|
||||
|
||||
watercut.push(timer.currentTime() + timer.currentStepLength(),
|
||||
watercut.push(timer.simulationTimeElapsed() + timer.currentStepLength(),
|
||||
produced[0]/(produced[0] + produced[1]),
|
||||
tot_produced[0]/tot_porevol_init);
|
||||
if (wells_) {
|
||||
wellreport.push(props_, *wells_, state.saturation(),
|
||||
timer.currentTime() + timer.currentStepLength(),
|
||||
timer.simulationTimeElapsed() + timer.currentStepLength(),
|
||||
well_state.bhp(), well_state.perfRates());
|
||||
}
|
||||
}
|
||||
@ -621,7 +620,7 @@ namespace Opm
|
||||
Opm::estimateCellVelocity(grid, state.faceflux(), cell_velocity);
|
||||
dm["velocity"] = &cell_velocity;
|
||||
|
||||
writeECLData(grid, dm, simtimer.currentStepNum(), simtimer.currentTime(), simtimer.currentDateTime(),
|
||||
writeECLData(grid, dm, simtimer.currentStepNum(), simtimer.simulationTimeElapsed(), simtimer.currentDateTime(),
|
||||
output_dir, "polymer_ecl");
|
||||
#else
|
||||
OPM_THROW(std::runtime_error, "Cannot call outputStateBinary() without ert library support. Reconfigure with --with-ert and recompile.");
|
||||
|
@ -39,7 +39,7 @@ namespace Opm
|
||||
class SimulatorTimer;
|
||||
class PolymerState;
|
||||
class WellState;
|
||||
class SimulatorReport;
|
||||
struct SimulatorReport;
|
||||
|
||||
/// Class collecting all necessary components for a two-phase simulation.
|
||||
class SimulatorPolymer
|
||||
|
Loading…
Reference in New Issue
Block a user