Git Product home page Git Product logo

resources's Introduction

Resources

Resource ball for the automation fo CFD simulations on remote linux machines on the uni network. To contain python scripts, other resources such as template for OpenFoam cases. This repo can then be cloned into a shared eare on each machine and be used to set up the work environment.

I don't have root access to these machines. They have anaconda/conda python, OpenFoam-2.1.0, screen, git, installed and I have ssh access.

Tools I will use: Python=3.5, screen, remote automation tools: Fabric / Ansible / Rex. bash. Git.

Use Cases

Simple automation firstly:

  • Setting up working directory, installation of swak4foam, solver(TInterfoam).
  • Preprocessing to create the necesary files (dicts) to run the simulation, set up up the directories.
  • Run OpenFoam scripts (blockMesh etc), run simulation in remote screens and detach.
  • Track progress of running simulations, display progress, location. Notify if simulations are failed/finished.
  • Postprocess, extract power, collect results.
  • Write script to rename cases to sensible, unified names. Eventually have enough tools to automate a genetic algorithm etc. optimisation algorithm running remotely.

To Do

  • Write scripts.
  • Decide on directory structure (python module necessary?).
  • Create case template.
  • Write test suite for the scipts.

Notes / Gotchas

  • Careful with the samples wth read "8.10R" for instance: the reruns have R appended to them.

Instructions

  • In order to validate each host, try for host in $(cat hosts_master.txt); do ping $host -c 4; done | grep packets. This will let you know which servers are responding. Then try for host in $(cat hosts.txt); do ssh wow203@$host echo Hello $host; done. This will let you add the hosts to known hosts.

resources's People

Contributors

ogaday 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.