Coder Social home page Coder Social logo

bramurgas / pyenl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jon85p/pyenl

0.0 2.0 0.0 757 KB

Engineering nonlinear equations systems solver [Under construction ๐Ÿšง]

Home Page: https://jon85p.github.io/pyENL/

License: MIT License

Python 100.00%

pyenl's Introduction

pyENL

(Python "Ecuaciones No Lineales")

A baby tiny open-source alternative to Engineering Equation Solver (EES)

Build Status codecov Code Health license

*

Description

Engineering nonlinear equations systems solver

Features

  • Solve numerically systems equations from MINPACK method of SciPy.
  • More solvers available from: scipy.optimize.root
  • Physical units support
  • CoolProp thermodynamical functions support
  • Engineering functions inside
  • Users functions (Python).
  • On development stage!

Use:

  • Terminal mode:
entrada.py -f file_text -t[seconds]:

Equations file with conditions of each variable. Example: - x^2+y^2 = 1 - y = 2*x - 5 - {x, 1, -5, 5}

In this case, the target is solve the equations in a file text with the following restrictions: x it's betweet -5 and 5, and the initial guess for x is 1.

  • Comments between symbols: "<<" and ">>"
  • Example: test/input2.xt
  • GUI (User Interface):

File pyENL.py run the Qt interface for pyENL.

  • Screenshots:

Thermodynamical properties

Via CoolProp, an open source thermodynamical properties library. Install:

pip install coolprop
  • The pyENL function "prop" it's used for this purpose: CoolProp Documentation

  • Example: Water enthalpy at atmosferic pressure and 300 K:

prop('H', 'P', 101325, 'T', 300, 'Water')

Strings variables:

#ref# = 'R134a'
P = prop('P', 'T', 300, 'Q', 0, #ref#)
H = prop('H', 'P', P, 'T', 300, #ref#)

Icon by @fabianalexisinostroza

pyenl's People

Contributors

jon85p avatar xmagor avatar ivan-rueda-duarte avatar

Watchers

James Cloos avatar Brayan Murgas Portilla 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.