Giter VIP home page Giter VIP logo

mmgplugin's Introduction

mmgplugin

bool smesh

For SALOMEs SMESH module -- which provides an open-source meshing framework for numerical simulations -- the integration of mesh adaptation capabilities is paramount to enhancing its usability and effectiveness. This mmgplugin, leveraging the powerful MMG library, brings advanced mesh adaptation cpabilities to SALOME's SMESH module. By seamlessly integrating MMG's robust mesh adaptation algorithms into SALOME, users gain access to state-of-the-art techniques for mesh optimization and refinement. This integration should empower engineers, scientists, and researchers to tackle increasingly complex simulation challenges with confidence, knowing that they have the tools necessary to generate high-quality meshes tailored to their specific needs.

Local Tests

To try the plugin locally, follow these steps:

  1. Open the file located at $SMESH_ROOT_DIR/share/salome/plugins/smesh/smesh_plugins.py.

  2. Add the following code to the end of the file:

   try:
	   from mmgplugin.mmgPlug_plugin import Mmg
	   salome_pluginsmanager.AddFunction('ReMesh with MMG', 'Run MMG', Mmg)
   except Exception as e:
	   salome_pluginsmanager.logger.info('ERROR: MMG plug-in is unavailable: {}'.format(e))
	   pass
  1. Compilation
cd $SMESH_ROOT_DIR/share/salome/plugins/smesh/mmgplugin
make
  1. Dependencies:
$SALOME_ROOT_DIR/salome context
pip install meshio
cd $SALOME_ROOT_DIR/BINARIES[...]
wget https://github.com/MmgTools/mmg/releases/download/v5.6.0/mmg-5.6.0-Linux-4.4.0-170-generic-appli.tar.gz
tar -xvf mmg-5.6.0-Linux-4.4.0-170-generic-appli.tar.gz
mv bin mmg
export PATH=$PWD/mmg:$PATH

You can test if mmg is correctly installed by running mmgs_O3 -h

How to use ?

  1. run the command 'make' (this generates the ui python file)
  2. start salome
  3. find the plugin with the other SMESH plugins

mmgplugin's People

Contributors

florestan-fl avatar mohd-afeef-badri avatar nitawa 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.