Giter Site home page Giter Site logo

kai-wen-lee / dns_of_compound_droplets Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 650.52 MB

Repository for Basilisk C and Python script for Coaxial Flow Simulation for my 3rd Year Individual Project.

C 98.49% Makefile 0.34% Scilab 0.04% Python 1.14%
basilisk coaxial multiphase-flow nozzle-flow simulation

dns_of_compound_droplets's Introduction

Basilisk Script for Simulation of Gas-in-Liquid Compound Droplet Generation using a Coaxial Nozzle.

Pre-requisite: Basilisk C Linux OS (I am using MintOS)

Steps for simulation:

Step 1: Make sure Basilisk C is installed by doing "qcc --version" in Linux terminal. Step 2: Click into the folder where the coax_sim.c script is saved. Step 3: Right-click and press open in terminal. Step 4: In terminal, do "make clean coax_sim.tst". Step 5: Open a new tab by File > New Tab (on Linux Mint) Step 6: In the new tab, do "ls" and look for the new folder "coax_sim". Step 7: In terminal, do "cd coax_sim" then "tail -f log". This shows the simulation progress.

Guide for Python script:

  1. Referring to lines 10-20, the array dir_array is intended to store the folder name containing the simulation output files. The output files are bin files containing volume fraction field and velocity field generated by Basilisk script at every timestep of 0.1. Copy those files at the end of a simulation, then paste it into a seperate folder. Say you ran 10 simulations, this means that you now have 10 folders of bin files. Modify lines 10 to 19 to reflect your folder names,

  2. In vol_analytical function, change the num argument in lines 96 and 97 to suit your case. Say you have 100 Basilisk bin files, set num = 100. I will fix this once I fix some teething issues on the Basilisk code.

Guide for Basilisk simulation:

  1. Check ue and fe error thresholds are sufficiently small.
  2. Check if initial grid is sufficiently small.
  3. Check if formulas for Re,Fr,We definitions. My definitions for Re,Fr,We is based on my current work. THIS MIGHT BE DIFFERENT FOR YOU.

I'm lacking time to make this more legible for other users, but will do so in the summer when all my assignments and exams are done :)

IP Supervisor: Dr. Ivo Peters Student: Kai Wen Lee

dns_of_compound_droplets's People

Contributors

kai-wen-lee avatar

Stargazers

 avatar  avatar

Watchers

 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.