Skip to content

Commit

Permalink
Renamed package. Added setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
j-jith committed Nov 15, 2016
1 parent a00a3b3 commit 637b2b0
Show file tree
Hide file tree
Showing 21 changed files with 41 additions and 10 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include README.rst
File renamed without changes.
2 changes: 1 addition & 1 deletion compare/gen_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import sys
sys.path.append('../')
import eos
import pythermophy as eos

### Mean temperature of fluid
T_0 = np.array([40, 60, 80, 100]) + 273.15 # [K]
Expand Down
12 changes: 6 additions & 6 deletions eos/__init__.py → pythermophy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from fluid import Fluid
from .fluid import Fluid

#from parent_class import EOS
from ideal_gas import IdealGas
from .ideal_gas import IdealGas

from cubic_eos import RedlichKwong
from cubic_eos import SoaveRedlichKwong
from cubic_eos import PengRobinson
from .cubic_eos import RedlichKwong
from .cubic_eos import SoaveRedlichKwong
from .cubic_eos import PengRobinson

from lee_kesler import LeeKesler
from .lee_kesler import LeeKesler

# Shorter aliases for class names
class RK(RedlichKwong):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from setuptools import setup

def readme():
with open('README.rst') as fileh:
return fileh.read()

setup(name = 'pythermophy',
version = '0.1',
description = 'Predict density, speed of sound and heat capacities of pure fluids',
long_description=readme(),
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering'
],
url = 'http://github.com/j-jith/pythermophy',
author = 'Jithin Jith',
author_email = '[email protected]',
license = 'MIT',
packages = ['pythermophy'],
install_requires = [
'numpy',
'scipy'
],
include_package_data=True,
zip_safe = False)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions test.py → test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
from CoolProp.CoolProp import PropsSI
import matplotlib.pyplot as plt

import eos
import sys
sys.path.append('../')
import pythermophy as eos

### Mean temperature of fluid
T_0 = 328.79 # [K]
Expand All @@ -16,7 +18,7 @@
#Tc = 31.1 + 273.15 # K
#omega = 0.228 # acentric factor

fluid = eos.Fluid.init_from_file('fluids/CO2')
fluid = eos.Fluid.init_from_file('../fluids/CO2')
M = fluid.molar_mass

ig = eos.IdealGas(fluid)
Expand Down
2 changes: 1 addition & 1 deletion test_lk.py → test/test_lk.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import print_function, division
import numpy as np
import eos
import pythermophy as eos

### Mean temperature of fluid
#T_0 = 328.79 # [K]
Expand Down

0 comments on commit 637b2b0

Please sign in to comment.