Giter Club home page Giter Club logo

eutectic_finder's Introduction

Eutectic Finder

Installation

pip

pip install -r requirements.txt

Conda

conda/mamba

conda install -c conda-forge --file requirements.txt

Usage

Use the -c/--celsius flag to set to use the temperature in Celsius. The default use Kelvin.

Using CSV

Using the -f/--file flag to specify the .csv to use for a run.
The flag -r/--run for the run number.
More information in the section DATA.

python main.py -f data.csv -r 1

Manual/CLI

-e/--enthalpy to input the enthalpy of each element, separated by a space (in J/mol).
-t/--temperature to input the temperature of each element, separated by a space, (default in Kelvin). See the -c flag to toggle to Celsius.

python main.py -m -e 11300 46000 -t 1234 1688

Prompt

To give the input as a prompt use: -c can be used.

python main.py 

DATA

The DATA can be read form a .csv. The file need to be of the following format:

run,element,enthalpy,temp_c,temp_k,exp_x,cal_x
1,Ag,11300,960.85,1234,85,85
1,Si,46000,1414.85,1688,15,15
2,KCl,25500,772,-1,24,22
2,LiCl,13400,610,-1,43,61
2,NaCl,28500,808,-1,33,17

run specify the numbers of element in a mixture.
element is the symbol of the element present.
enthalpy is the melting enthalpy in J/mol.
temp_c is the melting temperature in Celsius, (if not know, set -300).
temp_k is the melting temperature in Kelvin, (if not know, set -300).
exp_x is the experimental molar fraction at en eutectic, (if not know, set -300).
cal_c is the calculate molar fraction at en eutectic, (if not know, set -300).

License

This code is under Apache 2.0

eutectic_finder's People

Contributors

skirowen 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.