Giter VIP home page Giter VIP logo

alexiusacademia / irrigflo Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 74 KB

IrrigFlo is an open source java library that aims to be a help to those who want to develop hydraulics applications using java. The library will range from open channel flows up to reservoir operation analysis.

Home Page: https://alexiusacademia.com/irrigflo/

License: MIT License

Java 100.00%
java irrigation irrigation-design hydraulics hydraulics-engineering dam canal open-channel

irrigflo's Introduction

IrrigFlo

IrrigFlo is an open source java library for solving hydraulics flow calculations in hydraulics engineering. The aim of the library is to help other developers in creating their own desktop applications for hydraulics engineering that has the capability of commercial softwares.

Build Status

Installation:

To install the library, download it from the releases page. It is advisable to download the latest release for updated features.

Usage

Solving trapezoidal shaped channel

import com.alexiusacademia.hydraulics.TrapezoidalOpenChannel;

public class TrapezoidalChannel {
  public static void main(String[] args) {
    // Create an instance of the class with a given unknown, Discharge
    TrapezoidalOpenChannel channel = new TrapezoidalOpenChannel(TrapezoidalOpenChannel.Unknown.DISCHARGE);

    // Setting the properties required
    // If some required properties are not set, getErrMessage will return a null message.
    toc.setBedSlope(bedSlope);
    toc.setBaseWidth(baseWidth);
    toc.setWaterDepth(waterDepth);
    toc.setSideSlope(sideSlope);
    toc.setManningRoughness(manning);

    if (toc.analyze()) {
      printLine("Analysis");
      printLine("Discharge = " + toc.getDischarge());
      printLine("Average velocity = " + toc.getAverageVelocity());
      printLine("Wetted area = " + toc.getWettedArea());
      printDash();
      printLine("Critical depth = " + toc.getCriticalDepth());
      printLine("Froude number = " + toc.getFroudeNumber());
      printLine("Flow Type = " + toc.getFlowType());
      printLine("Critical Slope = " + toc.getCriticalSlope());
    } else {
      printLine("An error has occurred: " + toc.getErrMessage());
    }
  }

  private static void printLine(String s) {
    System.out.println(s);
  }


  private static void printDash() {
    printLine("= = = = = = = = = = =");
  }
}

// Start of output
Circular open channel
= = = = = = = = = = = = = =
Discharge = 0.687263130787826
Water depth = 0.7
Wetted perimeter = 2.085893287217503
Critical depth = 0.44559999999996724
Froude number = 0.42106818161340415
Critical slope = 0.004793932865164748
// End of output

Below describes the proposed content of the project:

Todos:

Libraries:

Open Channel Flow

  • Rectangular Channel
  • Trapezoidal Channel
  • Circular Channel
  • Irregular Section Channel

Weirs

  • Rectangular Weir
  • Triangular Weir
  • Sharp-crested Weir
  • Broad-crested Weir
  • Ogee Weir

Dams

  • Dam Reservoir Operation Study

Hydrology

  • Regional Flood Frequency Analysis

GUI

Open Channel Flow

  • Rectangular Channel
  • Trapezoidal Channel
  • Circular Channel
  • Irregular Section Channel

Weirs/Dams

  • Rectangular Weir
  • Triangular Weir
  • Sharp-crested Weir
  • Broad-crested Weir
  • Ogee Weir

irrigflo's People

Contributors

alexiusacademia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

irrigflo's Issues

Non-uniform Flow

Adds non-uniform flow behaviors on each open channel section.

IrregularSectionChannel class

Child of the OpenChannel class and deals with channels with irregular section shape. Comonly found in streams/rivers.

Ogee Weir

Flow calculations over an ogee shaped weir.

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.