| 1 | =========================== |
|---|
| 2 | Simple Windows Installation |
|---|
| 3 | =========================== |
|---|
| 4 | |
|---|
| 5 | .. contents:: |
|---|
| 6 | :local: |
|---|
| 7 | :depth: 2 |
|---|
| 8 | |
|---|
| 9 | These instructions are for the `Windows XP`_ and `Windows 2000`_ |
|---|
| 10 | platforms. Please see the more general |INSTALLATION-txt| for detailed |
|---|
| 11 | installation instructions. These instructions are not the only way to |
|---|
| 12 | set up |FiPy| on a Windows_ OS but represent the most expedient way from |
|---|
| 13 | our experience to have a usable installation up and running. |
|---|
| 14 | |
|---|
| 15 | .. include:: utils/include.txt |
|---|
| 16 | |
|---|
| 17 | .. |INSTALLATION-txt| replace:: |htmlINSTALL| |latexINSTALL| |
|---|
| 18 | .. _Windows: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.microsoft.com/windows/ |
|---|
| 19 | .. _Windows XP: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.microsoft.com/windowsxp/ |
|---|
| 20 | .. _Windows 2000: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.microsoft.com/windows2000/ |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | Required Packages |
|---|
| 24 | ================= |
|---|
| 25 | |
|---|
| 26 | Python |
|---|
| 27 | ------ |
|---|
| 28 | |
|---|
| 29 | http://www.pythonxy.com |
|---|
| 30 | |
|---|
| 31 | http://www.enthought.com |
|---|
| 32 | |
|---|
| 33 | We recommend the use of either `Enthought Python`_ or |
|---|
| 34 | `Python(x,y)`_. These versions of Python_ have some of the prerequisite |
|---|
| 35 | packages for |FiPy| already included. Download and install the latest |
|---|
| 36 | version. |
|---|
| 37 | |
|---|
| 38 | .. _Python(x,y): http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.pythonxy.com |
|---|
| 39 | .. _Python: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.python.org/ |
|---|
| 40 | .. _Enthought Python: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.enthought.com |
|---|
| 41 | |
|---|
| 42 | PySparse |
|---|
| 43 | -------- |
|---|
| 44 | |
|---|
| 45 | http://sourceforge.net/project/showfiles.php?group_id=101403 |
|---|
| 46 | |
|---|
| 47 | Download and install the latest version of PySparse for Windows_ |
|---|
| 48 | (pysparse-x.y.z.win32-py2.X.exe). Be sure to select the version compiled |
|---|
| 49 | with the correct version of Python_ to match the `Python`_ installation. |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | |FiPy| |
|---|
| 53 | ------ |
|---|
| 54 | |
|---|
| 55 | http://www.ctcms.nist.gov/fipy/download/ |
|---|
| 56 | |
|---|
| 57 | Download and unpack the zip file (``FiPy-x.y.win32.zip``). Run the |
|---|
| 58 | |FiPy| installer ``FiPy-x.y.win32.exe``, which is in the base |
|---|
| 59 | ``FiPy-x.y`` directory. |
|---|
| 60 | |
|---|
| 61 | Optional Packages |
|---|
| 62 | ================= |
|---|
| 63 | |
|---|
| 64 | Gmsh |
|---|
| 65 | ---- |
|---|
| 66 | |
|---|
| 67 | http://www.geuz.org/gmsh |
|---|
| 68 | |
|---|
| 69 | If you wish to run examples that have unstructured meshes, it is |
|---|
| 70 | necessary to install Gmsh. Download and unpack the latest version of |
|---|
| 71 | Gmsh for Windows. Open the unpacked folder with a browser and make sure |
|---|
| 72 | that ``gmsh.exe`` is placed somewhere on the execution path. |
|---|
| 73 | |
|---|
| 74 | PyVTK |
|---|
| 75 | ----- |
|---|
| 76 | |
|---|
| 77 | http://www.ctcms.nist.gov/fipy/download/ |
|---|
| 78 | |
|---|
| 79 | If you wish to use `MayaVi 1`_, PyVTK is a requirement. Download and |
|---|
| 80 | install the latest version from the |FiPy| `downloads page`_ |
|---|
| 81 | (``PyVTK-x.y.z.win32.exe``). |
|---|
| 82 | |
|---|
| 83 | .. _downloads page: http://www.ctcms.nist.gov/fipy/download |
|---|
| 84 | |
|---|
| 85 | MayaVi |
|---|
| 86 | ------ |
|---|
| 87 | |
|---|
| 88 | .. raw:: latex |
|---|
| 89 | |
|---|
| 90 | \IndexSoftware{MayaVi} |
|---|
| 91 | |
|---|
| 92 | http://mayavi.sourceforge.net |
|---|
| 93 | |
|---|
| 94 | `MayaVi 1`_ is a requirement if you wish to view 3D problems or improve |
|---|
| 95 | the viewing capabilities of the superfill examples. Download the source |
|---|
| 96 | code and run ``python setup.py install`` to install from the python |
|---|
| 97 | source in order for ``import mayavi`` to work at the command line. |
|---|
| 98 | |
|---|
| 99 | .. warning:: |
|---|
| 100 | |
|---|
| 101 | At the time of writing the ``import mayavi`` command is not working |
|---|
| 102 | with the `python(x,y)`_ version of `python`_. |
|---|
| 103 | |
|---|
| 104 | .. note:: |
|---|
| 105 | |
|---|
| 106 | `MayaVi 1`_ is outdated and we hope to have compatilibiltiy with |
|---|
| 107 | `MayaVi 2`_ as soon as possible. |
|---|
| 108 | |
|---|
| 109 | .. _MayaVi 1: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://mayavi.sourceforge.net |
|---|
| 110 | .. _MayaVi 2: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://code.enthought.com/projects/mayavi |
|---|
| 111 | |
|---|
| 112 | Using |FiPy| on Windows |
|---|
| 113 | ======================= |
|---|
| 114 | |
|---|
| 115 | A number of interactive python environments are available such as the |
|---|
| 116 | IDLE_ and Ipython_ environments. The following videos may be useful for |
|---|
| 117 | explaining the use of Ipython_ on Windows: |
|---|
| 118 | |
|---|
| 119 | http://showmedo.com/videos/series?name=PythonIPythonSeries |
|---|
| 120 | |
|---|
| 121 | Testing |
|---|
| 122 | ------- |
|---|
| 123 | |
|---|
| 124 | If you have a working copy of the source, not an installed version of |
|---|
| 125 | |FiPy|, you can run the tests using Ipython_ from the base |FiPy| |
|---|
| 126 | directory, by typing |
|---|
| 127 | |
|---|
| 128 | >>> run setup.py test |
|---|
| 129 | |
|---|
| 130 | in the Ipython_ shell. |
|---|
| 131 | |
|---|
| 132 | Running Examples |
|---|
| 133 | ---------------- |
|---|
| 134 | |
|---|
| 135 | To run the |FiPy| examples in Ipython_ simply use the `run` command: |
|---|
| 136 | |
|---|
| 137 | >>> run examples/diffusion/mesh20x20.py |
|---|
| 138 | |
|---|
| 139 | .. _IDLE: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.python.org/idle/doc/idlemain.html |
|---|
| 140 | .. |FiPy| replace:: |htmlFiPy| |latexFiPy| |
|---|
| 141 | .. _Ipython: http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://ipython.scipy.org |
|---|
| 142 | |
|---|
| 143 | |
|---|
| 144 | |
|---|
| 145 | |
|---|
| 146 | |
|---|