Coder Social home page Coder Social logo

ivan-pi / deformable-lbm Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 35 KB

Deformable lattice Boltzmann method for diffusion in 1D moving domains

License: GNU General Public License v3.0

Fortran 30.59% Makefile 0.83% C 41.66% MATLAB 26.92%
advection-diffusion deformable-meshes deformation diffusion diffusion-equation lattice-boltzmann lbm lbm-1d shrinkage swelling

deformable-lbm's Introduction

deformable-lbm

Deformable lattice Boltzmann method for diffusion in 1D moving domains

This repository implements the method described in,

Van Der Sman, R. G. M. (2014). Moisture transport in swelling media modelled with a Lattice Boltzmann scheme having a deforming lattice. Journal of Food Engineering, 124, 54-63. https://doi.org/10.1016/j.jfoodeng.2013.09.033

deformable-lbm's People

Contributors

ivan-pi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

deformable-lbm's Issues

Generalize C1 orthogonal collocation helpers

void prepare_edge_matrix_and_rhs(

This function help solves the algebraic equations for time-dependent problems. A description can be found here: https://faculty.washington.edu/finlayso/ebook/pde/OC/OCFE.htm

We should keep this function specific to

  • axisymmetric solutions with symmetry at the center-line
  • fixed-length intervals

We should generalize this function to:

  • arbitrary polynomial order; a little more effort now, but it will pay off
  • general boundary conditions on the right side

We should adapt the function to capture general linear Robin boundary conditions:

$$ au + bu' = c $$

// Either a or b must be nonzero, else the problem is undefined!
assert(a != 0.0 || b != 0.0); 

if (b) {
   if (a) {
      // Robin
   } else {
      // Neumann
   }
} else {
   // Dirichlet
}

Open question remains how to deal with more general non-linear conditions of the form,

$$ a(t,x,u) + b(t,x)u' = c(t,x) $$

or even non-local ones,

$$ \int_\Omega u(x) d\Omega = p(x,u(x))|_{\Gamma} $$

I'm guessing in this case, the explicit ODE form is inappropriate anyways, and we need a solver that can deal with the more general DAE form $F(t,y,y') = 0$.

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.