Giter VIP home page Giter VIP logo

surface-evolver-dump-visualization's Introduction

surface-evolver-dump-visualization

This is a simple code used to visualize the surface produced by surface evolver dump. This code uses Mayavi package in python. This is a quick way to generate good quality visualization of the simulated surface in surface evolver.

 __             __                    __            _                        _                 _ _              
/ _\_   _ _ __ / _| __ _  ___ ___    /__\_   _____ | |_   _____ _ __  /\   /(_)___ _   _  __ _| (_)_______ _ __ 
\ \| | | | '__| |_ / _` |/ __/ _ \  /_\ \ \ / / _ \| \ \ / / _ \ '__| \ \ / / / __| | | |/ _` | | |_  / _ \ '__|
_\ \ |_| | |  |  _| (_| | (_|  __/ //__  \ V / (_) | |\ V /  __/ |     \ V /| \__ \ |_| | (_| | | |/ /  __/ |   
\__/\__,_|_|  |_|  \__,_|\___\___| \__/   \_/ \___/|_| \_/ \___|_|      \_/ |_|___/\__,_|\__,_|_|_/___\___|_|   
                                                                                                                

The text files used in the code are extracted manually (for the time being) from the dump produced by Surface evolver. It has the information of the mesh vertices, the edges connecting the vertices and the faces produced by the edges. This data is used to make the simulated surface for visualization.

To run the code one needs python 3 along with matplotlib, numpy and mayavi modules. To install Mayavi in anaconda one can execute the following command: conda install -c anaconda mayavi

If you are inside an IPython console, consider having a qt interface %matplotlib qt

Special thanks to Nasser Alkmim (https://github.com/nasseralkmim) for the blog http://nasseralkmim.github.io/notes/2016/08/11/drawing-3d-lines-in-python/

rotate-small

Sample Mayavi output

surface-evolver-dump-visualization's People

Contributors

dutta-alankar avatar

Stargazers

 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.