Giter Site home page Giter Site logo

comp-physics / qbmmlib Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 3.0 33.47 MB

Mathematica package for quadrature moment methods

License: MIT License

Mathematica 100.00%
multiphase-flow multiphase-chemistry quadrature-methods method-of-moments cavitation bubbles particles qbmm dispersions moment-methods population-balance-equations moment-transport-equations mathematica

qbmmlib's Introduction

QBMMlib

DOI

Authors

Cite me!

@article{bryngelson_2020,
    Author        = {Spencer H. Bryngelson and Tim Colonius and Rodney O. Fox},
    Title         = {{QBMMlib: A} library of quadrature-based moment methods},
    Journal       = {SoftwareX},
    Volume        = {12},
    Pages         = {100615},
    Year          = {2020},
}

Python version!

If Mathematica just isn't for you, we also developed a Python version of QBMMlib called PyQBMMlib. Read more about it at the link.

Abstract

QBMMlib is an open source Mathematica package of quadrature-based moment methods and their algorithms. Such methods are commonly used to solve fully-coupled disperse flow and combustion problems, though formulating and closing the corresponding governing equations can be complex. QBMMlib aims to make analyzing these techniques simple and more accessible. Its routines use symbolic manipulation to formulate the moment transport equations for a population balance equation and a prescribed dynamical system. However, the resulting moment transport equations are unclosed. QBMMlib trades the moments for a set of quadrature points and weights via an inversion algorithm, of which several are available. Quadratures then closes the moment transport equations.

Files

  • QBMMlib.wl Package file
  • Examples.nb Example notebook

Installation

To install QBMMlib locally, open Wolfram Mathematica and choose the following options:

  • File -> Install...
    • Type -> Package
    • Source -> QBMMlib.wl
    • InstallName -> QBMMlib
    • OK

This places QBMMlib.wl where Mathematica can find it. You can then issue:

Get["QBMMlib"];

Alternatively, it can be loaded into any notebook without installation by copying QBMMlib.wl to the notebook directory and issuing

SetDirectory[NotebookDirectory[]]
Get[NotebookDirectory[] <> "QBMMlib.wl"];

Acknowledgement

Great thanks is owed to Professor Alberto Passalacqua (Iowa State University) for his part in developing these algorithms and teaching me the same. Funding was provided via the U.S. Office of Naval Research under grant numbers N0014-17-1-2676 and N0014-18-1-2625.

qbmmlib's People

Contributors

sbryngelson avatar

Stargazers

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