Giter Club home page Giter Club logo

py_gmm's Introduction

py_gmm

Binder

A Fortran 90 implementation of the Generalized Multiparticle Mie method. If you find py_gmm useful for generating results included in publications, please consider citing the following paper:

Pellegrini G., Mattei G., Bello V. and Mazzoldi P. (2007) Interacting metal nanoparticles: Optical properties from nanoparticle dimers to core-satellite systems Materials Science and Engineering: C 27:1347โ€“1350. doi:10.1016/j.msec.2006.07.025

Use it right away

Do you want to try py_gmm without even installing it? Well, just click this badge Binder or the one on top of the page! Then simply navigate to the examples folder and run one of the Jupyter Notebooks. Modify the examples to suite your needs and run it! Just one thing: please run only light calculations!!! If instead you want to install py_gmm on your computer please read below.

Installation

Installing py_gmm should be fairly easy. First of all you need a python distribution on your system. The simplest thing to do, for any operating system (Windows, OSX or Linux), would be to install Anaconda, a beautiful, free, and easy to use python distribution: the relevant installations instructions are found here. Then you must also install The Jupyter Notebook, which is already bundled in Anaconda.

The second step would be installing a Fortran compiler. If you are not new to compilers, you're already covered here. If don't know much about compilers yet, my advice is to go for gfortran. While I strongly advise you to work under Linux (this code was developed under Linux), I will try to provide minimal informations for the installations under WIndows and OSX. Keep in mind that I never installed or tried my software under these platforms, so I offer no guarantee whatsoever. Nevertheless if you encounter any problem please open an Issue here on github and we'll try to work it out. Regarding installation on different platforms it goes as follows:

  • Windows: Get MinGW and follow the instructions to install gfortran on your system;
  • OSX: Get the right gfortran and if needed read the instructions here;
  • Linux: Install gfortran with the package manager of your own distro: it should be no trouble at all.

The third step would be to get py_gmm itself. If you are familiar with git and github you can simply clone the repository, otherwise just download the zipped version of the repo and unpack it wherever you like.

Then we finally come to compiling: if you are under Linux or OSX sh f2py.sh should be sufficient to build everything. Under Windows try and change f2py.sh to f2py.bat and see happens. If it does not work open an issue and we'll work it out.

Usage

The best thing to do for the moment is to start from the .ipynb files in the examples folder. You can load them in your local Jupyter Notebook instance: they should give you a fair idea about how to proceed for your calculations. Each function in the code features a detailed documentation easily accessible with the Shift-Tab tool-tip shortcut from the Jupyter Notebook interface.

py_gmm's People

Contributors

gevero avatar pear420 avatar

Watchers

 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.