This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Equation FKPP difference finie 1D implicite Crank-Nicolson | |
% FKPP equation with finite-difference implicite Crank-Nicolson | |
% parametre des equations/equation parameters | |
r = 0.5; % taux de croissance/growth rate | |
D = 0.1; % coefficient de diffusion/diffusion coefficient | |
% parametres de simulation, espace/space simulation parameters | |
% x in domain Omega = [x0,x1] | |
h = 0.05; % intervalle de discretisation spatiale/space step |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Equation FKPP difference finie 1D explicite | |
% FKPP equation with explicit finite difference scheme | |
% parametre des equations | |
% equation parameters | |
r = 0.5; % taux de croissance/growth rate | |
D = 0.1; % coefficient de diffusion/diffusion coefficient | |
% parametres d'espace | |
% space parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sol = kuramoto | |
% KURAMOTO Systeme d'oscillateurs de phase couples | |
% sol = kuramoto resoud un systeme de N d'oscillateurs de phase couples | |
% intervalle d'integration | |
t0 = 0; | |
tfinal = 500; | |
% nombre d'oscillateurs | |
N = 400; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Turing Patterns in 2D: an example with the FitzHugh-Nagumo equations | |
% parametre des equations | |
% equation parameters | |
epsilon = 0.08; | |
b = 0.7; | |
c = 0.8; | |
Dv = 0.1; | |
Dw = 1.6; | |
I = 0.35; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [c,f,s] = turing(x,t,u,DuDx) | |
% TURING PDE components for the Turing equations | |
% | |
% Examples | |
% x = -20:0.1:20; | |
% t = 0:20; | |
% sol = pdepe(0,@turing,@turingic,@turingbc,x,t); | |
% u = sol(:,:,1); | |
% v = sol(:,:,2); | |
% imagesc(x,t,u); axis xy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% FitzHugh-Nagumo avec diffusion 1D | |
% 1D FitzHugh-Nagumo with diffusion | |
% parametre des equations | |
% equation parameters | |
epsilon = 0.08; | |
b = 0.7; | |
c = 0.8; | |
D = .01; % coefficient de diffusion/diffusion coefficient | |
I = 0.0; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
## Méthode de la puissance pour le calcul de valeurs propres | |
# In[1]: | |
from numpy import * | |
import matplotlib as plt | |
import pylab as pl |