Giter VIP home page Giter VIP logo

petrosym's Introduction

petroSym

Graphical User Interface for OpenFOAM oriented to petroleum simulations.

Repository

petroSym is hosted on github: https://github.com/jmarcelogimenez/petroSym

Requirements

  • OpenFOAM 2.4
  • Paraview

run:

sudo add-apt-repository http://www.openfoam.org/download/ubuntu
sudo apt-get update -qq
sudo apt-get install -y --force-yes openfoam240
sudo apt-get install paraviewopenfoam410
sudo apt-get install libfreetype6-dev libpng12-dev
sudo apt-get install python-pip python2.7-dev libxext-dev python-qt4 pyqt4-dev-tools build-essential

Installation in the system (Option 1)

If you want to install PetroSym in your system, please follow this steps.

1.0) First of all, clone the repository in your system:

git clone https://github.com/jmarcelogimenez/petroSym.git
cd petroSym

1.1) Package petroSym requires python 2.7, matplotlib>=1.5.0, PyQt and pyFoam 0.6.4:

sudo pip install -r requirements.txt

1.2) Before installing or using petroSym, make sure the OpenFOAM environment variables are set by the following command:

source /opt/openfoam240/etc/bashrc

1.3) After setting the OpenFOAM variables, run this script:

./install_extras.sh

1.4) Installation is based on setuptools. The --record option is important to uninstall files successfully:

sudo python setup.py install --record installation_files.txt

Installation in a virtual environment (Option 2)

2.0) To install the virtualenv packages, run the following script:

sudo apt-get install python-virtualenv

2.1) Then, to create the virtual environment, run:

virtualenv "Myvirtualenv"

2.2) To activate the virtual environment, run:

cd "Myvirtualenv"
source bin/activate

2.3) Then, follow the steps 1.0 to 1.3 (In step 1.1, run the command without sudo)

2.4) In order to make it work, you must create symbolic link of PyQt4 and sip:

ln -s /usr/lib/python2.7/dist-packages/PyQt4/ PATH_OF_THE_VIRTUALENV/lib/python2.7/site-packages/
ln -s /usr/lib/python2.7/dist-packages/sip.so PATH_OF_THE_VIRTUALENV/lib/python2.7/site-packages/

2.5) Then, you must run the setup.py without "sudo":

python setup.py install --record installation_files.txt

Testing

Try:

petroSym

Updating

In order to update petroSym, run the following script:

./update_petroSym.sh

Cleaning

To run the cleaner run:

python setup.py clean

petrosym's People

Contributors

santichialvo avatar jmarcelogimenez avatar

Watchers

James Cloos avatar Zulfikar Aji Kusworo 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.