Implement grid property initializers

this makes it possible to use basically arbitrarily complex initialization schemes for grid properties. The second patch uses the new infrastructure for the endpoint scaling keywords where the defaults are given by  lookups in the SWOF/SGOF tables. @osae: could you please check that the correct default values are used before this is merged?

On an unrelated issue, I noticed that we will probably need to introduce a "grid property post-processors" to be fully spec compatible because for e.g. PERM[XYZ] the spec says that only the top layer of cells needs to specified and if the remainder is left undefined, the values should be copied from the topmost layer. This behavior cannot be implemented at the moment.. (Not that any sensible deck would ever want to do such a thing, but it is in the spec...)
The reason I used "..." ;).

Looks good, but line 176 should be criticalOilOWSat and not 
criticalOilOGSat





From:   Andreas Lauser <notifications@github.com>
To:     OPM/opm-parser <opm-parser@noreply.github.com>, 
Cc:     osae <osae@iris.no>
Date:   08/22/2014 04:32 PM
Subject:        Re: [opm-parser] Implement grid property initializers 
(#278)



In opm/parser/eclipse/EclipseState/Grid/GridPropertyInitializers.hpp:
> +                    if (rowIdx > 0)
> +                        Sg = sgofTables[tableIdx].getSgColumn()[rowIdx 
- 1];
> +                    criticalOilOGSat[tableIdx] = 1 - Sg;
> +                    break;
> +                }
> +            }
> +
> +            // find the critical oil saturation of the water-oil system
> +            numRows = swofTables[tableIdx].numRows();
> +            const auto &kroOWCol = 
swofTables[tableIdx].getKrowColumn();
> +            for (int rowIdx = 0; rowIdx < numRows; ++rowIdx) {
> +                if (kroOWCol[rowIdx] < 1.0) {
> +                    double Sw = 0.0;
> +                    if (rowIdx > 0)
> +                        Sw = swofTables[tableIdx].getSwColumn()[rowIdx 
- 1];
> +                    criticalOilOGSat[tableIdx] = 1 - Sw;

connate gas or connate water? (the oil field glossary does not know 
anything about connate gas...)
—
Reply to this email directly or view it on GitHub.








"This e-mail with attached documents is only for the addressee indicated 
above. The e-mail and documents may contain confidential information. If 
you are not the correct addressee or are responsible for transfer of this 
e-mail with attached documents to the correct addressee, any copying or 
further transfer of information contained herein is expressly forbidden. 
If you have received this e-mail by mistake, you are kindly requested to 
immediately inform me thereof by e-mail and delete the e-mail and the 
received documents."


http://www.iris.no