GithubHelp home page GithubHelp logo

vawtcleancase's Introduction

Vertical-Axis Wind Turbine mesh

This makes a mesh of a vertical-axis wind turbine.

Requirements

This has been tested with gmsh 3.0.6. You will also need OpenFOAM.

It will be helpful to have ParaView.

How to run

  1. Generate the mesh.
gmsh ./1.txt -3 -smooth 2 -clmax .25 -o ./Turbine.msh
  1. Converts mesh file to OpenFOAM.
gmshToFoam ./Turbine.msh
createPatch -overwrite
renumberMesh -overwrite

NOTE: Kunal had an issue so he added $End at the end of the Turbine.msh and it ran ok.

  1. Sometimes the 0/ files have been overwritten, so copy the original files from 0.orig/.
rm -rf 0
cp -rf 0.orig 0
  1. Decomposes the mesh into pieces, so you can run in parallel.
decomposePar
  1. Remove the mesh file; you dont need it anymore.
rm -rf ./Turbine.msh
  1. scp files to the supercomputer (i.e. Comet).

  2. Remove all intermediate files:

rm -rf processor*
rm -rf *.pos
rm -rf *.msh
rm -rf constant/polyMesh
  1. Run OpenFOAM on the supercomputer!

Help

If you want to run it locally, you can edit decomposeParDict to 4 (or however many cores you have), go through the process, and run

mpirun -np 4 pimpleFoam -parallel | tee pimplefoam.log

vawtcleancase's People

Contributors

marwahaha avatar h7ris 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.