GithubHelp home page GithubHelp logo

qinminzheng / mfc-caltech Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mflowcode/mfc

0.0 0.0 0.0 21.13 MB

High-fidelity multiphase flow simulation

Home Page: https://mfc-caltech.github.io

License: GNU General Public License v3.0

Makefile 0.27% Python 10.43% Shell 0.06% Ruby 0.19% MATLAB 0.21% Fortran 88.85%

mfc-caltech's Introduction

Multi-component Flow Code (MFC)

Welcome to the MFC! The MFC is a fully-documented parallel simulation software for multi-component, multi-phase, and bubbly flows.

Authors

MFC was developed at Caltech by a group of post-doctoral scientists and graduate research students under the supervision of Professor Tim Colonius. These contributors include:

  • Dr. Spencer Bryngelson

  • Dr. Kevin Schmidmayer

  • Dr. Vedran Coralic

  • Dr. Jomela Meng

  • Dr. Kazuki Maeda

    and their contact information is located in the AUTHORS file in the source code.

Documentation

The following codes are documented, please follow the links to see their Doxygen:

User's guide

A user's guide is included here.

MFC paper

The paper that describes the MFC's capabilities:

Cite me!

@article{Bryngelson_2020,
	title = {MFC: An open-source high-order multi-component, multi-phase, and multi-scale compressible flow solver},
	author = {Spencer H. Bryngelson and Kevin Schmidmayer and Vedran Coralic and Jomela C. Meng and Kazuki Maeda and Tim Colonius},
	journal = {Computer Physics Communications},
	doi = {10.1016/j.cpc.2020.107396},
	year = 2020,
	month = {may},
	publisher = {Elsevier {BV}},
	pages = {107396},
}

Related publications

Several publications have used the MFC in various stages of its development. A partial list is included here.

Refereed journal publications:

Ph.D. Disserations:

Installation

The documents that describe how to configure and install the MFC are located in the source code as CONFIGURE and INSTALL. They are also described here.

Step 1: Configure and ensure dependencies can be located

Main dependencies: MPI and Python

If you do not have Python, it can be installed via Homebrew on MacOS as:
brew install python

or compiled via your favorite package manager on Unix systems.

An MPI fortran compiler is required for all systems. If you do not have one, Homebrew can take care of this on MacOS:
brew install open-mpi

or compiled via another package manager on Unix systems.

Simulation code dependency: FFTW

If you already have FFTW compiled:

  • Specify the location of your FFTW library and include files in Makefile.user (fftw_lib_dir and fftw_include_dir)

If you do not have FFTW compiler, the library and installer are included in this package. Just:
cd installers
./install_fftw.sh

Post process code dependency: Silo/HDF5

Post-processing of parallel data files is not required, but can indeed be handled with the MFC. For this, HDF5 and Silo must be installed

On MacOS, a custom Homebrew tap for Silo is included in the installers directory. You can use it via
cd installers
brew install silo.rb

This will install silo and its dependences (including HDF5) in their usual locations (/usr/local/lib and /usr/local/include)

On Unix systems, you can install via a package manager or from source. On CentOS (also Windows 7), HDF5 binaries can be found here.

Untar this archive in your intended location via
tar -zxf [your HDF5 archive]

Silo should be downloaded here, then
tar -zxf [your Silo archive]
cd [your Silo archive]
./configure --prefix=[target installation directory] --enable-pythonmodule --enable-optimization --disable-hzip --disable-fpzip FC=mpif90 F77=mpif77 -with-hdf5=[your hdf5 directory]/include,/[your hdf5 directory]/lib --disable-silex
make
make install

Add the following line to your ~/.bash_profile:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/[your silo directory]/lib:/[your hdf5 directory]/lib

Finally:
source ~/.bash_profile

You will then need to modify silo_lib_dir and silo_include_dir in Makefile.user to point to your silo directory.

Step 2: Build and test

Once all dependencies have been installed, the MFC can be built via
make

from the MFC directory. This will build all MFC components. Individual components can be built via
make [component]

where [component] is one of pre_process, simulation, or post_process.

Once this is completed, you can ensure that the software is working as intended by
make test

Running

The MFC can be run by changing into a case directory and executing the appropriate Python input file. Example Python input files can be found in the example_cases directories, and they are called input.py. Their contents, and a guide to filling them out, are documented in the user manual. A commented, tutorial script can also be found in example_cases/3d_sphbubcollapse. MFC can be executed as
python pre_process

which will generate the restart and grid files that will be read by the simulation code. Then
python simulation

will execute the flow solver. The last (optional) step is to post treat the data files and output HDF5 databases for the flow variables via
python post_process

Note that the post-processing step requires installation of Silo and HDF5.

License

MFC is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 3 of the License, or any later version. A copy of the GNU General Public License is included with the MFC, and is also located at http://www.gnu.org/licenses.

The MFC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Copyright 2019 California Institute of Technology

Acknowledgements

The development of the MFC was supported in part by multiple past grants from the US Office of Naval Research (ONR), the US National Institute of Health (NIH), and the US National Science Foundation (NSF), as well as current ONR grant numbers N0014-17-1-2676 and N0014-18-1-2625 and NIH grant number 2P01-DK043881. The computations presented here utilized the Extreme Science and Engineering Discovery Environment, which is supported under NSF grant number CTS120005. K.M. acknowledges support from the Funai Foundation for Information Technology via the Overseas Scholarship.

mfc-caltech's People

Contributors

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