Skip to content

pgh79/fealpy

 
 

Repository files navigation

FEALPy: Finite Element Analysis Library in Python

We want to develop an efficient and easy to use finite element software package to support our teach and research work.

We still have lot work to do.

Install

Ubuntu

  1. please install the python envieronment.
$ sudo apt install git            # The version control tool
$ sudo apt install python3        # The python3 interpretor 
$ sudo apt install python3-pip    # The PyPA recommended tool for installing Python packages.
$ sudo apt install python3-tk     # Python interface to Tcl/Tk used by matplotlib 
$ sudo apt install ipython3       # An enhanced Interactive Python  
  1. clone the latest fealpy from github:
$ git clone https://github.com/weihuayi/fealpy.git
  1. In fealpy/, run the following command:
$ sudo -H pip3 install ./

which will copy the fealpy into /usr/local/lib/python3.6/dist-packages/. Or run the following command:

$ sudo -H pip3 install -e ./

which will create a soft link in /usr/local/lib/python3.6/dist-packages/.

  1. You can open ipython3 from bash shell to test fealpy.

  2. If you want to upgrade numpy

sudo -H pip3 --upgrade numpy

Windows: Anaconda

  1. Dowload visual studio IDE for windows (community 2017) from https://visualstudio.microsoft.com/ and install it on you win system. Notice that you just need to install the c++ component.

  2. Download anaconda for windows from https://repo.continuum.io/archive/Anaconda3-2018.12-Windows-x86_64.exe and install it on your system.

  3. Download the correct version meshpy from https://www.lfd.uci.edu/~gohlke/pythonlibs/#meshpy. For example:

pip install MeshPy‑2018.2.1‑cp37‑cp37m‑win_amd64.whl # For 64 bit win system with python 3.7
  1. Download the correct version pyamg from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyamg. For example:
pip install pyamg‑4.0.0‑cp37‑cp37m‑win_amd64.whl # For 64 bit win system with python 3.7
  1. enter fealpy directory, run the following command:
pip install -e ./
  1. You can open IPython from the start menu of win system to test fealpy.

Mac

Debug in python

sudo apt-get install python3-dbg

Debug python program:

$ gdb python3
...
(gdb) run <programname>.py <arguments>

Reference

About

Finite Element Analysis Library in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 74.2%
  • C++ 24.7%
  • CMake 0.6%
  • MATLAB 0.5%
  • M 0.0%
  • C 0.0%