Git Product home page Git Product logo

phydraulics's Introduction

Pipe Hydraulics

Aim

This a repo to solve the three typical problems for permanent flow in pipe hydraulics:

  1. Type 1: Revision of a simple pipe design. Here, given all the fluid, pipe and flow characteristics, we estimate the discharte (Q).

  2. Type 2: Estimation of the power required to transport flow from one side to the other. Here, given all the fluid, pipe and flow characteristics, we estimate the net power (P).

  3. Type 3: Simple pipe design. Here, given all the fluid, pipe and flow characteristics, we estimate the comercial diameter (D).

for the folling pipe system:

  1. Simple pipes: This a system of one pipe where the geometry and its physical characteristics are constant.

  2. Serial pipes: This system is made up by diferent pipes conected one after one. The geometrical and physical characteristics are diferent for each pipe. There are outflows at the end of each pipe.

  3. Porous pipes: This system is made up by a pipe that discharge water per unit length. It is very common in irrigation systems and the problem here is to calculate the energy loss through the pipe.

  4. Parallel pipes: This system is composed for usually 2 or seldom more pipes conected in parallel between two nodes. The geometrical and physical characteristics are usually diferent for each pipe.

  5. Open pipe network: This is a system of reservoir conected by pipes and nodes. Usually, there is a reservoir that supply to downstream reservoir throuthg the pipes. Sometimes there are outflow at the nodes.

Structure

phydraulics

This directory contains:

  • plib.py: This is a python library with functions to calculate multiple variables related to pipe systems.

  • spclass.py: This is a python library with classes to solve any of the three problems in simple pipe systems mentioned defore. Here the class SimplePipes call other classes and functions to execute the calculus.

  • sepclass.py: This is a python library with classes to solve any of the three problems in serial pipe systems mentioned defore. Here the class SerialPipes call other classes and functions to execute the calculus.

  • popclass.py: This is a python library with classes to calculate the energy losses in porous pipes mentioned defore. Here the class PorousPipes call other classes and functions to execute the calculus.

  • ppclass.py: This is a python library with classes to solve any of the three problems in parallel pipe systems mentioned defore. Here the class ParallelPipes call other classes and functions to execute the calculus.

  • opnclass.py: This is a python library with classes to solve problem type 1 and type 2 in open pipe networks mentioned defore. Here the class OpenPipesNet call other classes and functions to execute the calculus.

There are some directories named as test_*, that have the following structure:

How to execute it

  1. Clone the repo as

git clone [email protected]:lamhydro/phydraulics.git

  1. For example, go into phydraulics/test_sp (Simple pipes) directory:

cd phydraulics/test_sp

  1. Execute the code as (e.g.):

./main.py designTest.json

Here main.py reads the designTest.json file and resolve problem type 1 for simple pipes.

phydraulics's People

Contributors

lamhydro avatar

Watchers

 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.