mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adding extendEval() to StandardWell
For this type of functions that related to Evaluation should be implemented within individual well model.
This commit is contained in:
parent
ff2ada66bc
commit
266442b0bd
@ -109,6 +109,8 @@ namespace Opm
|
|||||||
|
|
||||||
EvalWell wellSurfaceVolumeFraction(const int phase) const;
|
EvalWell wellSurfaceVolumeFraction(const int phase) const;
|
||||||
|
|
||||||
|
EvalWell extendEval(const Eval& in) const;
|
||||||
|
|
||||||
using WellInterface<TypeTag>::phaseUsage;
|
using WellInterface<TypeTag>::phaseUsage;
|
||||||
using WellInterface<TypeTag>::active;
|
using WellInterface<TypeTag>::active;
|
||||||
using WellInterface<TypeTag>::numberOfPerforations;
|
using WellInterface<TypeTag>::numberOfPerforations;
|
||||||
@ -119,6 +121,7 @@ namespace Opm
|
|||||||
using WellInterface<TypeTag>::compFrac;
|
using WellInterface<TypeTag>::compFrac;
|
||||||
using WellInterface<TypeTag>::numberOfPhases;
|
using WellInterface<TypeTag>::numberOfPhases;
|
||||||
using WellInterface<TypeTag>::perfDepth;
|
using WellInterface<TypeTag>::perfDepth;
|
||||||
|
using WellInterface<TypeTag>::flowToEbosPvIdx;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
@ -390,4 +390,21 @@ namespace Opm
|
|||||||
return wellVolumeFractionScaled(phase) / sum_volume_fraction_scaled;
|
return wellVolumeFractionScaled(phase) / sum_volume_fraction_scaled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
template<typename TypeTag>
|
||||||
|
typename StandardWell<TypeTag>::EvalWell
|
||||||
|
StandardWell<TypeTag>::
|
||||||
|
extendEval(const Eval& in) const
|
||||||
|
{
|
||||||
|
EvalWell out = 0.0;
|
||||||
|
out.setValue(in.value());
|
||||||
|
for(int eqIdx = 0; eqIdx < numEq;++eqIdx) {
|
||||||
|
out.setDerivative(eqIdx, in.derivative(flowToEbosPvIdx(eqIdx)));
|
||||||
|
}
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user