Units: add 'Timestep' dimension

the motivation for this is the 'TSTEP' eclipse keyword.

the reason why this dimension is not simply called 'Time' is that in
eclipse, different keywords might use different units, e.g. one
keyword could use seconds, another could use years while a third uses
days. As an added bonus, the used time units may be different for
different scales but identical in others (e.g., for one keyword times
might be specified in 'days' for the metric as well as for the
labscale, but in 'days' and 'hours' for another second keyword.)
This commit is contained in:
Andreas Lauser
2014-01-10 12:13:23 +01:00
parent d261fcfe98
commit 7a3755926b
3 changed files with 12 additions and 2 deletions

View File

@@ -54,7 +54,8 @@ namespace Opm {
const double DissolvedGasRatio = 1.0;
const double FlowVolume = 1.0;
const double Density = 1.0;
const double Viscosity = 0.001; // cP -> Pa s
const double Viscosity = 0.001; // cP -> Pa s
const double Timestep = 24*60*60; // days -> s
}
@@ -68,6 +69,7 @@ namespace Opm {
const double FlowVolume = 0.158987294; // STB -> m^3
const double Density = 16.01846; // lb/ft^3 -> kg / m^3
const double Viscosity = 0.001; // cP -> Pa s
const double Timestep = 24*60*60; // days -> s
}
}

View File

@@ -145,6 +145,7 @@ namespace Opm {
system->addDimension("FlowVolume", Metric::FlowVolume );
system->addDimension("Rho" , Metric::Density );
system->addDimension("mu" , Metric::Viscosity);
system->addDimension("Timestep" , Metric::Timestep);
return system;
}
@@ -163,6 +164,7 @@ namespace Opm {
system->addDimension("FlowVolume" , Field::FlowVolume );
system->addDimension("Rho" , Field::Density );
system->addDimension("mu" , Field::Viscosity);
system->addDimension("Timestep", Field::Timestep);
return system;
}

View File

@@ -1 +1,7 @@
{"name" : "TSTEP" , "size" : 1 , "items" : [{"name" : "step_list" , "value_type" : "FLOAT" , "size_type" : "ALL"}]}
{"name" : "TSTEP" ,
"size" : 1,
"items" : [{
"name" : "step_list" ,
"value_type" : "FLOAT" ,
"dimension" : "Timestep",
"size_type" : "ALL"}]}