Giter Site home page Giter Site logo

patcheditor's Introduction

PatchEditor

A Blender addon to edit OpenFOAM mesh patches.

Short usage on a test case:

  1. Take a tutorial
   cp -r $FOAM_TUTORIALS/mesh/snappyHexMesh/flange/ $FOAM_RUN
   run
   cd flange
   ./Allrun
   foamToSurface test.obj
  1. Put PatchEditor so that Blender sees it:
   cd your_blenderpath
   cd 2.70/scripts/addons
   git clone https://github.com/nogenmyr/PatchEditor
  1. Enable PatchEditor in Blender (User prefs. OpenFOAM category).

  2. Locate the Addons User Interface in Object Properties Panel.

  3. Click Import Patches and locate the test.obj and open it.

  4. Click Setup initial patches to assign all faces to the correct patch.

  5. Find out which face in your OpenFOAM mesh that is the first boundary face. This is the "startFace" of the first patch in polyMesh/boundary. Put this number in the "1st BC face" in the User Interface.

  6. Edit the faces patch belonging as you like. You may also introduce new patches. This is similar as in the Swift-tools.

  7. When done, click "Write". The File select dialog should open in your case' system folder. Put the createPatchDict there. A file named "batchFile" will be created in the case directory.

  8. Create faceSets which describes the new patch layout by running

    setSet -batch batchFile
in the case directory
  1. Create the new patches using the faceSets by running:
    createPatch
    or
    createPatch -overwrite
  1. The mesh will now conform to the changes you did in Blender

Note: Tested in Blender 2.70 and OpenFOAM 2.2

patcheditor's People

Contributors

nogenmyr avatar

Stargazers

Reza Saghi avatar Andrew Somorjai avatar

Watchers

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