Git Product home page Git Product logo

2021_shrinivas_brenner_random_multiphase_fluids's Introduction

Phase-field simulations of multiphase behavior in fluids with randomly interacting components

This is a readme for the documentation of the phase-field simulation model. Running this code requires pre-requisites (below) and recommended to be run in a separate conda environment

Requirements for Code

  • python (>=3.7)
  • numpy
  • numexpr
  • moviepy
  • matplotlib

How to run code

The code can be run by running run_pfsim.py with input and output flags

python run_pfsim --flag_name flag_params

Required flags

--i /path/to/input_params.file Input parameters (example provided along with the code under /Input/input_params.txt)

--o /path/to/output_folder/ Path to output folder

Optional flags

--p /path/to/parameter_sweep.file Values of single parameter to sweep over (example provided along with the code under /Input/params_file.txt)

Note when using this - if only the effect of the parameter is to studied, best to fix a seed instead of using a random seed.

--pN x Run a simulation with param in line (x) from param file

--test 0/1 If 1, runs a test setup - initialization occurs but no phase-field simulation is run and outputs are not generated to be stored.

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.