GithubHelp home page GithubHelp logo

alexxior / fem-muffler Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 12.83 MB

Universal FEM model and optimization for acoustic muffler

Home Page: https://github.com/alexxior/fem-muffler/blob/master/article/article.pdf

Shell 9.39% MATLAB 14.89% TeX 75.72%
fem bash octave optimization experimental-design latex acoustics

fem-muffler's Introduction

fem-muffler

Universal FEM model and optimization for acoustic muffler

Project for MiNPwA MES
Requirements: Linux, Elmer CSC, Octave

Syntax & steps:

  1. Clone repo to desired directory: git clone https://github.com/alexxior/fem-muffler.git .
  2. Run Bash & go to master directory
  3. Run main script with parameters as steps for x1(m), x2(m), f(Hz) and choice flag between CCI design & sweeped data method: ./runmuffler.sh [x1_step] [x2_step] [freq_step] [CCI|SWEEP](2xbool flag)
  4. Script will run all simulations to calculate Total Insertion Loss in desired frequency band - ILtot (dB),
    the pressure values in 4 points near outlet for each frequency are located in ./output/:
    • /cci-tlumik.txt /sweep-tlumik.txt - for muffler
    • /cci-plaski.txt /sweep-plaski.txt - for flat waveguide
  5. runmuffler.sh will run next Octave script ./scripts/optimize.m to obtain muffler optimization in CCI experimental design and interpolate sweeped data
  6. FEM process and optimized muffler parameters will be printed & saved in ./output/Optimum.txt
    • To only show precalculated data do not append flags in parameters.
    • To only show precalculated optimized muffler charateristics run octave ./scripts/optILchar.m
    • To calculate & show precise Insertion Loss characteristics - IL(f) for new optimized muffler run ./optimized.sh
  7. If you want to compute FEM simulation for discretized sweeped data paralelly (faster, for multicore processors) just run ./runmuffler.sh in smaller range parameter chunks in different Linux consoles.

Aims for the future:

  • rewrite Octave scripts to Python 3.8 with Matplotlib & Numpy, because of no full interpolation & optimization in Octave

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.