Added a fluid system class.
This commit is contained in:
parent
e8a9b6767b
commit
99e398a826
@ -19,6 +19,7 @@
|
||||
|
||||
|
||||
#include <dune/porsol/blackoil/FluidMatrixInteractionBlackoil.hpp>
|
||||
#include <dune/porsol/blackoil/FluidSystemBlackoil.hpp>
|
||||
#include <dune/common/param/ParameterGroup.hpp>
|
||||
#include <dune/common/fvector.hh>
|
||||
|
||||
@ -28,13 +29,14 @@ int main(int argc, char** argv)
|
||||
// Parameters.
|
||||
Dune::parameter::ParameterGroup param(argc, argv);
|
||||
|
||||
// Parser.
|
||||
std::string ecl_file = param.get<std::string>("filename");
|
||||
Dune::EclipseGridParser parser(ecl_file);
|
||||
|
||||
// Test the FluidMatrixInteractionBlackoil class.
|
||||
Opm::FluidMatrixInteractionBlackoilParams<double> fluid_params;
|
||||
fluid_params.init(parser);
|
||||
typedef Opm::FluidMatrixInteractionBlackoil<double> Law;
|
||||
|
||||
|
||||
Dune::FieldVector<double, 3> s, kr;
|
||||
const double temp = 300; // [K]
|
||||
int num = 41;
|
||||
@ -47,4 +49,8 @@ int main(int argc, char** argv)
|
||||
std::cout.fill(' ');
|
||||
std::cout << s[Law::Liquid] << " " << kr << '\n';
|
||||
}
|
||||
|
||||
// Test the FluidSystemBlackoil class.
|
||||
Opm::FluidSystemBlackoil<> fluid_system;
|
||||
fluid_system.init(parser);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user