Coder Social home page Coder Social logo

opm-verteq's Introduction

OPM Vertical Equilibrium Module

opm-verteq is an add-on to the simulators in opm-core to do vertical equilibrium upscaling.

You will need to pass the location of an opm-core build tree or installation with the opm-core_ROOT or opm_ROOT parameter to CMake, or --with-opm-core parameter in the Autotools-compatible wrapper.

It is not yet as tested as the other components, and should at this stage only be used to compare with 3D simulations.

How to wrap on existing simulator

  • You will need to include the header
#include <opm/verteq/wrapper.hpp>
  • Wrap the instantiation of the simulator in the wrapper; replace
Opm::SimulatorIncompTwophase sim (...);

with

Opm::VertEqWrapper <Opm::SimulatorIncompTwophase> sim (...);
  • The vertical equilibrium wrapper does not write output by itself; you should register a timestep event handler and write output from it. The sync method must be called in the wrapper to "downscale" the results to the original grid.

  • Pass the header and library directory paths of opm-verteq to your compiler and linker, respectively.

See the difference between the code in examples/2d/src/co2_2d.cpp and examples/3d/src/co2_3d.cpp.

opm-verteq's People

Contributors

akva2 avatar andlaus avatar atgeirr avatar blattms avatar bska avatar dr-robertk avatar flikka avatar joakim-hove avatar jorgekva avatar qilicun avatar rolk avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.