Giter Site home page Giter Site logo

post-processing-scripts's Introduction

Post-processing scripts

This folder contains Python, Shell and Paraview scripts I used for the automatic batch post-processing of OpenFOAM simulations results as part of my PhD journey.

Description

There are three types of code written and used:

  1. Employing Paraview's Python API for visualization and data extractions of simulation files. (~107 number points per simulation)
  2. Using Python's Matplotlib library to create nice figures with the data extracted
  3. Shell scripts

Paraview + Python + Shell

All scripts in the main folder are used for Paraview post-processing. They employ OpenFOAMReader from the Paraview API to read the simulation files created by OpenFOAM-v1812 (can be used pretty much with any version of OpenFOAM). If you are using other input formats this reader needs to be modified accordingly.

All the code is in *.py files that are launched using *.sh scripts with the same file name.

Scripts specify required image sizes and DPI as to conform to the aimed publication page width and length.

Example: for VTK format one can use LegacyVTKReader. Sidenote: as you might guess from the name it will be depricated soon.

Shell scripts

Are serving several purposes:

  1. Launch Python code for post-processing using Paraview's API
  2. Launch OpenFOAM related processes in the cluster/cloud
  3. Synchronization with cluster/cloud using rsync

Python Matplotlib

matplotlib folder contains scripts used for creation of nice figures with the specified image size.

P.S. This scripts took some time for development but saved a lot of time and nerves in turn!) Hope someone will find them useful.

post-processing-scripts's People

Contributors

tlegen-k avatar

Stargazers

 avatar

Watchers

 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.