Giter Club home page Giter Club logo

lcm's Introduction

Lost Circulation Material Optimizer

CI

Web application for creating, comparing, and optimize blending of lost circulation material used to bridge fractures and stop losses in rock formations during petroleum drilling.

This repository is the result from the merger of the two summer intern projects from 2020.

plot

Deployed environments:

Requirements

  • docker
  • docker-compose

Running

  1. Create a copy of .env-template called .env and populate it with values.

  2. Build the containers

    docker-compose build
  3. Start the project

    docker-compose up

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Operational runbook

RUNBOOK

Interpolating new fraction data

Bridge data from products on a different scale than the one defined at api/calculators/bridge.py:45 can be added to the LCM optimizer as long as the data gets interpolated into the same scale.

That can be done like this;

  1. Add a file at ./api/test_data/interpolate_input.csv
  2. Have the first column be called "Size" and have 101 measuring points of the products
  3. Add one column for each product, where the header is the name of the product.
    Size,Prod1,Prod2
    0.01,0,0
    0.011482,0,0
    ...
    10000,100,100
    
  4. Run docker-compose build api && docker-compose run api python calculators/fraction_interpolator.py
  5. One result file for each product will be created in ./api/test_data/

Radix

Two different environments in Radix are used: one for test (deploys from branch "test") and one for production (deploy from branch "master")

License

MIT

lcm's People

Contributors

dependabot[bot] avatar eoaksnes avatar kristiankjerstad avatar magnus-longva-bouvet avatar pbullhove avatar snyk-bot avatar soofstad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lcm's Issues

Text on input to optimizer

Kan dere endre tekst på input til optimizer fra «Max pore size» til «Max pore size/crack opening» og «Average pore size» til «Average pore size/crack opening»

rename product button

Text on the button linking to "Product summary" should be replaced with "LCM Library SharePoint"

Add CI

Github Actions probably

Create unit tests for the optimizer

Something like;

  • A few different input sets
  • Run the optimizer many times on each set
  • Test that the deviation is within acceptable margins ( there should never be an unusable result)

Should also test against a "known good solution"

Populate AZ Tabel from sharePoint

Looked into skipping Logic App.
Issues:

  • Can only get access "on-behalf-of" user, which means it can't run on a schedule.
  • Or give app permission to every sharePoint site
    Graph permission to single sites are being worked on

Export optimized solution

Feature to download a report of the solution.
Must include bridge parameters and optimization result.

Options:

  • PDF with tabels and graphs
  • ExcelSheet? Probably not
  • Just a text file - We should try and include some graphics

Move "OPTIMIZER_REQUEST" to own OpenAPI endpoint

See app.py

    elif requst_ == OPTIMIZER_REQUEST:
        value = request.json.get("value")
        name = request.json.get("name")
        products = request.json.get("products")
        mass = request.json.get("mass")
        weights = request.json.get("weights")
        environmental = request.json.get("environmental")
        option = request.json.get("option")
        iterations = request.json.get("max_iterations")
        size_step = request.json.get("size_steps_filter")

        return optimizerRequestHandler(value, name, products, mass, weights, environmental, option, iterations,
                                       size_step)

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.