GithubHelp home page GithubHelp logo

srebughini / asali Goto Github PK

View Code? Open in Web Editor NEW
50.0 3.0 8.0 257.83 MB

Do you work with chemical reactors? Are you curious about them? ASALI is the open-source code that you are looking for. Chemical reactor models, transport/thermodynamic properties of gases, equilibrium calculations. ASALI couples all these features with an user friendly graphical interface. Modeling catalytic reactors has never been so easy.

Home Page: https://srebughini.github.io/ASALI/

License: GNU General Public License v3.0

Shell 0.57% C 19.90% C++ 50.58% MATLAB 2.91% Fortran 8.99% Python 3.81% Java 8.38% Dockerfile 0.04% Rust 4.82%
catalytic-reactors transport-properties thermodynamic-properties windows ubuntu chemical-equilibrium-calculations cantera gas-mixtures vacuum-properties equilibrium

asali's Issues

C API: Too slow

This issue is related to the elapsed time comparison of the API version of ASALI.
The comparison shows that the C version is too slow compared to the Fortran and C++ version, therefore we need some help to improve it.

We are looking for contributors that can help us writing a more efficient C code for ASALI.

Add Carbon/Rust API

Feature request

ASALI should be improved with modern programming languages. I suggest to start working with:

Solution that we would like to have

This improvement should be added to the api branch.
Since new contributors are always welcome, here a short TODO list to make the implementation of new programming languages easier:

  • Develop the files parser (usually called database-generator): ASALI properties estimation method is based on 4 different files, containing fitting parameters for the formula that should be implemented. NASA standardized the file structure long time ago, so please dont change it!!! To make the use of ASALI-API more user-friendly, we decided to hard-code this parameters. For this reason, the file parser should read those files and convert them into hard-coded vector/matrix. An example can be found here.
  • Develop the set/get function: ASALI requires to set some properties (e.g. Temperature, Pressure, Composition) and get other properties (e.g Viscosity, Density). Here, you can find a list of the get and set function required, with also the type of variable required.
  • Develop the core formulas: ASALI is based on mathematical formulas to estimate gas mixture properties. Once you need them, feel free to comment this issue.
  • Develop the example: To improve the user experience of ASALI-API, we add examples to show how to use it.

Comments

@andreee94: you might be interested in this

Mass and mole fraction for diffusion transport properties appear inverted

Describe the bug
I ran a python script with Cantera to calculate mixture averaged diffusion coefficients with a certain T, P and composition (mass fraction). I tried to calculate the same coefficients with ASALI. If I choose mass fractions for the composition in the python script, I only get the same answer if I select mole fraction in the ASALI GUI. vice versa.

To Reproduce
Steps to reproduce the behavior:

  1. run the attached script, which is setup for mass fraction
  2. run ASALI, use the default parameters and got to transport properties. Enter the same mass fraction composition, T and P as the Py Script
  3. The diffusion coefficients in ASALI will be different
  4. Hit back on the GUI
  5. Change mass to mole fraction in the ASALI GUI. Now the mixture diffusion coefficients will match between ASALI and the Python script

Expected behavior
I expected that the mixture averaged diffusion coefficients would be the same in both the Python script and in ASALI when both the Python script and ASALI accept the composition in mass fraction

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 22.04

Additional context
diffusionCoeff.py.txt

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.