mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-05 21:53:27 -06:00
7a0bfd4917
* Adjustments to build system for opm-common * Add opm-common as submodule * Disable use of unity build for opm-common
130 lines
4.3 KiB
C++
130 lines
4.3 KiB
C++
|
|
#include <opm/input/eclipse/Deck/UDAValue.hpp>
|
|
#include <opm/input/eclipse/Parser/ParserItem.hpp>
|
|
#include <opm/input/eclipse/Parser/ParserRecord.hpp>
|
|
#include <opm/input/eclipse/Parser/Parser.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include <opm/input/eclipse/Parser/ParserKeywords/J.hpp>
|
|
namespace Opm {
|
|
namespace ParserKeywords {
|
|
JFUNC::JFUNC() : ParserKeyword("JFUNC", KeywordSize(1, false)) {
|
|
addValidSectionName("GRID");
|
|
setRequiredKeywords({
|
|
"ENDSCALE",
|
|
});
|
|
clearDeckNames();
|
|
addDeckName("JFUNC");
|
|
{
|
|
ParserRecord record;
|
|
{
|
|
ParserItem item("FLAG", ParserItem::itype::STRING);
|
|
item.setDefault( std::string("BOTH") );
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("OW_SURFACE_TENSION", ParserItem::itype::DOUBLE);
|
|
item.setDefault( double(-1.000000) );
|
|
item.push_backDimension("SurfaceTension");
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("GO_SURFACE_TENSION", ParserItem::itype::DOUBLE);
|
|
item.setDefault( double(-1.000000) );
|
|
item.push_backDimension("SurfaceTension");
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("ALPHA_FACTOR", ParserItem::itype::DOUBLE);
|
|
item.setDefault( double(0.500000) );
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("BETA_FACTOR", ParserItem::itype::DOUBLE);
|
|
item.setDefault( double(0.500000) );
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("DIRECTION", ParserItem::itype::STRING);
|
|
item.setDefault( std::string("XY") );
|
|
record.addItem(item);
|
|
}
|
|
addRecord( record );
|
|
}
|
|
}
|
|
const std::string JFUNC::keywordName = "JFUNC";
|
|
const std::string JFUNC::FLAG::itemName = "FLAG";
|
|
const std::string JFUNC::FLAG::defaultValue = "BOTH";
|
|
const std::string JFUNC::OW_SURFACE_TENSION::itemName = "OW_SURFACE_TENSION";
|
|
const double JFUNC::OW_SURFACE_TENSION::defaultValue = -1.000000;
|
|
const std::string JFUNC::GO_SURFACE_TENSION::itemName = "GO_SURFACE_TENSION";
|
|
const double JFUNC::GO_SURFACE_TENSION::defaultValue = -1.000000;
|
|
const std::string JFUNC::ALPHA_FACTOR::itemName = "ALPHA_FACTOR";
|
|
const double JFUNC::ALPHA_FACTOR::defaultValue = 0.500000;
|
|
const std::string JFUNC::BETA_FACTOR::itemName = "BETA_FACTOR";
|
|
const double JFUNC::BETA_FACTOR::defaultValue = 0.500000;
|
|
const std::string JFUNC::DIRECTION::itemName = "DIRECTION";
|
|
const std::string JFUNC::DIRECTION::defaultValue = "XY";
|
|
|
|
|
|
JFUNCR::JFUNCR() : ParserKeyword("JFUNCR", KeywordSize("TABDIMS", "NTSFUN", false, 0)) {
|
|
addValidSectionName("GRID");
|
|
setRequiredKeywords({
|
|
"ENDSCALE",
|
|
});
|
|
clearDeckNames();
|
|
addDeckName("JFUNCR");
|
|
{
|
|
ParserRecord record;
|
|
{
|
|
ParserItem item("J_FUNCTION", ParserItem::itype::STRING);
|
|
item.setDefault( std::string("BOTH") );
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("OIL_WAT_SURF_TENSTION", ParserItem::itype::DOUBLE);
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("OIL_GAS_SURF_TENSTION", ParserItem::itype::DOUBLE);
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("POROSITY_POWER", ParserItem::itype::DOUBLE);
|
|
item.setDefault( double(0.500000) );
|
|
item.push_backDimension("1");
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("PERMEABILITY_POWER", ParserItem::itype::DOUBLE);
|
|
item.setDefault( double(0.500000) );
|
|
item.push_backDimension("1");
|
|
record.addItem(item);
|
|
}
|
|
{
|
|
ParserItem item("PERM_DIRECTION", ParserItem::itype::STRING);
|
|
item.setDefault( std::string("XY") );
|
|
record.addItem(item);
|
|
}
|
|
addRecord( record );
|
|
}
|
|
}
|
|
const std::string JFUNCR::keywordName = "JFUNCR";
|
|
const std::string JFUNCR::J_FUNCTION::itemName = "J_FUNCTION";
|
|
const std::string JFUNCR::J_FUNCTION::defaultValue = "BOTH";
|
|
const std::string JFUNCR::OIL_WAT_SURF_TENSTION::itemName = "OIL_WAT_SURF_TENSTION";
|
|
const std::string JFUNCR::OIL_GAS_SURF_TENSTION::itemName = "OIL_GAS_SURF_TENSTION";
|
|
const std::string JFUNCR::POROSITY_POWER::itemName = "POROSITY_POWER";
|
|
const double JFUNCR::POROSITY_POWER::defaultValue = 0.500000;
|
|
const std::string JFUNCR::PERMEABILITY_POWER::itemName = "PERMEABILITY_POWER";
|
|
const double JFUNCR::PERMEABILITY_POWER::defaultValue = 0.500000;
|
|
const std::string JFUNCR::PERM_DIRECTION::itemName = "PERM_DIRECTION";
|
|
const std::string JFUNCR::PERM_DIRECTION::defaultValue = "XY";
|
|
|
|
|
|
}
|
|
}
|