forked from liuyxpp/scftpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
97 lines (75 loc) · 2.22 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
'''
scftpy
======
**scftpy** is a python package for performing polymer self-consistent field theory calculations.
Quickstart
----------
1. Install
^^^^^^^^^^
::
$ easy_install scftpy
or
::
$ tar -xvf scftpy-xxx.tar.gz
$ cd scftpy-xxx
$ python setup.py install
Required packages:
* `numpy`: chebpy heavily depends on numpy.
* `scipy`: advanced algorithms, such as scipy.fftpack.dct.
* `chebpy`: Chebyshev collocation methods for PDEs.
2. Quick Start
^^^^^^^^^^^^^^
Here is an example of carrying out 1D unitcell calculations of A-B diblock copolymers.
::
$ from scftpy import Brush
$ sim = Brush('param.ini')
$ sim.run()
Note: you should modify the configuration file (param.ini) for different systems.
A sample cofiguration file can be found in the package source root directory.
Ask for Help
------------
* You can directly contact me at [email protected].
* You can join the mailinglist by sending an email to [email protected]
and replying to the confirmation mail.
To unsubscribe, send a mail to [email protected]
and reply to the confirmation mail.
Links
-----
* `Documentation <http://pypi.python.org/pypi/scftpy>`_
* `Website <http://ngpy.org>`_
* `Development version <http://bitbucket.org/liuyxpp/scftpy/>`_
'''
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='scftpy',
version='0.2',
license='BSD',
description='Polymer self-consistent field theory (SCFT) calculations.',
author='Yi-Xin Liu',
author_email='[email protected]',
url='https://bitbucket.org/liuyxpp/scftpy',
packages=['scftpy'],
include_package_data=True,
zip_safe=False,
long_description=__doc__,
platform='linux',
install_requires=[
'numpy',
'scipy',
'chebpy',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Education',
]
)