Tpfa tess compiles with BlackoilFluid.
This commit is contained in:
parent
bfa0d24396
commit
9ee3b6e3de
@ -31,13 +31,10 @@
|
|||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
|
|
||||||
class BlackoilFluid
|
class BlackoilFluid : public BlackoilDefs
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum { numPhases = 3 };
|
typedef FluidStateBlackoil FluidState;
|
||||||
enum { numComponents = 3 };
|
|
||||||
typedef Dune::FieldVector<double, numPhases> PhaseVec;
|
|
||||||
typedef Dune::FieldVector<double, numComponents> CompVec;
|
|
||||||
|
|
||||||
void init(const Dune::EclipseGridParser& parser)
|
void init(const Dune::EclipseGridParser& parser)
|
||||||
{
|
{
|
||||||
@ -45,9 +42,9 @@ namespace Opm
|
|||||||
FluidSystemBlackoil<>::init(parser);
|
FluidSystemBlackoil<>::init(parser);
|
||||||
}
|
}
|
||||||
|
|
||||||
FluidStateBlackoil computeState(PhaseVec phase_pressure, CompVec z)
|
FluidState computeState(PhaseVec phase_pressure, CompVec z) const
|
||||||
{
|
{
|
||||||
FluidStateBlackoil state;
|
FluidState state;
|
||||||
state.temperature_ = 300;
|
state.temperature_ = 300;
|
||||||
state.phase_pressure_ = phase_pressure;
|
state.phase_pressure_ = phase_pressure;
|
||||||
state.surface_volume_ = z;
|
state.surface_volume_ = z;
|
||||||
|
Loading…
Reference in New Issue
Block a user