File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1- # fractionalPorousMedia
1+ # fractionalPorousMedia
2+
3+ Python code for solving fractional porous media equation using finite difference method and product-integration rule.
4+
5+ ## Connected paper
6+ Berardi, Garrappa, Icardi, Nuca
7+ Basset-type fractional models for heterogeneous porous media: model derivation, analysis and numerical simulations
8+
9+ ## Instructions
10+ The main code to reproduce the results of the paper is ` main_BassetEqn.py ` . The code is written in Python 3.7 and requires the following packages:
11+ - numpy
12+ - matplotlib
13+
14+ Other extra files in python and MATLAB are only for testing and comparison purposes.
15+
16+
17+ ## Authors
18+ - Matteo Icardi
19+ - Roberto Nuca
Original file line number Diff line number Diff line change 11%% Setup
2- b = 1 ;
2+ b = - 1 ;
33x= chebfun(' x' ,[0 ,1 ]);
44y= chebfun(' y' ,[-b .^ 2 / 4 + 1e-5 ,100 ]);
55
2727
2828%% Eigenvalues with chebfun
2929
30- L= chebop(@(u ) - diff(u ,2 ) + b * diff(u ),[0 ,1 ]);
30+ L= chebop(@(u ) diff(u ,2 ) + b * diff(u ),[0 ,1 ]);
3131L.lbc= ' dirichlet' ;
3232L.rbc= ' neumann' ;
3333
You can’t perform that action at this time.
0 commit comments